Agencies
GEThttps://api-federal-contracts.dataandapis.com/v1/opportunities/agencies
Agencies es un endpoint de Federal Contracts API. 86.500 oportunidades activas de SAM.gov y 48.000 adjudicaciones de más de 1 M$, en búsqueda y actualizadas a diario.
Envía tu clave en la cabecera X-Api-Key. Cada llamada cuesta 1 token; una clave gratuita incluye 500 tokens al mes.
Petición
Este endpoint no recibe parámetros.
Petición de ejemplo
curl
curl "https://api-federal-contracts.dataandapis.com/v1/opportunities/agencies" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-federal-contracts.dataandapis.com/v1/opportunities/agencies", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-federal-contracts.dataandapis.com/v1/opportunities/agencies",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Respuesta de ejemplo
Respuesta de ejemplo{
"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 la respuesta completa
Respuesta de ejemplo
{
"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
}
]
}
