UnoRouter Data API

The Data API from UnoRouter, for data.

GitHub OpenAPI

Operations 4

GET /api/data/ Get All Quota Dates #
GET /api/data/flow Get Flow Quota Dates #
GET /api/data/flow/self Get User Flow Quota Dates #
GET /api/data/self Get User Quota Dates #

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/unorouter-com:unorouter-com-data-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

unorouter-com-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Data API
  version: 0.0.1
tags:
- name: Data
paths:
  /api/data/:
    get:
      operationId: getAllQuotaDates
      parameters:
      - in: query
        name: start_timestamp
        schema:
          type: integer
      - in: query
        name: end_timestamp
        schema:
          type: integer
      - description: Filter by username
        in: query
        name: username
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-model.QuotaData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-model.QuotaData'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get All Quota Dates
      tags:
      - Data
  /api/data/flow:
    get:
      operationId: getFlowQuotaDates
      parameters:
      - in: query
        name: start_timestamp
        schema:
          type: integer
      - in: query
        name: end_timestamp
        schema:
          type: integer
      - description: Filter by username (ignored for non-admin callers)
        in: query
        name: username
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-model.FlowQuotaData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-model.FlowQuotaData'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get Flow Quota Dates
      tags:
      - Data
  /api/data/flow/self:
    get:
      operationId: getUserFlowQuotaDates
      parameters:
      - in: query
        name: start_timestamp
        schema:
          type: integer
      - in: query
        name: end_timestamp
        schema:
          type: integer
      - description: Filter by username (ignored for non-admin callers)
        in: query
        name: username
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-model.FlowQuotaData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-model.FlowQuotaData'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get User Flow Quota Dates
      tags:
      - Data
  /api/data/self:
    get:
      operationId: getUserQuotaDates
      parameters:
      - in: query
        name: start_timestamp
        schema:
          type: integer
      - in: query
        name: end_timestamp
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-model.QuotaData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-model.QuotaData'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get User Quota Dates
      tags:
      - Data
components:
  schemas:
    Response_Array-model.FlowQuotaData:
      description: Response_Array-model.FlowQuotaData schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/FlowQuotaData'
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    QuotaData:
      properties:
        cache_creation_tokens:
          format: int64
          type: integer
        cache_read_tokens:
          format: int64
          type: integer
        channel_id:
          type: integer
        count:
          type: integer
        created_at:
          format: int64
          type: integer
        id:
          type: integer
        model_name:
          type: string
        node_name:
          type: string
        quota:
          type: integer
        token_id:
          type: integer
        token_used:
          type: integer
        use_group:
          type: string
        user_id:
          type: integer
        username:
          type: string
      required:
      - cache_creation_tokens
      - cache_read_tokens
      - channel_id
      - count
      - created_at
      - id
      - model_name
      - node_name
      - quota
      - token_id
      - token_used
      - use_group
      - user_id
      - username
      type: object
    FlowQuotaData:
      properties:
        channel_id:
          type: integer
        channel_name:
          type: string
        count:
          type: integer
        model_name:
          type: string
        node_name:
          type: string
        quota:
          type: integer
        token_id:
          type: integer
        token_name:
          type: string
        token_used:
          type: integer
        use_group:
          type: string
        user_id:
          type: integer
        username:
          type: string
      required:
      - count
      - model_name
      - quota
      - token_used
      - use_group
      type: object
    Response_Array-model.QuotaData:
      description: Response_Array-model.QuotaData schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/QuotaData'
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey