{"slug":"agent-data-api-agentdata-workers-dev-v1-contracts-opportunit-c12cc5","title":"Search open U.S","host":"agent-data-api.agentdata.workers.dev","method":"GET","resource":"https://agent-data-api.agentdata.workers.dev/v1/contracts/opportunities","category":"code","description":"Search open U.S. federal contract opportunities from SAM.gov (solicitations, presolicitations, sources sought). 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","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":395,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"limit":25,"naics":"541512","postedDays":7,"q":"cybersecurity"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"limit":{"default":25,"description":"Maximum number of results","maximum":100,"minimum":1,"type":"integer"},"naics":{"description":"6-digit NAICS code, e.g. 541512","pattern":"^(?:\\d{6})$","type":"string"},"postedDays":{"default":7,"description":"Only opportunities posted in the last N days","maximum":364,"minimum":1,"type":"integer"},"q":{"description":"Keyword matched against the opportunity title, e.g. cybersecurity","maxLength":200,"type":"string"},"setaside":{"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","enum":["SBA","SBP","8A","8AN","HZC","HZS","SDVOSBC","SDVOSBS","WOSB","WOSBSS","EDWOSB","EDWOSBSS","LAS","IEE","ISBEE","BICiv","VSA","VSS"],"type":"string"},"state":{"description":"Two-letter place-of-performance state code, e.g. VA","pattern":"^(?:[A-Z]{2})$","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"count":{"description":"Number of results returned","type":"integer"},"fetchedAt":{"description":"When the data was fetched from SAM.gov (responses are cached up to 15 minutes)","type":"string"},"query":{"description":"The effective query, including the postedFrom/postedTo dates used","type":"object"},"results":{"items":{"properties":{"agency":{"description":"Department","type":["string","null"]},"naics":{"type":["string","null"]},"noticeId":{"type":"string"},"placeOfPerformanceState":{"type":["string","null"]},"postedDate":{"description":"YYYY-MM-DD","type":["string","null"]},"responseDeadline":{"description":"ISO 8601, often with a UTC offset; null if none","type":["string","null"]},"setAside":{"description":"Set-aside code, null if none","type":["string","null"]},"setAsideDescription":{"type":["string","null"]},"subAgency":{"type":["string","null"]},"title":{"type":["string","null"]},"url":{"description":"SAM.gov page for the notice","type":"string"}},"required":["noticeId","url"],"type":"object"},"type":"array"},"source":{"type":"string"},"totalMatches":{"description":"Matches reported by SAM.gov before removing closed notices and duplicates","type":"integer"}},"required":["count","results"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":395,"error":null}],"description_full":"Search open U.S. federal contract opportunities from SAM.gov (solicitations, presolicitations, sources sought). 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 and SAM.gov link. Defaults: last 7 days, 25 results (max 100).","last_updated":"2026-09-26T22:20:35.012Z","schemes":["exact"]}