Skip to content

TjasaZil/InterestingClimateFactsAPI

Repository files navigation

Interesting Climate Facts API

Interesting Climate Facts is a free open source API that provides the user with different facts and figures about environment.

URL:

https://icf-api.vercel.app/

API Reference:

  • List all of the facts
  • Get a random fact
  • Get a fact by id
  • Get facts by term

Examples

API response:

{
  id: number; // id for finding specific facts
  fact: string; // a fact
}

Get all facts

Returns a list of all the facts

GET / facts;

Get a random fact

Returns a single random fact.

GET / random;

Get a fact by id

Returns a fact with a specific id. Returns 404 if

GET /fact/:id

Get facts by term

Returns all of the facts that include a term. Returns 404 if there are no facts that include the searches term.

GET /search/:term

Facts scraped from:

Technology used:

Releases

No releases published

Packages

No packages published