Register a user-facing API key at api.data.gov/signup; the key is a 40-character alphanumeric token passed as the X-Api-Key header or api_key query parameter on all requests routed through the gateway.
Use the gateway base URL provided for the specific agency API (e.g., api.regulations.gov, api.grants.gov, api.fueleconomy.gov) rather than the agency's direct endpoint; the gateway handles authentication forwarding and rate limit enforcement.
Monitor your current rate limit consumption by inspecting the X-RateLimit-Limit (total allowed) and X-RateLimit-Remaining (requests left in window) headers returned on every response.
When X-RateLimit-Remaining approaches zero, implement backoff logic; a 429 Too Many Requests response means the rate window is exhausted. Default limits are typically 1,000 requests per hour for most API key tiers.
For agency operators integrating their own API behind api.data.gov, configure the API Umbrella backend via the Agency Manual; you can set custom rate limits per API key, enable or disable API key requirement, and configure analytics.
Use the DEMO_KEY (no signup required) only for development testing — it has a rate limit of 30 requests/hour and 50 requests/day and is not suitable for production traffic.
Known gotchas
Rate limits are per API key across all api.data.gov-proxied APIs combined, not per agency endpoint; a key hitting limits on one agency API may affect calls to a different agency API sharing the same key.
Some agency APIs require additional authentication beyond the api.data.gov key (e.g., agency-specific tokens or OAuth); api.data.gov is a gateway layer, not a complete authentication solution.
api.data.gov analytics dashboards lag real time by up to an hour; do not rely on the portal to detect rate limit exhaustion — monitor response headers in your application code.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp