Zum Inhalt springen
GET /v1/agency

One agency overview

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/usaspending-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/usaspending-api/v1/agency" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/usaspending-api/v1/agency", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/usaspending-api/v1/agency");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/usaspending-api/v1/agency",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "agency": {
            "name": "Department of Housing and Urban Development",
            "mission": "HUD's mission is to create strong, sustainable, inclusive communities and quality affordable homes for all. HUD is working to strengthen the housing market to bolster the economy and protect consumers; meet the need for quality affordable rental homes; utilize housing as a platform for improving quality of life; build inclusive and sustainable communities free from discrimination, and transform the way HUD does business.",
            "website": "https://www.hud.gov/",
            "fiscal_year": 2026,
            "abbreviation": "HUD",
            "toptier_code": "086",
            "subtier_agency_count": 12,
            "total_budgetary_resources": null
        }
    },
    "meta": {
        "timestamp": "2026-05-31T08:04:59.619Z",
        "request_id": "4f302f9a-3381-47f7-aafa-dc9c00a6a693"
    },
    "status": "ok",
    "message": "Agency retrieved",
    "success": true
}