RunRiva Account API

Authenticated key info and usage.

GitHub OpenAPI

Operations 2

GET /api/v1/me API key info #
GET /api/v1/usage 30-day usage series #

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/runriva-com:runriva-com-account-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

runriva-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuizBase Account API
  version: 1.0.0
  description: Multilingual trivia API. 1M+ blended, deduped questions from 11 open datasets (CC, MIT), EN+PL at launch. Per-record license, author, source on every response. Stable UUID v7 ids. See info.license below for API-vs-content licensing.
  contact:
    name: QuizBase
    email: maciej.dzierzek@gmail.com
  license:
    name: 'API: proprietary; Content: per-record (CC-BY, CC-BY-SA, MIT)'
servers:
- url: https://quizbase.runriva.com
  description: Production
security:
- ApiKey: []
- BearerKey: []
tags:
- name: Account
  description: Authenticated key info and usage.
paths:
  /api/v1/me:
    get:
      summary: API key info
      description: Confirms your key, tier, and current rate-limit window. The first endpoint to hit when wiring a new client.
      tags:
      - Account
      security:
      - ApiKey: []
      - BearerKey: []
      x-performance:
        p50: 30
        p95: 150
        p99: 190
        sustainedRps: 50
        lastMeasured: '2026-05-27'
        methodology: https://quizbase.runriva.com/docs/performance
        notes: Auth lookup + locals serialization, no DB read on hit path. Not in load mix.
      responses:
        '200':
          description: Key info.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
        '401':
          description: Missing, malformed, invalid, or revoked API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: IP not allowed (per-key allowlist).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Rate limit exceeded. See `Retry-After` header.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getApiV1Me
      x-operation-id-source: derived
  /api/v1/usage:
    get:
      summary: 30-day usage series
      description: Daily request counts + summary across all your keys.
      tags:
      - Account
      security:
      - ApiKey: []
      - BearerKey: []
      x-performance:
        p50: 30
        p95: 160
        p99: 200
        sustainedRps: 50
        lastMeasured: '2026-05-27'
        methodology: https://quizbase.runriva.com/docs/performance
        notes: 30-day window aggregate. Not in load mix.
      parameters:
      - schema:
          type: integer
          minimum: 1
          maximum: 90
          description: Trailing days, 1-90.
          example: 30
        required: false
        description: Trailing days, 1-90.
        name: days
        in: query
      responses:
        '200':
          description: Usage payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '401':
          description: Missing, malformed, invalid, or revoked API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: IP not allowed (per-key allowlist).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Rate limit exceeded. See `Retry-After` header.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getApiV1Usage
      x-operation-id-source: derived
components:
  schemas:
    UsageDayPoint:
      type: object
      properties:
        day:
          type: string
          example: '2026-04-28'
        requests:
          type: integer
          example: 87
        errors:
          type: integer
          description: 5xx count (server-side).
          example: 0
        clientErrors:
          type: integer
          description: '4xx count (caller-side: 401/429/400/422).'
          example: 2
      required:
      - day
      - requests
      - errors
      - clientErrors
    UsageWindow:
      type: object
      properties:
        count:
          type: integer
          example: 142
        prev:
          type: integer
          example: 87
        delta:
          type:
          - number
          - 'null'
          description: Percentage change vs previous equivalent window.
          example: 63
        limit:
          type:
          - integer
          - 'null'
          example: 500
        windowStart:
          type: string
          example: '2026-05-04'
        windowEnd:
          type: string
          example: '2026-05-04'
      required:
      - count
      - prev
      - delta
      - limit
      - windowStart
      - windowEnd
    MonthlyQuota:
      type: object
      properties:
        limit:
          type:
          - integer
          - 'null'
          example: null
        used:
          type: integer
          example: 0
        resetsAt:
          type:
          - string
          - 'null'
          example: null
      required:
      - limit
      - used
      - resetsAt
    UsageSummary:
      type: object
      properties:
        tier:
          type: string
          enum:
          - free
          - indie
          - pro
          - enterprise
        today:
          $ref: '#/components/schemas/UsageWindow'
        week:
          $ref: '#/components/schemas/UsageWindow'
        month:
          $ref: '#/components/schemas/UsageWindow'
      required:
      - tier
      - today
      - week
      - month
    MeResponse:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/ApiKeyInfo'
        tier:
          type: string
          enum:
          - free
          - indie
          - pro
          - enterprise
          example: free
        rateLimit:
          $ref: '#/components/schemas/RateLimitInfo'
        monthlyQuota:
          $ref: '#/components/schemas/MonthlyQuota'
        meta:
          $ref: '#/components/schemas/MetaMe'
      required:
      - key
      - tier
      - rateLimit
      - monthlyQuota
      - meta
    MetaMe:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: Unique request identifier (also in `X-Request-Id` response header).
          example: 127fc6d1-d6fb-4771-b2a7-211a08749e5b
      required:
      - requestId
    UsageResponse:
      type: object
      properties:
        summary:
          $ref: '#/components/schemas/UsageSummary'
        series:
          type: array
          items:
            $ref: '#/components/schemas/UsageDayPoint'
        meta:
          $ref: '#/components/schemas/MetaUsage'
      required:
      - summary
      - series
      - meta
    RateLimitInfo:
      type: object
      properties:
        limit:
          type: number
          description: Burst window cap (10s sliding). Shared across all active keys of the user.
          example: 10
        remaining:
          type: number
          example: 8
        resetInSeconds:
          type: integer
          example: 7
        burstPer10s:
          type: integer
          example: 10
        perDay:
          type: integer
          example: 500
      required:
      - limit
      - remaining
      - resetInSeconds
      - burstPer10s
      - perDay
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          description: Absolute URL identifying the error class.
          example: https://quizbase.runriva.com/errors/invalid_query_param
        title:
          type: string
          example: Invalid query parameters
        status:
          type: integer
          example: 400
        detail:
          type: string
          example: 'lang: lang "xyz" is not supported. Supported: en, pl'
        instance:
          type: string
          example: /api/v1/categories?lang=xyz
        code:
          type: string
          example: invalid_query_param
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
            - path
            - message
          description: Per-field validation errors (400 only).
        retryAfter:
          type: integer
          description: Seconds to wait before retrying (429 only).
          example: 3600
        upgradeUrl:
          type: string
          description: URL to upgrade plan (429 only).
        limit:
          type: integer
          description: Rate limit ceiling that was exceeded (429 only).
          example: 5
        tier:
          type: string
          description: API tier whose limit was exceeded (429 only).
          example: free
        current:
          type: integer
          description: Number of requests in current window (429 only).
          example: 100
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
    MetaUsage:
      type: object
      properties:
        from:
          type: string
          example: '2026-04-28'
        to:
          type: string
          example: '2026-05-04'
        days:
          type: integer
          example: 7
        requestId:
          type: string
          format: uuid
          description: Unique request identifier (also in `X-Request-Id` response header).
          example: 127fc6d1-d6fb-4771-b2a7-211a08749e5b
      required:
      - from
      - to
      - days
      - requestId
    ApiKeyInfo:
      type: object
      properties:
        id:
          type: string
          example: 01J3KXY1ZAB7CQNR8TP4Z9EXMQ
        name:
          type: string
          example: Default key
        prefix:
          type: string
          description: Masked display value.
          example: qb_pk_••••1234
        scope:
          type: string
          enum:
          - pk
          - sk
          description: '`pk` (publishable, CORS-safe for browsers) or `sk` (secret, backend-only).'
          example: pk
      required:
      - id
      - name
      - prefix
      - scope
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key (`qb_pk_*` publishable / `qb_sk_*` secret). Also accepted via `Authorization: Bearer <key>`.'
    BearerKey:
      type: http
      scheme: bearer
      description: Same key as `ApiKey`, passed via Authorization header.