Offender Map API · v1.0.0

Test mode

Made-up people in the real response shape. No plan needed, never billed.

Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.app

What test mode is

Test mode returns made-up people in the real response shape. Add sandbox=true to any map request. It needs no plan and is never charged.

To build with a test key and no live key at all, use the Map API sandbox server instead: every request there is test mode.

  • Every person is made up. Every name label starts with “Sample”.
  • The response is in the real shape, with the same fields.
  • It needs no plan. Any valid key works, on an account with a subscription or a free trial.
  • It is never billed and counts against no limit.
  • Every test-mode response carries "sandbox": true.

Turn it on for a request

Add sandbox=true to the query of GET /v1/map/viewport, or "sandbox": true to the body of POST /v1/map/area, POST /v1/map/route or POST /v1/map/routes.

GET /v1/map/viewport
curl -G https://api.offendersearch.app/v1/map/viewport \
  -H "X-API-Key: $OFFENDERSEARCH_KEY" \
  -d bbox=-83.2,39.8,-82.8,40.1 \
  -d zoom=10 \
  -d sandbox=true

Where the sample people are

The sample people are around eight US cities: Columbus, Cleveland, Cincinnati, Chicago, New York, Los Angeles, Houston and Seattle. A view anywhere else comes back empty. The examples in these docs open on Columbus.

They do not change from day to day, so a view you built against yesterday looks the same today.

Groups and records

Group ids and marker ids from a test-mode response open test-mode data. You do not add sandbox=true to the groups or records routes: the id already carries it.

  • A test-mode record is in the same record shape as a real one, with a made-up name, address and offense.
  • Its billing block says "billed": false with "reason": "sandbox".
  • Columbus has a pin that stands for several people at one address, and an approximate-area pin, so you can build the list view.

Going live

  1. Turn the Map API on. See Turn it on.
  2. Remove sandbox=true from your requests.
  3. Nothing else changes. The routes, fields and ids are the same.

Test the Map API on the sandbox server

Every Map API route also runs on the sandbox server with a test key (os_test_…): no plan, nothing metered, and no sandbox=true needed, because every request there is test mode. It draws the same made-up people as test mode on the live API. Use it to build with a test key and no live key at all; use sandbox=true when you already call the live API.

Base URL
https://sandbox.offendersearch.app Not https://api.offendersearch.app, which takes live keys only.
Test key
In the dashboard, Developers → API keys → Create test key. Test keys begin os_test_; send yours in the X-API-Key header.
GET /v1/map/viewport
curl "https://sandbox.offendersearch.app/v1/map/viewport?bbox=-83.20,39.85,-82.80,40.10" \
  -H "X-API-Key: $OFFENDERSEARCH_TEST_KEY"

Try it here

Pick a scenario, edit the request, and run it against the sandbox from this page. The explorer accepts os_test_ keys only and never reaches the live host, so nothing here is billed; the “production” code it copies is for your own backend with a live key.

Create a test key under Dashboard → API keys. Live keys are refused here.
Copy this request as code

Sandbox code uses your test key. Production code calls the live host and is billed per call; run it from your backend with an os_live_… key.

curl -X GET https://sandbox.offendersearch.app/v1/map/viewport?bbox=-83.20,39.85,-82.80,40.10 \
  -H "X-API-Key: $OFFENDERSEARCH_TEST_KEY"

Product overview