GETAgencies
https://api-federal-contracts.dataandapis.com/v1/opportunities/agencies
Este endpoint não recebe parâmetros.
Exemplo de requisição
curl "https://api-federal-contracts.dataandapis.com/v1/opportunities/agencies" \
-H "X-Api-Key: YOUR_API_KEY"// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.federalContracts.agencies();# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.federal_contracts.agencies()Exemplo de resposta{
"ok": true,
"count": 6,
"agencies": [
{
"agency": "DEPT OF DEFENSE",
"notices": 56589,
"active_notices": 56589
},
{
"agency": "GENERAL SERVICES ADMINISTRATION",
"notices": 8152,
"active_notices": 8152
},
{
"agency": "VETERANS AFFAIRS, DEPARTMENT OF",
"notices": 6976,
"active_notices": 6976
},
{
"agency": "INTERIOR, DEPARTMENT OF THE",
"notices": 2648,
"active_notices": 2648
},
{
"agency": "AGRICULTURE, DEPARTMENT OF",
"notices": 2089,
"active_notices": 2089
…
Ver resposta completa
{
"ok": true,
"count": 6,
"agencies": [
{
"agency": "DEPT OF DEFENSE",
"notices": 56589,
"active_notices": 56589
},
{
"agency": "GENERAL SERVICES ADMINISTRATION",
"notices": 8152,
"active_notices": 8152
},
{
"agency": "VETERANS AFFAIRS, DEPARTMENT OF",
"notices": 6976,
"active_notices": 6976
},
{
"agency": "INTERIOR, DEPARTMENT OF THE",
"notices": 2648,
"active_notices": 2648
},
{
"agency": "AGRICULTURE, DEPARTMENT OF",
"notices": 2089,
"active_notices": 2089
…{
"ok": true,
"count": 6,
"agencies": [
{
"agency": "DEPT OF DEFENSE",
"notices": 56589,
"active_notices": 56589
},
{
"agency": "GENERAL SERVICES ADMINISTRATION",
"notices": 8152,
"active_notices": 8152
},
{
"agency": "VETERANS AFFAIRS, DEPARTMENT OF",
"notices": 6976,
"active_notices": 6976
},
{
"agency": "INTERIOR, DEPARTMENT OF THE",
"notices": 2648,
"active_notices": 2648
},
{
"agency": "AGRICULTURE, DEPARTMENT OF",
"notices": 2089,
"active_notices": 2089
},
{
"agency": "HOMELAND SECURITY, DEPARTMENT OF",
"notices": 1910,
"active_notices": 1910
}
]
}



