Find an API

Search public APIs with auth details & Postman guides

← All APIs

Random Lottery Number generator API

fungenerators · Company

Company No Auth Free & Open text

Below is the documentation for the API calls. You can try them out right here.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET GET /lottery/draw

Generate random draw for a given lottery game.

https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw?game=example&count=10

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw?game=example&count=10"
import requests
params = {
    "game": "example",
    "count": "10"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw');
url.searchParams.set('game', 'example');
url.searchParams.set('count', '10');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw")
	q := baseURL.Query()
	q.Set("game", "example")
	q.Set("count", "10")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw")
uri.query = URI.encode_www_form({
  "game" => "example",
  "count" => "10"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/draw?" . http_build_query([
    "game" => "example",
    "count" => "10"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /lottery/supported

Get the list of supported lottery games supported in the given country.

https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported?country=US

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported?country=US"
import requests
params = {
    "country": "US"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported');
url.searchParams.set('country', 'US');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported")
	q := baseURL.Query()
	q.Set("country", "US")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported")
uri.query = URI.encode_www_form({
  "country" => "US"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/supported?" . http_build_query([
    "country" => "US"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /lottery/countries

Get the complete list of countries supported in the number generation API.

https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries"
import requests
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/fungenerators.com/lottery/1.5/lottery/countries";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Random Lottery Number generator API?

Random Lottery Number generator API is a Company API. Developers commonly use company APIs for:

  • enriching CRM records with company firmographics
  • building lead-generation and prospecting tools
  • verifying business identity and registration details
  • monitoring competitors and market intelligence
  • powering B2B data enrichment pipelines

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Random Lottery Number generator API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗