Open Trivia Based APIs For Current Affairs and General Knowledge For UPSC aspirants. Helping a lot of Developers and EdTech Companies to Work on their Products. Updated Daily with New questions.
- Questions : GET/questions/{noOfQuestions}
URL : /questions/{noOfQuestions}
Method : GET
Auth required : NO
Parameters
{noOfQuestions} : Integer
required: true
MaxLimit : 20
Default : 10
Code : 200 OK ✔️
Content example
{
  "results": [
    {
      "incorrect_answers": [
        "Nagaland",
        "Odisha",
        "Uttarakhand"
      ],
      "question": " ‘Pakhui Wildlife Sanctuary’ is located in ",
      "correct_answer": "Arunachal Pradesh"
    }
  ]
}
Condition : If The {noOfQuestions} Parameter is not given.
Code : 404 NOT FOUND ❌
Content :
<!DOCTYPE html>
  <html lang="en">
     <head>
       <meta charset="utf-8">
          <title>Error</title>
      </head>
   <body>
     <pre>Cannot GET /questions/</pre>
   </body>
</html>
CONTRIBUTION PPROGRAM
API KEYS