QuizGen Responses API

Read the answers your quizzes collect.

GitHub OpenAPI

Operations 3

GET /quizzes/{id}/responses List responses #
GET /quizzes/{id}/responses/{rid} Fetch one response #
GET /quizzes/{id}/stats Quiz stats #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/quizgen-dev:quizgen-dev-responses-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

quizgen-dev-responses-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuizGen Responses API
  version: '1'
  summary: Create live, hosted quizzes and forms by POSTing JSON, then read the responses back.
  description: 'The QuizGen REST API is a headless quiz/form service. Create a quiz with one call and it is immediately live at a short URL like `https://quizgen.dev/q/x7km2p` — mobile-friendly, autosaving, no account needed for respondents. No SDK required: plain HTTPS + JSON.


    **Sandbox (no key):** `POST /quizzes` with no `Authorization` header creates a sandbox quiz — live instantly, expires in 72 hours, caps at 10 responses, can''t be updated or read back. The response includes a `claim_url` to keep it.


    **Authorized:** MCP clients connect `https://quizgen.dev/mcp` and authorize in the browser (OAuth); the issued access token rides the same `Authorization: Bearer` header. Server-to-server integrations can instead issue an API key (`qg_live_...`) from the dashboard and send it as a bearer token.


    The full agent-oriented reference (conventions, question-type guidance, worked examples) is at /llms.txt. The raw quiz JSON Schema is at /schema/v1.json.'
  contact:
    name: QuizGen support
    email: sales@quizgen.dev
servers:
- url: https://quizgen.dev/api/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Responses
  description: Read the answers your quizzes collect.
paths:
  /quizzes/{id}/responses:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    get:
      tags:
      - Responses
      operationId: listResponses
      summary: List responses
      description: 'Lists responses. `answers` is a flat `question_id → value` map (`multi_choice` → array of values). `complete: false` rows are partial autosaves — useful for drop-off analysis.'
      parameters:
      - name: complete
        in: query
        required: false
        description: Filter to finished responses only.
        schema:
          type: boolean
      - name: format
        in: query
        required: false
        description: 'Set to `csv` (or send `Accept: text/csv`) to download a CSV instead of JSON.'
        schema:
          type: string
          enum:
          - json
          - csv
      - $ref: '#/components/parameters/PageLimit'
      - $ref: '#/components/parameters/PageOffset'
      responses:
        '200':
          description: The quiz's responses.
          content:
            application/json:
              schema:
                type: object
                properties:
                  responses:
                    type: array
                    items:
                      $ref: '#/components/schemas/QuizResponse'
                  total:
                    type: integer
                    description: Total responses for the quiz (after the complete filter).
                  count:
                    type: integer
                    description: Items in this page.
                  offset:
                    type: integer
                  has_more:
                    type: boolean
                  next_offset:
                    type: integer
                    description: Offset for the next page. Present only when `has_more` is true.
                required:
                - responses
                - total
                - count
                - offset
                - has_more
            text/csv:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /quizzes/{id}/responses/{rid}:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    - name: rid
      in: path
      required: true
      description: Response id (e.g. from a webhook payload).
      schema:
        type: string
    get:
      tags:
      - Responses
      operationId: getResponse
      summary: Fetch one response
      description: Fetches one response by id.
      responses:
        '200':
          description: The response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuizResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /quizzes/{id}/stats:
    parameters:
    - $ref: '#/components/parameters/QuizId'
    get:
      tags:
      - Responses
      operationId: getStats
      summary: Quiz stats
      description: Funnel stats — use this to answer "how's my quiz doing?".
      responses:
        '200':
          description: Views, funnel, and outcome distribution.
          content:
            application/json:
              schema:
                type: object
                properties:
                  views:
                    type: integer
                  started:
                    type: integer
                  finished:
                    type: integer
                  completion_rate:
                    type:
                    - number
                    - 'null'
                    description: null when there are no responses yet.
                  outcomes:
                    type: object
                    additionalProperties:
                      type: integer
                    description: 'Present when the quiz uses `outcomes`: bucket key → count.'
                required:
                - views
                - started
                - finished
                - completion_rate
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PageOffset:
      name: offset
      in: query
      required: false
      description: Skip this many items; use `next_offset` from the previous page.
      schema:
        type: integer
        minimum: 0
    QuizId:
      name: id
      in: path
      required: true
      description: Quiz id (e.g. `qz_1f6b...`) or slug (e.g. `x7km2p`).
      schema:
        type: string
    PageLimit:
      name: limit
      in: query
      required: false
      description: Max items to return (1–500). Omit both `limit` and `offset` for the full, unpaginated list.
      schema:
        type: integer
        minimum: 1
        maximum: 500
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - invalid_quiz
              - unauthorized
              - not_found
              - invalid_json
              - rate_limited
              - plan_limit
              - daily_send_limit
              - email_not_confirmed
              - quiz_closed
              - quiz_full
              - payments_not_ready
              - invalid_creator_email
              - invalid_status
              - invalid_webhook
              - invalid_recipients
              - invalid_channel
              - invalid_follow_up
              - not_yet_available
            message:
              type: string
            validation_errors:
              type: array
              items:
                type: string
            hint:
              type: string
          required:
          - code
          - message
      required:
      - error
    QuizResponse:
      type: object
      properties:
        id:
          type: string
          example: rsp_...
        quiz_id:
          type: string
          example: qz_...
        definition_version:
          type: integer
        answers:
          type: object
          additionalProperties: true
          description: Flat question_id → value map (multi_choice → array of values).
        outcome:
          type:
          - string
          - 'null'
          description: Matched bucket key, if the quiz uses outcomes.
        score:
          type:
          - number
          - 'null'
        respondent_email:
          type:
          - string
          - 'null'
        complete:
          type: boolean
        paid:
          type: boolean
          description: True once the response's payment succeeded.
        payment_intent:
          type:
          - string
          - 'null'
          description: Stripe PaymentIntent id, if the quiz takes payment.
        started_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
        meta:
          type: object
          additionalProperties: true
  responses:
    NotFound:
      description: No such quiz (or not yours).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key issued from the dashboard (`qg_live_...`) or a QuizGen OAuth access token (issued when an MCP client authorizes via https://quizgen.dev/mcp).