Skip to main content
POST
/
api
/
samgov
/
opportunities
/
search
/samgov/opportunities/search
curl --request POST \
  --url https://api.anysite.io/api/samgov/opportunities/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "query": "<string>",
  "count": 5000,
  "timeout": 300,
  "is_active": true
}
'
[
  {
    "notice_id": "<string>",
    "@type": "@samgov_opportunity_search_result",
    "title": "<string>",
    "type": {
      "@type": "@samgov_opportunity_type",
      "code": "<string>",
      "value": "<string>"
    },
    "solicitation_number": "<string>",
    "parent_notice_id": "<string>",
    "is_active": true,
    "is_canceled": true,
    "published_at": "<string>",
    "modified_at": "<string>",
    "response_at": "<string>",
    "response_time_zone": "<string>",
    "descriptions": [],
    "organization_hierarchy": [],
    "award": {
      "@type": "@samgov_award",
      "number": "<string>",
      "amount": "<string>",
      "date": "<string>",
      "delivery_order_number": "<string>",
      "line_item_number": "<string>",
      "awardee": {
        "@type": "@samgov_awardee",
        "name": "<string>",
        "uei_sam": "<string>",
        "cage_code": "<string>",
        "location": {
          "@type": "@samgov_location",
          "street_address": "<string>",
          "street_address2": "<string>",
          "city": "<string>",
          "state": "<string>",
          "zip": "<string>",
          "country": "<string>"
        }
      }
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
query
string
required

Full-text search query matched against opportunity title and description

Minimum string length: 1
count
integer
required

Number of opportunities to return

Required range: 1 <= x <= 10000
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
is_active
boolean
default:true

Restrict to currently active (open) opportunities

Response

Successful Response

notice_id
string
required
@type
string
default:@samgov_opportunity_search_result
title
string | null
type
SamgovOpportunityType · object
solicitation_number
string | null
parent_notice_id
string | null
is_active
boolean | null
is_canceled
boolean | null
published_at
string | null
modified_at
string | null
response_at
string | null
response_time_zone
string | null
descriptions
string[]
organization_hierarchy
SamgovOrganizationNode · object[]
award
SamgovAward · object