Developer API

LV Crime Map API

Real-time Lehigh Valley police, fire, and EMS incidents — streamed live from our scanner network and structured for use in your own applications.

Access is by request

The API is currently in early access. Submit a request through the contact page and we'll send you an API key.

Request API Access →

Authentication

Pass your API key in the x-api-key header on every request.

curl https://www.lvcrimemap.com/api/v1/incidents \
  -H "x-api-key: YOUR_API_KEY"

Endpoints

Base URL: https://www.lvcrimemap.com/api/v1

GET/incidents

Returns a paginated list of incidents. Defaults to the last 24 hours.

ParamTypeDescription
typestringFilter by type. Comma-separated: police, fire, ems, other
citystringFilter by city. Comma-separated: allentown, bethlehem, easton, other
sourcestringFilter by scanner source (e.g. allentown_fire_ems_dispatch)
sinceISO dateOnly return incidents after this time
untilISO dateOnly return incidents before this time
limitnumberResults per page. Default 50, max 100
pagenumberPage number. Default 1
SSE/incidents/stream

Server-Sent Events stream. Emits an incident event every time a new incident is saved. The connection stays open — keepalive pings are sent every 25 seconds.

GET/incidents/:id

Returns a single incident by its MongoDB _id.


Incident Object

{
  "_id":              "6650f1a2b3c4d5e6f7a8b9c0",
  "source":           "allentown_fire_ems_dispatch",
  "timestamp":        "2026-11-23T04:12:08.000Z",
  "incident_type":    "fire",          // police | fire | ems | other
  "address":          "123 Hamilton St",
  "city":             "allentown",     // allentown | bethlehem | easton | other
  "intersection":     "",
  "coordinates":      { "lat": 40.6084, "lng": -75.4902 },
  "description":      "Structure fire, 2nd floor. Engine 1 and Ladder 3 responding.",
  "priority":         1,               // 1 (high) | 2 | 3 (low)
  "units_dispatched": ["E1", "L3", "BC1"],
  "audio_url":        "https://…/audio.mp3",
  "createdAt":        "2026-11-23T04:12:08.123Z"
}

Examples

Fetch recent incidents (JavaScript)

const res = await fetch(
  'https://www.lvcrimemap.com/api/v1/incidents?city=allentown&type=fire',
  { headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const { incidents } = await res.json();

Live stream (Browser EventSource)

const es = new EventSource(
  'https://www.lvcrimemap.com/api/v1/incidents/stream?x-api-key=YOUR_API_KEY'
);
es.addEventListener('incident', (e) => {
  const incident = JSON.parse(e.data);
  console.log(incident.incident_type, incident.address);
});

Fetch with filters (Python)

import requests

r = requests.get(
    'https://www.lvcrimemap.com/api/v1/incidents',
    headers={'x-api-key': 'YOUR_API_KEY'},
    params={'city': 'allentown,bethlehem', 'type': 'fire,ems'}
)
data = r.json()

Rate Limits

All API keys are limited to 500 requests per hour. Rate limit headers are included in every response (RateLimit-Remaining, RateLimit-Reset). The SSE stream does not count against your rate limit.

Ready to build?

Request API access through our contact form. Include what you're building and we'll get you a key within 1–2 business days.

Request API Access →