RateAPI Admin API

Operator-only routes. Not available to standard API keys.

GitHub OpenAPI

Operations 1

GET /v1/admin/usage-report Get admin usage report #

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/rateapi-dev:rateapi-dev-admin-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

rateapi-dev-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rate Admin API
  description: 'API for intelligent financial rate decisions and relationship-aware credit union discovery across the United States. **Primary Endpoint**: Use `/v1/decisions` to get product-matched recommendations based on borrower context and current market rates. **Institution Discovery**: Use `/credit-unions/nearby?zip=...` to find the nearest NCUA-reported branch per credit union, then `/credit-unions/{state}/{slug}` for current rates, membership eligibility, services, branches, and source-labelled NCUA quarterly facts. **Interactive Documentation**: Visit api.rateapi.dev in your browser to access the full Swagger UI interface where you can test API endpoints directly. **Authentication**: Most endpoints require an API key passed via the `X-API-Key` header. Create a free API key using `POST /keys`. **Tiered Rate Limits**:

    - **Tier 1 (Free)**: 20 requests per 30 days

    - **Tier 2 (Pro)**: 100 requests per 30 days ($49/month)

    - **Tier 3 (Enterprise)**: Unlimited requests with uncapped querying and SFTP/CSV/Excel exports


    Contact us to upgrade your tier for higher limits. **Caching**: Responses are aggressively cached at the edge for optimal performance. Cache status is indicated via `X-Cache` response headers. **Key Features**:

    - **Smart Decisions** (`/v1/decisions`): Get personalized financing recommendations with confidence scores

    - **Nearest Credit Unions** (`/credit-unions/nearby`): Discover local institutions by approximate branch distance

    - **Relationship-Aware Profiles** (`/credit-unions/{state}/{slug}`): Inspect rates, membership, NCUA facts, services, and branches

    - **API Key Management** (`/keys`): Self-service key creation and usage tracking

    - Evidence-backed loan and deposit rate data from credit unions nationwide

    - Edge-cached for fast global access

    - RESTful JSON API with comprehensive OpenAPI documentation


    ## Versioning and deprecation


    Product and decision endpoints use the `/v1` URL prefix. Stable reference routes such as `/credit-unions`, `/credit-unions/nearby`, `/credit-unions/{state}/{slug}`, `/meta`, and `/keys` are intentionally unversioned; use each path exactly as published in this document rather than adding `/v1`. Additive changes — new endpoints, new response fields, new optional parameters, new enum members — ship continuously, so write clients that ignore fields they do not recognise rather than treating them as errors. Nothing is removed without at least **180 days** of notice. A deprecated surface keeps behaving exactly as before and starts sending RFC 8594 `Deprecation` and `Sunset` headers, plus a `Link: ; rel="deprecation"`, and is marked `deprecated: true` in this document so a generated client can flag it at build time. Nothing is currently deprecated. Full policy: https://rateapi.dev/deprecation-policy


    ## Rate limits


    Every response carries `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (seconds) and `RateLimit-Policy`, alongside the legacy `X-RateLimit-*` headers, which are retained indefinitely. A 429 additionally carries `Retry-After` in seconds. Read them and self-throttle rather than discovering the ceiling by hitting it. ## Long-running work


    Every operation in this API completes inside its own request — there is no batch job, no report render, and no crawl to wait on, so nothing returns `202 Accepted` today. The convention is fixed in advance so the first operation that needs it does not invent its own: a long-running route answers `202` with a `Location` header naming a status resource and a body matching `AsyncJobAccepted` (`job_id`, `status`, `status_url`), and the client polls no faster than `Retry-After`. See the `Accepted` response and `AsyncJobAccepted` schema in components. ## Authenticating


    A `401` carries `WWW-Authenticate: Bearer resource_metadata="https://api.rateapi.dev/.well-known/oauth-protected-resource"`.'
  version: 2.0.0
  contact:
    name: Rate API
    url: https://rateapi.dev
  termsOfService: https://rateapi.dev/terms
  x-deprecation-policy: https://rateapi.dev/deprecation-policy
  license:
    name: RateAPI Terms of Service
    url: https://rateapi.dev/terms
servers:
- url: https://api.rateapi.dev
  description: Production
security: []
tags:
- name: Admin
  description: Operator-only routes. Not available to standard API keys.
paths:
  /v1/admin/usage-report:
    get:
      operationId: getUsageReport
      summary: Get admin usage report
      description: 'Returns an admin usage report with API key activity, request counts, and usage trends. Supports daily (24h) and weekly (7d) periods.


        **Authentication required**: Pass your API key in the `X-API-Key` header.'
      security:
      - apiKey: []
      parameters:
      - name: period
        in: query
        required: false
        description: Report period. Defaults to '24h'.
        schema:
          type: string
          enum:
          - 24h
          - 7d
          default: 24h
          example: 24h
      responses:
        '200':
          description: Usage report retrieved successfully
          content:
            application/json:
              schema:
                type: object
                description: Admin usage report with activity data
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Scope:
              $ref: '#/components/headers/X-RateLimit-Scope'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageRateLimitError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Admin
components:
  headers:
    X-RateLimit-Limit:
      description: Legacy spelling of RateLimit-Limit. Sends the string `unlimited` on unmetered keys. Retained indefinitely; prefer the unprefixed header in new code.
      schema:
        type: string
        example: '20'
    RateLimit-Reset:
      description: Seconds until the window resets (RFC 9331). Note this is a DELTA in seconds, whereas the legacy X-RateLimit-Reset carries an ISO 8601 instant.
      schema:
        type: integer
        example: 2591940
    X-RateLimit-Reset:
      description: ISO 8601 instant at which the window resets. The unprefixed RateLimit-Reset carries the same fact as a seconds delta.
      schema:
        type: string
        format: date-time
    X-RateLimit-Remaining:
      description: Legacy spelling of RateLimit-Remaining. Sends the string `unlimited` on unmetered keys.
      schema:
        type: string
        example: '19'
    X-RateLimit-Scope:
      description: Whether the quota applied is the key’s own or the organization’s.
      schema:
        type: string
        enum:
        - key
        - organization
        - anonymous
    RateLimit-Remaining:
      description: Requests left in the current window (RFC 9331). Already accounts for the request that produced this response.
      schema:
        type: integer
        example: 19
    RateLimit-Limit:
      description: Requests allowed in the current window (RFC 9331). Absent on unmetered enterprise keys, which have no quota to express.
      schema:
        type: integer
        example: 20
    RateLimit-Policy:
      description: The quota and its window, e.g. `20;w=2592000` for 20 requests per 30 days.
      schema:
        type: string
        example: 20;w=2592000
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: API key required. Get one at POST /keys
        message:
          type: string
          description: Additional error details or context (optional)
        code:
          type: string
          description: Stable machine-readable reason code when the endpoint can identify one, for example `invalid_product_category`.
        field:
          type: string
          description: Request field that failed validation, when applicable.
        received:
          description: The rejected value, when it is safe and useful to echo.
        allowed_values:
          type: array
          items:
            type: string
          description: Canonical values accepted for an enum field.
        did_you_mean:
          description: A canonical replacement value or one or more corrected method/path suggestions.
        example:
          type: object
          additionalProperties: true
          description: A corrected request fragment that can be copied into the next attempt.
        docs:
          type: string
          format: uri
          description: Documentation for correcting the request.
        traceId:
          type: string
          description: Unique trace ID for this request, useful for debugging and support requests (optional, included in most error responses)
          example: a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6
      description: 'Standard error envelope returned by every failing endpoint: a short `error`, an optional human-readable `message`, and the `traceId` to quote in a support request. Validation and routing errors may also include a stable `code`, the rejected `field` and `received` value, canonical `allowed_values`, `did_you_mean`, and a `docs` URL so clients can recover without guessing.'
    UsageRateLimitError:
      type: object
      required:
      - error
      - message
      - tier
      - resetAt
      properties:
        error:
          type: string
          description: Short machine-comparable error label.
          example: Rate limit exceeded
        message:
          type: string
          description: Human-readable message explaining how many requests were exceeded
          example: You have used all 20 requests for this 30-day period
        tier:
          type: object
          required:
          - level
          - name
          - limit
          properties:
            level:
              type: integer
              description: Current tier level
              example: 1
            name:
              type: string
              description: Current tier name
              example: Free
            limit:
              type: integer
              description: Request limit for this tier
              example: 100
          description: Information about the current tier and its limits
        resetAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp when the rate limit resets and usage counter restarts
          example: '2024-02-15T12:00:00.000Z'
        upgradeInfo:
          type: string
          description: Information about upgrading to a higher tier
          example: Contact us to upgrade your tier for higher limits
        traceId:
          type: string
          description: Unique trace ID for this request, useful for debugging and support requests
          example: a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6
      description: Returned when the calling key has exhausted its tier quota, including when the window resets and how to raise the limit.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Create a key using POST /keys. Keys start with 'rk_' prefix.
externalDocs:
  description: RateAPI developer portal — keys, quickstart, MCP server, sandbox
  url: https://rateapi.dev/developers