QuizAPI

QuizAPI

Access thousands of quiz questions across programming, science, and more. Browse by category, difficulty, and tags.

Media & content#games--comics

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Access thousands of quiz questions across programming, science, and more. Browse by category, difficulty, and tags.

Endpoints 7

Discovery

  • GETGet API metadata/api/v1/metadataReturns available categories, tags, difficulties, question types, and aggregate stats. No API key required — this is a discovery endpoint.
  • GETList topics and categories/api/v1/categoriesReturns the full Topic → Category hierarchy with quiz counts and popular tags per category. Use the returned category id as the categoryId when creating…

Quizzes

  • GETList quizzes/api/v1/quizzesReturns a paginated list of published, approved quizzes (plus your own). Supports filtering by taxonomy topic, taxonomy category, legacy category, difficulty,…
  • POSTCreate a quiz/api/v1/quizzesCreate a new quiz. Requires a Starter or Pro plan (admins are exempt). Quiz creation limits are enforced per plan. Admins can set featured: true to display…
  • GETGet a single quiz/api/v1/quizzes/:idReturns full details for a single quiz including all questions and answers. Only published quizzes that are approved or owned by the API key holder are…

Questions

  • GETGet questions/api/v1/questionsTwo modes: (1) Pass quiz_id to get ordered questions for a specific quiz. (2) Omit quiz_id to browse questions across all published quizzes with pagination,…
  • POSTBatch import questions/api/v1/quizzes/:id/questions/batchImport multiple questions into an existing quiz at once. Validates all questions before inserting — if any fail validation, the entire batch is rejected.…

API details

Base URL
https://quizapi.io
Authentication
A bearer token in the Authorization header
Operations
7 operations on 6 pathsGET 5POST 2
Main resources
Quizzes 3Discovery 2Questions 2
Response formats
application/json
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the QuizAPI in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the QuizAPI collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Get API metadata” (GET /api/v1/metadata), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the QuizAPI?

Access thousands of quiz questions across programming, science, and more. Browse by category, difficulty, and tags. It is listed under Media & content and has 7 endpoints.

Who publishes the QuizAPI?

It is listed from QuizAPI's public API description (an OpenAPI document), not published by QuizAPI on Swastik Codes. Anyone who controls quizapi.io can claim the profile by adding a DNS TXT record.

What is the base URL of the QuizAPI?

Requests go to https://quizapi.io. Endpoint paths are added to this base URL.

How do I authenticate with the QuizAPI?

With A bearer token in the Authorization header.

How many endpoints does the QuizAPI have?

7 operations on 6 paths (5 GET, 2 POST). The largest groups are Quizzes, Discovery, Questions.

Is forking the QuizAPI free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.