CountryFactsAPI
Project
Take a Look
View Source
An API to retrieve unusual facts about a country
Endpoints
fact/read
Get a list of all facts. Can be filtered by a country using the 2-character country code
Example:
https://vantilburger.com/CountryFactsAPI/fact/read.php
Example:
https://vantilburger.com/CountryFactsAPI/fact/read.php?cc=AL
fact/read_one
Retrieve a single fact given a specific ID
Example:
https://vantilburger.com/CountryFactsAPI/fact/read.php?id=20
fact/random
Retrieve a single random fact. Can be filtered by a country using the 2-character country code
Example:
https://vantilburger.com/CountryFactsAPI/fact/random.php
Example:
https://vantilburger.com/CountryFactsAPI/fact/random.php?cc=AL
fact/search
Searches for any facts that contain the specified string
Example:
https://vantilburger.com/CountryFactsAPI/fact/search.php?s=government