InsightSocial API
Economy data (EU and US)

Economy data (EU and US) Government Contracts API reference

Your first 10 calls are free, no card needed. Pricing and FAQ

Get a free API key
Example request
curl "https://api.insightsocial.app/v1/economy/government-contracts" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
GET
/v1/economy/government-contracts

Search US federal contract awards by recipient, keyword, NAICS, PSC and state: amount, agency, dates, codes and places, up to 100 a page with a cursor.

Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.

20 credits per call.

Paginates by cursor: see Pagination.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

recipient?string

Company or organisation name, matched as text against the recipient's legal name, e.g. Lockheed Martin. Contracts are filed under legal names: Space Exploration Technologies finds SpaceX, SpaceX does not.

keyword?string

Text matched against award descriptions, e.g. cybersecurity. 3 to 120 characters.

naics?array<string>

NAICS industry codes, comma-separated, up to 20. Each has 2, 4 or 6 digits; a shorter code covers its whole family, e.g. 4811 (scheduled air transport) or 54.

psc?array<string>

Federal product and service codes (PSC), comma-separated, up to 20. 1 to 4 characters; a shorter code covers its family, e.g. D3 (IT services) or R425.

state?string

Only contracts performed in this state, as a two-letter USPS code, e.g. VA.

Value in

  • "AL"
  • "AK"
  • "AZ"
  • "AR"
  • "CA"
  • "CO"
  • "CT"
  • "DE"
  • "DC"
  • "FL"
  • "GA"
  • "HI"
  • "ID"
  • "IL"
  • "IN"
  • "IA"
  • "KS"
  • "KY"
  • "LA"
  • "ME"
  • "MD"
  • "MA"
  • "MI"
  • "MN"
  • "MS"
  • "MO"
  • "MT"
  • "NE"
  • "NV"
  • "NH"
  • "NJ"
  • "NM"
  • "NY"
  • "NC"
  • "ND"
  • "OH"
  • "OK"
  • "OR"
  • "PA"
  • "RI"
  • "SC"
  • "SD"
  • "TN"
  • "TX"
  • "UT"
  • "VT"
  • "VA"
  • "WA"
  • "WV"
  • "WI"
  • "WY"
  • "AS"
  • "GU"
  • "MP"
  • "PR"
  • "VI"
type?string

all (default), definitive_contract, purchase_order, delivery_order or bpa_call.

Value in

  • "all"
  • "bpa_call"
  • "purchase_order"
  • "delivery_order"
  • "definitive_contract"
from?string

Start of the window, YYYY-MM-DD, not before 2007-10-01. A contract matches when it had activity in the window. Without from and to: the latest US federal fiscal year (1 October to 30 September) that ended at least 90 days ago. With only from: to today.

to?string

End of the window, YYYY-MM-DD. With only to: the year up to that day.

sort?string

amount (default), start_date, end_date or recipient.

Value in

  • "amount"
  • "start_date"
  • "end_date"
  • "recipient"
order?string

desc (default) or asc.

Value in

  • "desc"
  • "asc"
limit?integer

Contracts per page, 1 to 100. Default 25.

Range1 <= value <= 100
cursor?string

Pass pagination.next_cursor from the previous response to get the next page. Keep the other parameters the same.

dry_run?"1"

Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.

Value in

  • "1"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.insightsocial.app/v1/economy/government-contracts"
{  "success": true,  "platform": "string",  "endpoint": "string",  "schema_version": "2",  "pagination": {    "next_cursor": "string",    "has_more": true,    "page_size": 0,    "stopped_at": "since"  },  "unavailable": [    "string"  ],  "credits_used": 0,  "credits_remaining": 0,  "request_id": "string",  "cached": true,  "idempotent_replay": true,  "charge_reason": "string",  "free_call": true,  "data": {    "property1": null,    "property2": null  }}