Camera API
A free, read-only JSON API to list our recorded traffic cameras on your own site: law firms, towing and body shops, insurance blogs and local news. Add your affiliate code and every camera link it returns carries your referral, so you earn commission on footage your visitors buy.
Quick start
No key or sign-up needed. Just make a GET request:
https://redlightrecorder.com/api/v1/cameras?state=VA&ref=YOURCODE
Replace YOURCODE with your affiliate code. Don't have one? Join the affiliate program (free; paid daily). Already an affiliate? Your dashboard shows these URLs with your code filled in.
How you earn
- Call the API with
ref=YOURCODE. Everypage_urlandrequest_urlin the response then includes your code. - Show the cameras on your site, linking to those URLs.
- When a visitor clicks through, they get your referral cookie. If they buy footage within the cookie period, you earn commission, paid out daily.
Only an approved affiliate's code is added to links. The response's ref_valid field tells you whether yours was accepted. API calls themselves don't count as clicks; visitors clicking your links do.
Endpoints
| Endpoint | Returns |
|---|---|
GET /api/v1/cameras | Public cameras, filterable and paginated (see parameters below). |
GET /api/v1/cameras/{slug} | One camera by its slug (or numeric id), plus coverage_24h_pct: how much of the last 24 hours is recorded. |
GET /api/v1/areas | Every state/city we cover, with camera counts and a ready-made cameras_url for each. |
GET /api/v1 | API info: camera count, footage price, endpoint list. |
Parameters for /api/v1/cameras
| Parameter | Example | Meaning |
|---|---|---|
ref | ref=YOURCODE | Your affiliate code. It's added to every link in the response. Works on every endpoint. |
state | state=VA | Two-letter state. |
city | city=Hampton | City or area name (partial match). |
near + radius_km | near=37.03,-76.36&radius_km=10 | Cameras within a radius (default 25 km, max 500), nearest first, with distance_km. |
q | q=I-64 | Text search in name, route and city. |
type | type=video | video or stills (still image every 1–2 minutes). |
live | live=1 | Only cameras receiving data right now. |
limit, offset | limit=50&offset=50 | Paging (limit 1–500, default 100). Follow next for the next page. |
Example response
{
"api_version": 1,
"ref": "YOURCODE", "ref_valid": true,
"total": 1, "count": 1, "limit": 100, "offset": 0, "next": null,
"cameras": [{
"id": 33,
"slug": "aberdeen-rd-and-briarfield-rd-hampton-va",
"name": "Aberdeen Rd and Briarfield Rd",
"route": null,
"city": "Hampton", "state": "VA",
"place": "Hampton, VA",
"lat": 37.018959, "lon": -76.404038,
"type": "video", "live": true,
"timezone": "America/New_York",
"recording_since": "2026-11-17T20:33:00Z", "retention_days": 10,
"thumbnail_url": "https://redlightrecorder.com/thumb/33",
"page_url": "https://redlightrecorder.com/camera/aberdeen-rd-and-briarfield-rd-hampton-va?ref=YOURCODE",
"request_url": "https://redlightrecorder.com/request?camera=33&ref=YOURCODE"
}]
}
Copy-paste widget
Paste this into any web page to show a camera list for a state, linked with your code. Change state=VA to any filter above.
<div id="rlr-cams">Loading traffic cameras…</div>
<script>
fetch("https://redlightrecorder.com/api/v1/cameras?state=VA&limit=20&ref=YOURCODE")
.then(function (r) { return r.json(); })
.then(function (d) {
var el = document.getElementById("rlr-cams");
el.innerHTML = "<p><strong>In an accident? Get the traffic camera video:</strong></p>";
var ul = document.createElement("ul");
d.cameras.forEach(function (c) {
var li = document.createElement("li"), a = document.createElement("a");
a.href = c.page_url; a.textContent = c.name + " (" + c.place + ")";
li.appendChild(a); ul.appendChild(li);
});
el.appendChild(ul);
});
</script>
Live preview
Fair use
- Free for any website. Please cache responses: data changes about once a minute and camera lists rarely change.
- Rate limit: 300 requests per 10 minutes per IP (HTTP 429 with a JSON error beyond that).
- CORS is open (
Access-Control-Allow-Origin: *), so you can call it from browser JavaScript. - Don't present the cameras as your own service, and link to our pages for footage requests.
- The API is read-only. Footage is requested through the camera page or
request_url.
Questions or need more? Contact us.