Fun Generators API
fungenerators · Company
Below is the documentation for the API calls. You can try them out right here.
Authentication
Sample Requests
Get a Trivia entry for a given id. Retrieves a trivia question and answer based on the id.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia?id=1"
import requests
params = {
"id": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia');
url.searchParams.set('id', '1');
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/trivia/1.5/trivia")
q := baseURL.Query()
q.Set("id", "1")
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/trivia/1.5/trivia")
uri.query = URI.encode_www_form({
"id" => "1"
})
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/trivia/1.5/trivia?" . http_build_query([
"id" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get a random Trivia.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/categories?start=1"
import requests
params = {
"start": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/categories",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/categories');
url.searchParams.set('start', '1');
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/trivia/1.5/trivia/categories")
q := baseURL.Query()
q.Set("start", "1")
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/trivia/1.5/trivia/categories")
uri.query = URI.encode_www_form({
"start" => "1"
})
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/trivia/1.5/trivia/categories?" . http_build_query([
"start" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get a random trivia for a given category(optional)
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/random?category=example"
import requests
params = {
"category": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/random",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/trivia/1.5/trivia/random');
url.searchParams.set('category', 'example');
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/trivia/1.5/trivia/random")
q := baseURL.Query()
q.Set("category", "example")
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/trivia/1.5/trivia/random")
uri.query = URI.encode_www_form({
"category" => "example"
})
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/trivia/1.5/trivia/random?" . http_build_query([
"category" => "example"
]);
$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
- See official documentation for authentication and setup.
What can you build with Fun Generators API?
Fun Generators 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. Fun Generators API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide