KeyVex Federal Grants API
The Federal Grants API from KeyVex — 1 operation(s) for federal grants.
The Federal Grants API from KeyVex — 1 operation(s) for federal grants.
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/keyvex-com:keyvex-com-federal-grants-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: KeyVex Federal Grants API
version: 0.102.0
termsOfService: https://keyvex.com/terms
description: 'US public financial-disclosure data — congressional trades, insider filings (Form 4), lobbying, Treasury auctions, member profiles. Requires an API key — create a free one at https://keyvex.com and send it as the header `x-api-key: `. A free key returns most public-record datasets (one year of history; no market-price data and a few heavy datasets are on paid plans only), capped at 60 requests/day; paid plans raise the caps. The daily allowance resets at midnight Eastern.'
servers:
- url: https://api.keyvex.com
security:
- ApiKeyAuth: []
tags:
- name: Federal Grants
paths:
/v1/federal-grants:
get:
operationId: get_federal_grants
summary: Returns federal GRANTS and cooperative agreements from USAspending
description: 'Returns federal GRANTS and cooperative agreements from USAspending. Distinct universe from get_federal_contracts — recipients here are universities, non-profits, state and local agencies, research labs, healthcare institutions, public-private partnerships. ⚠ award_amount and total_outlays are NULLABLE. USAspending omits Total Outlays from the search response for most grants, and this tool reports that as null rather than as $0 — a 0 means the source really said zero. Null-check before doing arithmetic. Null values never satisfy min_amount and sort last. Award type codes covered: 02 (Block Grant), 03 (Formula Grant), 04 (Project Grant — most common), 05 (Cooperative Agreement). Killer query patterns: - All NIH R01 grants this quarter: cfda_number=''93.847'' + since=... - State and local infrastructure funding: awarding_agency=''Department of Transportation'' + min_amount=1000000 - Recipient-specific grant history: recipient_name=''Stanford'' - Recipient by federal UEI: recipient_uei=''ABC123XYZ'' (most precise) Source: api.usaspending.gov — official Treasury federal-spending data. Awards covering both COVID/IIJA emergency-funding codes and routine appropriations. Pure-publisher posture: raw award data, no derived rankings or performance scores. COVERAGE — live passthrough (source:''live''): each call queries USAspending''s API over the full dataset (2007-10 onward), with recipient/CFDA/min-amount/date filters applied server-side. The response''s `total_count` is USAspending''s authoritative grant count for your filtered query — USE IT for volume answers (the `results` array is just the requested page). `total_count` is omitted — and coverage_warning says why — when USAspending cannot count the answer: a recipient_uei that is also the PARENT of other recipients (USAspending cannot filter to one UEI''s own grants), recipient_name combined with recipient_uei, or a start_date window (sort_by start_date with since/until). Then has_more is true whenever the search stopped before the end. Note: live cfda_number matching is against the award''s FULL assistance-listings array (awards can carry several CFDAs); the cached fallback matches the primary listing only. On USAspending outage the tool falls back to a recent cached window (source:''cache'' + coverage_warning) — don''t infer volume there.'
parameters:
- name: recipient_name
in: query
required: false
description: Case-insensitive substring on the recipient's name (e.g., 'Stanford', 'Mayo Clinic'), applied by USAspending — which also matches the PARENT's name, so a parent name returns its subsidiaries' grants. Combined with recipient_uei it is matched against that recipient's OWN name instead, and coverage_warning says how many grants it removed.
schema:
type: string
- name: recipient_uei
in: query
required: false
description: 'Exact federal UEI (Unique Entity ID) — most precise: only grants made to this UEI itself. If it is also the parent of other recipients, their grants are NOT included and total_count is omitted — coverage_warning names the parent; use recipient_name with that name for the whole family.'
schema:
type: string
- name: awarding_agency
in: query
required: false
description: 'The TOPTIER awarding agency name — exact and case-sensitive; a sub-agency name (e.g. ''National Institutes of Health'') or an abbreviation (''NSF'') matches nothing. Examples: ''National Science Foundation'', ''Department of Energy'', ''Department of Health and Human Services''.'
schema:
type: string
- name: cfda_number
in: query
required: false
description: Catalog of Federal Domestic Assistance program number (e.g., '93.847' = NIH R01 research grants, '20.939' = highway safety improvement). Filter to one program.
schema:
type: string
- name: min_amount
in: query
required: false
description: Inclusive lower bound on award_amount in dollars.
schema:
type: number
- name: since
in: query
required: false
description: Inclusive lower bound (YYYY-MM-DD) on last_modified_date — or on start_date when sort_by is start_date.
schema:
type: string
- name: until
in: query
required: false
description: Inclusive upper bound (YYYY-MM-DD), on the same date field as since.
schema:
type: string
- name: sort_by
in: query
required: false
description: 'Sort key. since/until apply to start_date when this is start_date, and to last_modified_date for every other sort. Default: last_modified_date.'
schema:
type: string
enum:
- last_modified_date
- start_date
- award_amount
- total_outlays
- name: sort_order
in: query
required: false
description: 'Default: desc.'
schema:
type: string
enum:
- asc
- desc
- name: limit
in: query
required: false
description: Max records. Default 50, max 500.
schema:
type: integer
responses:
'200':
description: 'JSON envelope: { results: [...], count, has_more }.'
'400':
description: Invalid parameter.
'401':
description: Missing or invalid API key.
'402':
description: This tool requires a higher plan (upgrade_required). Retrying will not help.
'429':
description: Tier rate/quota limit reached (rate_limited). Retry-After points at the reset.
tags:
- Federal Grants
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key