This is a simple API that serves random Pokémon facts.
- Get a random Pokémon fact
- Get a specific number of random facts
- Get a fact by ID
- Clone the repository
- Run
npm install
to install dependencies - Start the server with
npm start
The API documentation is available here.
count
(optional): Number of random facts to retrieve (default: 1)id
(optional): ID of a specific fact to retrievegen
(optional): Generation of Pokémon to filter facts (1-3)
- Get a random fact:
GET https://pokefacts.vercel.app/
- Get multiple random facts:
GET https://pokefacts.vercel.app/?count=3
- Get a fact by ID:
GET https://pokefacts.vercel.app/?id=5
Contributions are welcome! Please feel free to submit a Pull Request.