Free tier โ€” 500 requests/month, no credit card

US Public Safety Facilities,
One API Call Away

Find police stations, fire stations, hospitals, and EMS bases by address or coordinates. Built on federal HIFLD data from DHS/CISA โ€” 126,000+ facilities across all 50 states. No scraping. No state-by-state portals.

One account works on all three civic APIs:districtapi.devlibraryapi.devpublicsafetyapi.dev

Request
curl "https://api.publicsafetyapi.dev/v1/stations/nearby?lat=34.50&lng=-117.19&type=fire&radius=5" \
  -H "X-API-Key: psk_live_your_api_key"
Response200 OK
{
  "data": [
    {
      "stationId": "fire-hifld-13184",
      "name": "Apple Valley Fire Protection District Station 331",
      "entityType": "fire",
      "facilityTypeLabel": "Fire Station",
      "address": {
        "street": "22400 Headquarters Drive",
        "city": "Apple Valley",
        "state": "CA",
        "zip": "92307"
      },
      "phone": "(760) 240-7900",
      "distanceMiles": 0.64,
      "status": "OPEN"
    }
  ],
  "meta": { "creditsUsed": 1, "creditsRemaining": 499 }
}
๐Ÿš”
23,486
Police Stations
๐Ÿš’
52,184
Fire Stations
๐Ÿš‘
42,812
EMS Bases
๐Ÿฅ
7,596
Hospitals

Up and running in minutes

01

Get your free API key

Create an account in under a minute. No credit card required. 500 requests/month free, forever.

Sign up free โ†’
02

Pass an address or coordinates

Send any US street address, lat/lng coordinates, or city name. We handle geocoding and PostGIS spatial lookup across all 126,000+ facilities.

03

Get facility data back

Name, address, phone, website, coordinates, distance, and status โ€” plus hospital-specific fields like bed count, trauma level, and helipad.

Read the docs โ†’

Everything you need about US public safety facilities

Killer feature

Address โ†’ Nearest Facility

Pass any US address or lat/lng and get back the closest police stations, fire stations, hospitals, or EMS bases โ€” ranked by distance with miles included.

All tiers

All 4 facility types

One API covers police, fire, hospitals, and EMS. Filter by type or query all at once. 23,000+ police stations, 52,000+ fire stations, 42,000+ EMS bases, and 7,500+ hospitals.

All tiers

Rich hospital detail

Hospitals include licensed bed count, trauma center level (Iโ€“V), helipad availability, ownership type (government/non-profit/for-profit), and accreditation body.

All tiers

Jurisdiction boundaries

The /v1/jurisdiction endpoint returns the Census-defined incorporated place or county that contains any coordinate โ€” useful for routing context and coverage mapping.

All tiers

State summaries

Get facility counts by type for any state in one call. Hospitals also include total licensed beds and trauma center counts at the state level.

Developer-friendly

HIFLD-native IDs

All facilities are keyed by stable HIFLD identifiers, the same IDs used by DHS/CISA and cross-referenced in other federal infrastructure datasets.

Pricing

Start free. No credit card required. Upgrade when you need more.

Free
$0/mo
500 / mo
10 req/min
Get started
Starter
$19/mo
10,000 / mo
60 req/min
Get started
Most popular
Pro
$79/mo
50,000 / mo
120 req/min
Get started
Growth
$249/mo
200,000 / mo
300 req/min
Contact us

All endpoints on all tiers. Monthly limit resets on the 1st.

All 3 APIs ยท save up to 31%

Bundle publicsafetyapi.dev with districtapi.dev and libraryapi.dev. From $49/mo across all three.

See bundle pricing โ†’

Common questions

What counts as one request?
Each call to any API endpoint uses one credit โ€” nearby search, jurisdiction lookup, station profile, or state summary. The /v1/health endpoint does not consume credits.
What happens when I hit 500 requests?
On the free tier, requests over 500 return a 402 error until your quota resets on the 1st of the month. On paid tiers, requests over your monthly limit return a 402 until the next billing cycle. Upgrade anytime from your dashboard.
Is this really free federal data?
Yes. All records trace back to HIFLD (Homeland Infrastructure Foundation-Level Data), maintained by DHS/CISA and published as public domain. We add normalization, geocoding, spatial indexing, and a clean REST API on top.
When is data updated?
HIFLD publishes dataset refreshes on a rolling basis. We load new releases as they become available. The current dataset reflects HIFLD 2024.
Do you have an SLA?
The Growth plan includes a 99.9% uptime SLA. All tiers run on AWS Lambda + API Gateway with Cloudflare in front โ€” the same infrastructure used by applications serving millions of requests.