List a company's federal contracts
curl --request GET \
--url https://api.darvas.app/v1/government/contracts \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/government/contracts"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/government/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "PLTR",
"cik": 1321655,
"company_name": "PALANTIR TECHNOLOGIES INC.",
"recipient_match": {
"method": "sec_company_name",
"search_text": "PALANTIR TECHNOLOGIES",
"recipients": [
{
"name": "PALANTIR TECHNOLOGIES INC.",
"uei": "FSY4LVSBGWB7",
"level": "P",
"trailing_12_month_amount_usd": 1772714097
}
]
},
"period": {
"start_date": "2025-11-30",
"end_date": "2026-11-30"
},
"contracts": [
{
"award_id": "12314426F0126",
"generated_internal_id": "CONT_AWD_12314426F0126_1205_12314426A0009_1205",
"award_url": "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205_12314426A0009_1205",
"recipient_name": "PALANTIR TECHNOLOGIES INC.",
"recipient_uei": "FSY4LVSBGWB7",
"award_amount_usd": 94687811.42,
"total_outlays_usd": 94687811.42,
"awarding_agency": "Department of Agriculture",
"awarding_sub_agency": "Office of the Chief Financial Officer",
"award_type": "BPA CALL",
"start_date": "2026-04-18",
"end_date": "2027-05-31",
"base_obligation_date": "2026-04-17",
"last_modified_date": "2026-11-20",
"naics_code": "513210",
"naics_description": "SOFTWARE PUBLISHERS",
"psc_code": "DA10",
"psc_description": "IT AND TELECOM - BUSINESS APPLICATION/APPLICATION DEVELOPMENT SOFTWARE AS A SERVICE",
"description": "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
}
],
"as_of": "2026-11-30T12:00:00.000Z",
"source": {
"provider": "USASpending.gov (US Department of the Treasury)",
"dataset": "EDGAR filing index and daily feed",
"methodology": "One row per accession number.",
"url": "https://api.usaspending.gov/docs/endpoints"
}
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Company Profiles
Federal Government Contracts API by Ticker
List a public company’s US federal prime contract awards by ticker, largest first, with agency, amount, outlays, period of performance and industry codes.
List a company's federal contracts
curl --request GET \
--url https://api.darvas.app/v1/government/contracts \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/government/contracts"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/government/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "PLTR",
"cik": 1321655,
"company_name": "PALANTIR TECHNOLOGIES INC.",
"recipient_match": {
"method": "sec_company_name",
"search_text": "PALANTIR TECHNOLOGIES",
"recipients": [
{
"name": "PALANTIR TECHNOLOGIES INC.",
"uei": "FSY4LVSBGWB7",
"level": "P",
"trailing_12_month_amount_usd": 1772714097
}
]
},
"period": {
"start_date": "2025-11-30",
"end_date": "2026-11-30"
},
"contracts": [
{
"award_id": "12314426F0126",
"generated_internal_id": "CONT_AWD_12314426F0126_1205_12314426A0009_1205",
"award_url": "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205_12314426A0009_1205",
"recipient_name": "PALANTIR TECHNOLOGIES INC.",
"recipient_uei": "FSY4LVSBGWB7",
"award_amount_usd": 94687811.42,
"total_outlays_usd": 94687811.42,
"awarding_agency": "Department of Agriculture",
"awarding_sub_agency": "Office of the Chief Financial Officer",
"award_type": "BPA CALL",
"start_date": "2026-04-18",
"end_date": "2027-05-31",
"base_obligation_date": "2026-04-17",
"last_modified_date": "2026-11-20",
"naics_code": "513210",
"naics_description": "SOFTWARE PUBLISHERS",
"psc_code": "DA10",
"psc_description": "IT AND TELECOM - BUSINESS APPLICATION/APPLICATION DEVELOPMENT SOFTWARE AS A SERVICE",
"description": "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
}
],
"as_of": "2026-11-30T12:00:00.000Z",
"source": {
"provider": "USASpending.gov (US Department of the Treasury)",
"dataset": "EDGAR filing index and daily feed",
"methodology": "One row per accession number.",
"url": "https://api.usaspending.gov/docs/endpoints"
}
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint lists the US federal prime contract awards of a public company, largest first. The company’s SEC name without its legal suffix finds the federal recipients of the same name, and their unique entity identifiers find the awards, those of subsidiaries filed under a parent included.recipient searches another name, such as RAYTHEON for RTX.
Each award carries its agency and sub-agency, amount and outlays, period of performance, NAICS and product codes, and a link to its public award page. Awards with actions in the last 365 days by default; start_date reaches back to October 2007.
| Coverage | Details |
|---|---|
| Coverage | US federal prime contract awards since fiscal 2008 |
| Matching | recipient_match names the method, the search text and the recipients found |
| Pages | Up to 100 awards a page with next_page_url |
| MCP tool | list_government_contracts on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
answer = requests.get(
"https://api.darvas.app/v1/government/contracts",
headers=headers,
params={
"ticker": "LMT",
"limit": 25,
},
).json()
for award in answer["contracts"]:
print(award["awarding_agency"], award["award_amount_usd"], award["start_date"])
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/government/contracts?ticker=LMT&limit=25"
Authorizations
apiKeybearerKey
Query Parameters
Response
List a company's federal contracts: one page.
The answer of GET /government/contracts.
How the company was found: method, search_text and the USASpending recipients whose awards are listed: name, uei, level (P parent, R stand-alone, C child) and trailing_12_month_amount_usd, the value of their contract transactions in the trailing 12 months.
Example:
{ "method": "sec_company_name", "search_text": "PALANTIR TECHNOLOGIES", "recipients": [] }