Find an API

Search public APIs with auth details & Postman guides

← All APIs

Facts API

fungenerators · Company

Company No Auth Free & Open text

A full featured Facts API. REST access with json/xml/jsonp result support. On this day birth and death support, random fact, keyword search support etc. Below is the documentation for the Random Facts API calls. You can try them out right here. [Click here to subscribe](http://fungenerators.com/api/facts/)

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET GET /fact

Get a Fact belonging to the id.

https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact?id=1

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact?id=1"
import requests
params = {
    "id": "1"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact');
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/random-facts/1.5/fact")
	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/random-facts/1.5/fact")
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/random-facts/1.5/fact?" . 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 GET /fact/categories

Get a random Fact.

https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/categories?start=1

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/categories?start=1"
import requests
params = {
    "start": "1"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/categories",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/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/random-facts/1.5/fact/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/random-facts/1.5/fact/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/random-facts/1.5/fact/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 GET /fact/fod

Get fact of the day for the given category.

https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/fod?category=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/fod?category=example"
import requests
params = {
    "category": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/fod",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/fungenerators.com/random-facts/1.5/fact/fod');
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/random-facts/1.5/fact/fod")
	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/random-facts/1.5/fact/fod")
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/random-facts/1.5/fact/fod?" . 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

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

What can you build with Facts API?

Facts 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. Facts API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗