{"uid":"cap_A2IwqBTMR82X7PotZ4dtv","slug":"agent-data-api-federal-contract-opportunities-search-bc42e10c","name":"Agent Data API – Federal Contract Opportunities Search","description":"Search open U.S. federal contract opportunities (solicitations, presolicitations, sources sought) from a copy synced from SAM.gov several times a day. Use when you need current government RFPs or bids matching a title keyword, 6-digit NAICS code, small-business set-aside or place-of-performance state. Returns deduplicated JSON: notice ID, title, agency, NAICS, set-aside, posted date, response deadline, state, SAM.gov link and lastSynced. Defaults: last 7 days, 25 results (max 100).","url":"https://agent-data-api.agentdata.workers.dev/v1/contracts/opportunities?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"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"q":{"type":"string","maxLength":200,"description":"Keyword matched against the opportunity title, e.g. cybersecurity"},"limit":{"type":"integer","default":25,"maximum":100,"minimum":1,"description":"Maximum number of results"},"naics":{"type":"string","pattern":"^(?:\\d{6})$","description":"6-digit NAICS code, e.g. 541512"},"state":{"type":"string","pattern":"^(?:[A-Z]{2})$","description":"Two-letter place-of-performance state code, e.g. VA"},"setaside":{"enum":["SBA","SBP","8A","8AN","HZC","HZS","SDVOSBC","SDVOSBS","WOSB","WOSBSS","EDWOSB","EDWOSBSS","LAS","IEE","ISBEE","BICiv","VSA","VSS"],"type":"string","description":"Set-aside code: SBA (total small business), SBP (partial small business), 8A, 8AN, HZC/HZS (HUBZone), SDVOSBC/SDVOSBS (service-disabled veteran), WOSB/WOSBSS, EDWOSB/EDWOSBSS, LAS, IEE, ISBEE, BICiv, VSA/VSS"},"postedDays":{"type":"integer","default":7,"maximum":14,"minimum":1,"description":"Only opportunities posted in the last N days (the synced copy covers 14 days)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["lastSynced","count","results"],"properties":{"count":{"type":"integer","description":"Number of results returned"},"query":{"type":"object","description":"The effective query, including the postedFrom/postedTo dates used (UTC)"},"source":{"type":"string"},"results":{"type":"array","items":{"type":"object","required":["noticeId","url"],"properties":{"url":{"type":"string","description":"SAM.gov page for the notice"},"naics":{"type":["string","null"]},"title":{"type":["string","null"]},"agency":{"type":["string","null"],"description":"Department"},"noticeId":{"type":"string"},"setAside":{"type":["string","null"],"description":"Set-aside code, null if none"},"subAgency":{"type":["string","null"]},"postedDate":{"type":["string","null"],"description":"YYYY-MM-DD"},"responseDeadline":{"type":["string","null"],"description":"ISO 8601, often with a UTC offset; null if none"},"setAsideDescription":{"type":["string","null"]},"placeOfPerformanceState":{"type":["string","null"]}}}},"lastSynced":{"type":"string","description":"The copy holds every notice posted up to this time (ISO 8601): when it was last synced from SAM.gov"},"totalMatches":{"type":"integer","description":"Open, de-duplicated matches in the requested range"},"coverageComplete":{"type":"boolean","description":"False if some days in the requested range are not in the copy yet"}}}}}}},"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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qaBQr2UFw7atM_cAO5uHL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search current U.S. federal contract opportunities (solicitations, presolicitations, sources sought) synced from SAM.gov, filterable by keyword, NAICS code, set-aside type, and state.","exampleAgentPrompt":"Find me open federal contract opportunities related to cybersecurity posted in the last 7 days in Virginia, focusing on service-disabled veteran-owned small business set-asides — give me up to 25 results.","exampleUseCases":[{"title":"Small business BD pipeline monitoring","prompt":"Pull up all federal solicitations posted in the last 3 days under NAICS code 541512 with a total small business set-aside — I want to see what new IT contract opportunities just dropped."},{"title":"State-specific government RFP search","prompt":"Search for federal contract opportunities in Texas posted in the last 14 days — I'm looking for anything related to construction or facilities management, up to 50 results."},{"title":"8(a) set-aside opportunity hunting","prompt":"Find me current federal RFPs and presolicitations that are set aside for 8(a) companies, keyword 'cloud services', posted within the last week — return up to 100 results."}],"resultDescription":"A JSON object containing a count of matched results, the effective query parameters used (including date range), a lastSynced timestamp, and an array of deduplicated opportunity records each with: noticeId, title, agency, NAICS code, set-aside type, posted date, response deadline, place-of-performance state, and a direct SAM.gov URL for the notice.","failureModes":["Invalid NAICS code format (must be exactly 6 digits) returns a validation error","Invalid state code (must be 2-letter uppercase) returns a validation error","Unrecognized set-aside code returns a validation error","postedDays exceeding 14 returns an error since the synced copy only covers 14 days","No results found returns count: 0 with empty results array","Sync lag may cause very recently posted notices to be absent if not yet ingested","Payment failure (x402 protocol) blocks the request if USDC payment is not processed"],"whenToPreferThis":"Use this endpoint when you need fast, filtered access to current U.S. federal contract opportunities without building a direct SAM.gov integration. It is ideal when you need to filter by NAICS code, set-aside type, or state simultaneously, and when freshness within the day is sufficient (synced several times daily). Prefer this over direct SAM.gov API access when you want deduplicated results in a clean JSON format with predictable schema. Best suited for agents automating government business development workflows, bid monitoring, or small-business opportunity discovery.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T18:37:15.575Z","isFirstParty":false,"canonicalSlug":"agent-data-api-federal-contract-opportunities-search-bc42e10c"}