InsightSocial API
Economy data (EU and US)

Economy data (EU and US) Government Spend 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-spend" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
GET
/v1/economy/government-spend

Get US federal spending summed by state, county or country for a date window, filtered by award type, industry (NAICS), product or service (PSC) and keyword.

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.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

level?string

What to sum by: state (default), county or country (spending abroad included).

Value in

  • "state"
  • "county"
  • "country"
scope?string

place_of_performance (default, where the work is done) or recipient_location (where the recipient is based).

Value in

  • "place_of_performance"
  • "recipient_location"
state?string

Only this state, as a two-letter USPS code, e.g. CA. With level=county, its counties.

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"
award_type?string

contracts (default), grants, loans, direct_payments, other or all.

Value in

  • "contracts"
  • "grants"
  • "loans"
  • "direct_payments"
  • "other"
  • "all"
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.

keyword?string

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

from?string

Start of the window, YYYY-MM-DD, not before 2007-10-01. 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.

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-spend"
{  "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  }}