RateAPI Rates API
Published rate rows, including the keyless sample endpoint for verifying the response shape before you authenticate.
Published rate rows, including the keyless sample endpoint for verifying the response shape before you authenticate.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/rateapi-dev:rateapi-dev-rates-api"
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.
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: 3.2.0
info:
title: Rates 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: Rates
description: Published rate rows, including the keyless sample endpoint for verifying the response shape before you authenticate.
paths:
/v1/demo/rates:
get:
operationId: getDemoRates
summary: Sample rate rows, no API key required
description: 'Returns a small fixed sample of rate rows in exactly the envelope GET /v1/rates uses, so you can confirm the response contract before writing any authentication code. Requires no API key and is the only /v1 route that does not.
**The rows are synthetic.** Every lender name is obviously fake, every row carries `demo: true`, and `as_of` is a frozen past date. Do not quote these figures to anyone — they are shape, not data. The live book is at GET /v1/rates, which needs a key; free keys are issued instantly by POST /keys with an email address.'
tags:
- Rates
security: []
responses:
'200':
description: A fixed sample of synthetic rate rows, shaped like a /v1/rates response.
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'
content:
application/json:
schema:
type: object
properties:
notice:
type: string
description: Plain-language warning that this is sample data. Always present.
demo:
type: boolean
enum:
- true
description: Always true. Its presence is how a client tells a demo response from a live one.
docs:
type: string
description: Where to read the full documentation for the real endpoint this sample imitates.
format: uri
filters:
type: object
description: Echoed filter set, matching the /v1/rates envelope. All null here, since this endpoint accepts no filters.
pagination:
type: object
description: Matches the /v1/rates envelope. `has_more` is always false — this is a fixed sample, not a page into a larger set.
rates:
type: array
description: Sample rows. Field-for-field identical to the rows GET /v1/rates returns, plus a `demo` flag.
items:
type: object
'500':
$ref: '#/components/responses/ServerError'
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.'
responses:
ServerError:
description: An unexpected failure on our side. The `traceId` in the body identifies the request in our logs — quote it when reporting. Safe to retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
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