Embeddable Crime Map

Embed a live neighborhood safety map on your website

Center a hosted safety map on listing coordinates or ZIP and market views, select its theme, layers, and geography, then protect production embeds with publishable keys and domain restrictions.

embeddable crime mapcrime map widgetcrime map for real estate websitessafety map widgetembedded neighborhood safety map

Live embed preview

What the map can look like on your site

Center an embedded safety map on a listing, ZIP-code guide, market page, or internal dashboard. The hosted iframe can start at a specific latitude and longitude, layer, geography, zoom level, and theme.

  • Use publishable keys for production customer embeds.
  • Restrict embeds to approved domains from the dashboard.
  • Show light or dark map themes without rebuilding the map stack.

API routes

What developers can call

Iframe GET /embed

Center an embed on a property or market

Use latitude, longitude, zoom, layer, geography, and theme parameters to place the hosted map where your users already evaluate location.

<iframe
  src="https://crimescore.io/embed?key=cs_pub_...&lat=40.7128&lng=-74.0060&zoom=12&layer=overall&geography=standard&theme=light"
  width="100%"
  height="520"
  style="border:0;border-radius:12px;"
  loading="lazy"
></iframe>
Public preview GET /embed?public=true

Preview the map before adding a key

Public preview mode is for CrimeScore-owned demo pages. Production customer embeds should use a publishable key and allowed-domain restrictions.

https://crimescore.io/embed?public=true&lat=40.7128&lng=-74.0060&zoom=11&layer=overall&theme=light
API GET /v1/score

Pair the map with backend scoring

Use the embed for visual exploration and the score API when your backend needs the same location context as structured JSON.

GET /v1/score?lat=40.7128&lng=-74.0060

{
  "safety_score": 28,
  "safety_grade": "D",
  "components": {
    "violent_crime": 24.8,
    "property_crime": 37.9,
    "disorder": 29.2,
    "frequency": 31.5
  }
}

Built for real estate and location pages

The embed widget is designed for places where users already evaluate location: property listings, neighborhood guides, market pages, investor dashboards, lead-capture pages, and internal research tools.

Instead of sending users to a separate public crime map, teams can keep the safety context inside their own website or application flow.

  • Property pages centered on a listing coordinate
  • Neighborhood pages centered on a city, ZIP, or market
  • Portfolio dashboards that need a visual safety layer
  • Lead forms where location context helps qualify interest

Configurable by URL

Publishable keys are domain-restricted, and the map can be configured with latitude, longitude, zoom, layer, geography, and theme parameters.

That keeps setup simple for teams that want a hosted map surface without owning PMTiles generation, MapLibre styling, score popups, or browser-key validation.

  • Light or dark map theme
  • Overall, violent crime, property crime, disorder, or frequency layer
  • Block-group or ZIP/ZCTA presentation where available
  • Starter watermarked embeds and Pro unwatermarked embeds

A visual layer for the score API

The embedded map uses the same national scoring layers as the API. Users can pan, zoom, and click into map features while your backend can use the score endpoint for workflow logic.

For example, a listing page can show the hosted map beside the property details while your backend stores the structured Safety Score, grade, component scores, and geography returned by the API.

Developer-friendly setup

Create a publishable key, add allowed domains, and place the iframe where you want the map to appear. Paid tiers can reduce or remove watermark prominence depending on plan.

Secret keys should stay server-side for REST API calls. Publishable keys are the browser-safe key type intended for map embeds.

<iframe
  src="https://crimescore.io/embed?key=cs_pub_...&lat=40.7128&lng=-74.0060&zoom=12&layer=overall&theme=light"
  width="100%"
  height="520"
  style="border:0;border-radius:12px;"
  loading="lazy"
></iframe>

FAQ

Common questions

Do I need a secret API key for embeds?

No. Embeds use publishable keys that can be domain-restricted from the dashboard.

Can I choose a map theme?

Yes. The embed supports dark and light themes.

Can I center the map on a listing?

Yes. Pass latitude, longitude, and zoom parameters in the iframe URL.