Embed widget
Drop a live, branded city risk-score card onto any website with a single <iframe>. No JavaScript, no API key, no cookies.
Preview
Copy-paste snippet
<iframe src="https://evictionriskmap.com/embed/widget.php?slug=los-angeles-ca"
width="320" height="240" loading="lazy" frameborder="0"
title="Eviction Risk Map widget"></iframe>
Replace los-angeles-ca with any city's slug (city-name + state-abbr, lowercase, hyphenated). Examples: new-york-ny, austin-tx, san-francisco-ca.
Options
| Param | Values | Effect |
|---|---|---|
slug | {city}-{state} | Which city to render. Required (or use id). |
id | integer | Alternative to slug, if you already have our internal city id from the API. |
theme | light (default) / dark | Switches the card colors. dark matches a dark-mode site. |
w | full (default) / compact | compact hides the bottom stats row - shorter card (~180px tall). |
Dark theme
<iframe src="https://evictionriskmap.com/embed/widget.php?slug=austin-tx&theme=dark"
width="320" height="240" loading="lazy" frameborder="0"
title="Eviction Risk Map widget"></iframe>
Compact mode
<iframe src="https://evictionriskmap.com/embed/widget.php?slug=phoenix-az&w=compact"
width="320" height="180" loading="lazy" frameborder="0"
title="Eviction Risk Map widget"></iframe>
Rate limit: 30 widget loads per minute per visitor IP. For most blog / property-listing sites that's invisible; if you expect higher traffic, cache the iframe HTML on your end or contact us about a higher allowance.
Need just the data?
If you'd rather render your own UI, use the JSON API documented at evictionriskmap.com/api/. Same rate limit, same data, no iframe.
Attribution & licensing
Embed is free for commercial and non-commercial use. The widget already includes a “Full city report” link back to evictionriskmap.com - please keep it. Scores are licensed under CC BY 4.0.