{"uid":"cap_SngF52yg_TbNCFpshmobI","slug":"usaspending-gov-federal-spending-search-api-x402-3f783227","name":"USASpending.gov Federal Spending Search API (x402)","description":"Jobs from company ATS boards, SEC EDGAR full-text search, domain RDAP/DNS, NHTSA VIN decode + recalls, the CMS NPI Registry and MET Norway weather forecasts. Pay per call in USDC on Solana via x402. Official public sources only.","url":"https://x402-data-api-x6da.onrender.com/v1/gov/spending?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"agency":{"type":"string","description":"top-tier awarding agency name"},"date_to":{"type":"string"},"keywords":{"type":"string","description":"comma-separated"},"date_from":{"type":"string"},"recipient":{"type":"string"},"award_type":{"enum":["contracts","grants","loans","direct_payments","idvs"],"type":"string"},"max_results":{"type":"integer"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y8FegRXXA0VtU3Wrm5nSA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search and retrieve U.S. federal government spending records — contracts, grants, loans, and more — filtered by agency, recipient, date range, keywords, and award type, with pay-per-call billing via x402/USDC on Solana.","exampleAgentPrompt":"Search federal spending records for grants awarded by the Department of Health and Human Services to Pfizer between 2021-01-01 and 2023-12-31 — give me up to 20 results.","exampleUseCases":[{"title":"Researching contractor spending by agency","prompt":"Find all federal contracts awarded by the Department of Defense in 2023 with the keyword 'cybersecurity' — show me up to 25 results."},{"title":"Tracking grants to a specific recipient","prompt":"Look up all government grants given to Johns Hopkins University from 2020-01-01 to 2024-01-01 and show me up to 10 results."},{"title":"Investigating federal loan activity","prompt":"Search for federal loans with the keyword 'renewable energy' awarded between 2022-01-01 and 2023-12-31, up to 15 results."}],"resultDescription":"Returns a list of federal spending award records matching the query, including award amounts, recipient names, awarding agency, award type, period of performance dates, and award descriptions. Results are drawn from official USASpending.gov data.","failureModes":["No results returned if agency name is misspelled or not an exact top-tier agency name","Invalid award_type enum value causes validation error","Date format must match expected string format or query may fail","max_results not respected if too large or unsupported","Payment failure via x402 if USDC balance is insufficient on Solana","Rate limiting or timeout if the underlying USASpending.gov API is slow or unavailable"],"whenToPreferThis":"Use this endpoint when you need to programmatically query official U.S. federal government spending data — contracts, grants, loans, direct payments, or IDVs — from USASpending.gov via a pay-per-call API. Prefer this over manual USASpending.gov searches when you need machine-readable results for agent workflows, and over general web search when you require structured, authoritative government data. Best suited for research, compliance, procurement intelligence, and policy analysis tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:03.276Z","isFirstParty":false,"canonicalSlug":"usaspending-gov-federal-spending-search-api-x402-3f783227"}