Welcome! This API provides six endpoints to serve users with one of the three:
Select from approximately six categories:
Get a random small set of questions. Each question contains a question the correct answer and three other incorrect answers to use if you want while implementing the data source.
To use this API, you’ll need to sign up for an API key on RapidAPI. Once you have your API key, you can start making requests to the endpoints.
The base URL for the API is: https://trivia-questions1.p.rapidapi.com
Include your RapidAPI key in the headers of your requests:
X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
Endpoint Example
URL: /api/trivia/general`
Method: `GET`
Description: Gets a random selection of general trivia questions
URL: /api/trivia/geography`
Method: `GET`
Description: Gets a random selection of geography trivia questions
URL: /api/trivia/history`
Method: `GET`
Description: Gets a random selection of history trivia questions
URL: /api/trivia/pop`
Method: `GET`
Description: Gets a random selection of pop culture trivia questions
URL: /api/trivia/science`
Method: `GET`
Description: Gets a random selection of science trivia questions
URL: /api/trivia/food`
Method: `GET`
Description: Gets a random selection of food and drink trivia questions