Random Trivia

This endpoint generates a random trivia with the question and answer.

Endpoint

  • URL: https://api.erensko.xyz/v1/random-trivia

  • Method: GET

  • Description: Fetches a random trivia question and answer from a database of over 600+

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example

GET https://api.erensko.xyz/v1/random-trivia

Response Example

{
    "question": "What is the capital of Canada?",
    "answer": "Ottawa"
}

Last updated