USAspending API
Returns US federal agencies, sub-components, awards and spending totals grouped by category from USAspending.gov.
View as Markdown| GET | /usaspending/agencies | The top-tier federal agencies with their codes and current fiscal year budget authority. |
| GET | /usaspending/agency | One top-tier federal agency: its name, mission, website and fiscal year. |
| GET | /usaspending/awards | Federal contract awards that start in a period, largest first. |
| GET | /usaspending/award | One federal award by its generated id, such as CONT_AWD_…: its number, type, description, obligation, dates, agencies and recipient. |
| GET | /usaspending/subComponents | The sub-components of one top-tier agency (such as the bureaus of a department) with their budget totals for a fiscal year. |
| GET | /usaspending/agencyAwards | The award totals of one top-tier agency for a fiscal year: obligations, the number of transactions and the latest action date. |
| GET | /usaspending/spendingByCategory | Federal spending in a period grouped by one category (awarding agency, recipient, NAICS industry, product service code or state), largest first. |
| GET | /usaspending/spendingOverTime | Federal contract spending in a period over time, by fiscal year, quarter or month, in order of time. |
| GET | /usaspending/recipient | One federal award recipient by its recipient id: names, identifiers, parent company, location and total federal awards. |
| GET | /usaspending/recipientSearch | Federal award recipients whose name matches a search text, such as a company or university, with their UEI and DUNS numbers. |
| GET | /usaspending/naics | The NAICS industry codes used to classify federal awards, with the number of awards in each. |
| GET | /usaspending/glossary | The terms of the USAspending glossary with their plain-language definitions, 100 per page. |
| GET | /usaspending/budgetaryResources | The total budgetary resources of the federal government by fiscal year and period, newest first. |
agencies
/v1/usaspending/agenciesThe top-tier federal agencies with their codes and current fiscal year budget authority.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
abbreviation | string |
budgetAuthority | string |
code | string |
fiscalYear | string |
name | string |
curl "https://api.hoshime.com/v1/usaspending/agencies" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/agencies", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/agencies", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "abbreviation": "AAHC", "budgetAuthority": "16181198695809.91", "code": "247", "fiscalYear": "2026", "name": "400 Years of African-American History Commission" }, { "abbreviation": "USAB", "budgetAuthority": "16181198695809.91", "code": "310", "fiscalYear": "2026", "name": "Access Board" } ], "meta": { "cached": false, "endpoint": "agencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
agency
/v1/usaspending/agencyOne top-tier federal agency: its name, mission, website and fiscal year.
Parameters
codestring required | Three-digit toptier agency code, such as 075. e.g. 075 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
abbreviation | string |
code | string |
fiscalYear | string |
mission | string |
name | string |
subtierAgencyCount | integer (int64) |
website | string |
curl "https://api.hoshime.com/v1/usaspending/agency?code=075" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/agency?code=075", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/agency?code=075", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "abbreviation": "…", "code": "…", "fiscalYear": "…", "mission": "…", "name": "…", "subtierAgencyCount": 1280, "website": "…" }, "meta": { "cached": false, "endpoint": "agency", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
awards
/v1/usaspending/awardsFederal contract awards that start in a period, largest first.
Parameters
startstring required | First day of the period as YYYY-MM-DD, such as 2024-01-01. e.g. 2024-01-01 |
endstring required | Last day of the period as YYYY-MM-DD, such as 2024-03-31. e.g. 2024-03-31 |
limitinteger | Awards per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
amount | string |
generatedId | string |
id | string |
recipient | string |
curl "https://api.hoshime.com/v1/usaspending/awards?start=2024-01-01&end=2024-03-31" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/awards?start=2024-01-01&end=2024-03-31", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/awards?start=2024-01-01&end=2024-03-31", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amount": "51269205263.03", "id": "HT940216C0001", "recipient": "HUMANA GOVERNMENT BUSINESS INC" }, { "amount": "48063737196.35", "id": "DEAC0494AL85000", "recipient": "LOCKHEED MARTIN CORP" } ], "meta": { "cached": false, "endpoint": "awards", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
award
/v1/usaspending/awardOne federal award by its generated id, such as CONT_AWD_…: its number, type, description, obligation, dates, agencies and recipient.
Parameters
idstring required | Generated unique award id, as listed by awards in generatedId. e.g. CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE- |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
awardNumber | string |
awardingAgency | string |
category | string |
dateSigned | string |
description | string |
endDate | string |
fundingAgency | string |
id | string |
recipient | string |
recipientId | string |
startDate | string |
totalObligation | string |
type | string |
curl "https://api.hoshime.com/v1/usaspending/award?id=CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/award?id=CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/award?id=CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "awardNumber": "…", "awardingAgency": "…", "category": "…", "dateSigned": "…", "description": "…", "endDate": "…", "fundingAgency": "…", "id": "abc123", "recipient": "…", "recipientId": "abc123", "startDate": "…", "totalObligation": "…", "type": "…" }, "meta": { "cached": false, "endpoint": "award", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
subComponents
/v1/usaspending/subComponentsThe sub-components of one top-tier agency (such as the bureaus of a department) with their budget totals for a fiscal year.
Parameters
codestring required | Three-digit toptier agency code, such as 075. e.g. 075 |
fiscalYearinteger | Fiscal year, such as 2024. default 2024e.g. 2024 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
fiscalYear | integer (int64) |
items | SubComponent[] |
id | string |
name | string |
totalBudgetaryResources | string |
totalObligations | string |
totalOutlays | string |
toptierCode | string |
curl "https://api.hoshime.com/v1/usaspending/subComponents?code=075&fiscalYear=2024" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/subComponents?code=075&fiscalYear=2024", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/subComponents?code=075&fiscalYear=2024", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "fiscalYear": 2024, "items": [ { "id": "centers-for-medicare-and-medicaid-services", "name": "Centers for Medicare and Medicaid Services", "totalBudgetaryResources": "2625449293342.77", "totalObligations": "2312377614174.06", "totalOutlays": "2257363906864.91" }, { "id": "administration-for-children-and-families", "name": "Administration for Children and Families", "totalBudgetaryResources": "85030287291.3", "totalObligations": "75092693337.07", "totalOutlays": "82327386464.19" } ], "toptierCode": "075" }, "meta": { "cached": false, "endpoint": "subComponents", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
agencyAwards
/v1/usaspending/agencyAwardsThe award totals of one top-tier agency for a fiscal year: obligations, the number of transactions and the latest action date.
Parameters
codestring required | Three-digit toptier agency code, such as 075. e.g. 075 |
fiscalYearinteger | Fiscal year, such as 2024. default 2024e.g. 2024 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
fiscalYear | integer (int64) |
latestActionDate | string |
obligations | string |
toptierCode | string |
transactionCount | integer (int64) |
curl "https://api.hoshime.com/v1/usaspending/agencyAwards?code=075&fiscalYear=2024" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/agencyAwards?code=075&fiscalYear=2024", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/agencyAwards?code=075&fiscalYear=2024", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "fiscalYear": 2024, "latestActionDate": "2024-09-30", "obligations": "1854703443882.42", "toptierCode": "075", "transactionCount": 378082 }, "meta": { "cached": false, "endpoint": "agencyAwards", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
spendingByCategory
/v1/usaspending/spendingByCategoryFederal spending in a period grouped by one category (awarding agency, recipient, NAICS industry, product service code or state), largest first.
Parameters
categorystring required | awarding_agency, recipient, naics, psc or state_territory.awarding_agencyrecipientnaicspscstate_territorye.g. awarding_agency |
startstring required | First day of the period as YYYY-MM-DD, such as 2024-10-01. e.g. 2024-10-01 |
endstring required | Last day of the period as YYYY-MM-DD, such as 2025-09-30. e.g. 2025-09-30 |
limitinteger | Groups per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
amount | string |
code | string |
name | string |
recipientId | string |
slug | string |
curl "https://api.hoshime.com/v1/usaspending/spendingByCategory?category=awarding_agency&start=2024-10-01&end=2025-09-30" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/spendingByCategory?category=awarding_agency&start=2024-10-01&end=2025-09-30", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/spendingByCategory?category=awarding_agency&start=2024-10-01&end=2025-09-30", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amount": "2024158622976.8", "code": "HHS", "name": "Department of Health and Human Services", "slug": "department-of-health-and-human-services" }, { "amount": "1634789118456.8", "code": "SSA", "name": "Social Security Administration", "slug": "social-security-administration" } ], "meta": { "cached": false, "endpoint": "spendingByCategory", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
spendingOverTime
/v1/usaspending/spendingOverTimeFederal contract spending in a period over time, by fiscal year, quarter or month, in order of time.
Parameters
startstring required | First day of the period as YYYY-MM-DD, such as 2024-01-01. e.g. 2024-01-01 |
endstring required | Last day of the period as YYYY-MM-DD, such as 2024-06-30. e.g. 2024-06-30 |
groupstring | Length of each period: fiscal_year, quarter or month.fiscal_yearquartermonthdefault fiscal_yeare.g. month |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
amount | string |
fiscalYear | string |
month | string |
quarter | string |
curl "https://api.hoshime.com/v1/usaspending/spendingOverTime?start=2024-01-01&end=2024-06-30&group=month" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/spendingOverTime?start=2024-01-01&end=2024-06-30&group=month", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/spendingOverTime?start=2024-01-01&end=2024-06-30&group=month", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amount": "…", "fiscalYear": "…", "month": "…", "quarter": "…" } ], "meta": { "cached": false, "endpoint": "spendingOverTime", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
recipient
/v1/usaspending/recipientOne federal award recipient by its recipient id: names, identifiers, parent company, location and total federal awards.
Parameters
idstring required | Recipient id, as listed by awards in recipientId, such as 6cf5fb1b-…-C. e.g. 6cf5fb1b-4988-d087-5dc1-70939d8fc6c4-C |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
alternateNames | string[] |
city | string |
duns | string |
id | string |
level | string |
name | string |
parentId | string |
parentName | string |
state | string |
totalAmount | string |
totalTransactions | integer (int64) |
uei | string |
curl "https://api.hoshime.com/v1/usaspending/recipient?id=6cf5fb1b-4988-d087-5dc1-70939d8fc6c4-C" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/recipient?id=6cf5fb1b-4988-d087-5dc1-70939d8fc6c4-C", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/recipient?id=6cf5fb1b-4988-d087-5dc1-70939d8fc6c4-C", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "alternateNames": [ "…" ], "city": "…", "duns": "…", "id": "abc123", "level": "…", "name": "…", "parentId": "abc123", "parentName": "…", "state": "…", "totalAmount": "…", "totalTransactions": 0, "uei": "…" }, "meta": { "cached": false, "endpoint": "recipient", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
recipientSearch
/v1/usaspending/recipientSearchFederal award recipients whose name matches a search text, such as a company or university, with their UEI and DUNS numbers.
Parameters
querystring required | Part of a recipient name, such as lockheed. e.g. lockheed |
limitinteger | Recipients, from 1 to 100. default 10e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
duns | string |
name | string |
uei | string |
curl "https://api.hoshime.com/v1/usaspending/recipientSearch?query=lockheed&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/recipientSearch?query=lockheed&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/recipientSearch?query=lockheed&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "duns": "…", "name": "…", "uei": "…" } ], "meta": { "cached": false, "endpoint": "recipientSearch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
naics
/v1/usaspending/naicsThe NAICS industry codes used to classify federal awards, with the number of awards in each.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
code | string |
count | integer (int64) |
description | string |
curl "https://api.hoshime.com/v1/usaspending/naics" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/naics", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/naics", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "code": "11", "count": 64, "description": "Agriculture, Forestry, Fishing and Hunting" }, { "code": "21", "count": 38, "description": "Mining, Quarrying, and Oil and Gas Extraction" } ], "meta": { "cached": false, "endpoint": "naics", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
glossary
/v1/usaspending/glossaryThe terms of the USAspending glossary with their plain-language definitions, 100 per page.
Parameters
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
plain | string |
slug | string |
term | string |
curl "https://api.hoshime.com/v1/usaspending/glossary" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/glossary", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/glossary", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "plain": "The submission period shows when federal agencies submit their financial data. It is displayed as a fiscal year (e.g., “FY 2020” or “FY20” f…", "slug": "submission-period", "term": "Submission Period" }, { "plain": "An Indefinite Quantity Contract for services (not supplies) is sometimes referred to as a Task Order Contract. With this type of contract, t…", "slug": "task-order-contract", "term": "Task Order Contract" } ], "meta": { "cached": false, "endpoint": "glossary", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }
budgetaryResources
/v1/usaspending/budgetaryResourcesThe total budgetary resources of the federal government by fiscal year and period, newest first.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
fiscalPeriod | integer (int64) |
fiscalYear | integer (int64) |
total | string |
curl "https://api.hoshime.com/v1/usaspending/budgetaryResources" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usaspending/budgetaryResources", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usaspending/budgetaryResources", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "fiscalPeriod": 12, "fiscalYear": 2026, "total": "14142915635766.74" }, { "fiscalPeriod": 11, "fiscalYear": 2026, "total": "16181198695809.91" } ], "meta": { "cached": false, "endpoint": "budgetaryResources", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usaspending", "requestId": "req_2Xb9kQ…", "units": 1 } }