Retrofit Atlas

API

A read-only JSON API over the same database as this site, at https://retrofitatlas.org/api/v1. No key for reads; a free key (magic link, no password) raises the quota and unlocks the full record, SQLite and Parquet exports and release webhooks. Responses carry Access-Control-Allow-Origin: * and short cache headers. License undecided: research use only until terms are agreed with the authors; attribute Retrofit Atlas and, for text excerpts, Wikipedia (CC BY-SA 4.0). Maintained by Staffbox AI agents; the data refreshes on every publish.

Full documentation: overview and quickstart · REST reference with live examples · MCP server · data model · OpenAPI 3.1 · changelog.

Endpoints

GET /api/v1this reference as JSON
GET /api/v1/siteslist. Params: q (name, aka, city), state, country, type, status, strategy (redevelop | reinhabit | regreen), element (profile element slug; comma-separated = all must match), min_acres, max_acres, verified (curated | draft | contributed), updated_since (YYYY-MM-DD), sort (name | acres | year_closed | year_retrofit | updated | score), limit ≤ 500, offset
GET /api/v1/sites/{id}one record by id or slug: every field with its provenance, events, sources with quotes, deals, parties, parcels, context layers (transit, flood, environment, tract, walkability, 15-minute, Opportunity Zone, permits, historic places, social vulnerability, cluster, Overture, pageviews, web presence, assessment, peers), profile elements with evidence, before/after details with quotes, photos with credits
GET /api/v1/near?lat=&lon=&km=&limit=sites within a radius (km ≤ 200), nearest first; limit caps the number of results
GET /api/v1/elementsall profile elements with counts
GET /api/v1/elements/{slug}sites carrying an element, with the evidence snippet; links the CSV
GET /api/v1/owners?q=owners, operators and developers
GET /api/v1/owners/{slug}one party with its sites and Wikidata facts
GET /api/v1/statscounts by country, state, status, tier, decade and layer
GET /api/v1/changes?since=records whose source was edited since a date or datetime; release=YYYY-MM-DD = records added or changed in that release (for agents and alerts)
POST /api/v1/keysrequest a key by magic link ({"email": …}); DELETE /api/v1/keys/{prefix} revokes one
GET /api/v1/meyour tier, quotas, usage today and this month, keys, webhook count (keyed)
GET /api/v1/export?format=csv|geojson|sqlite|parquet&release=latestpresigned 15-minute download of a release file with sha256, bytes, rows; ?list=1 lists releases; csv and geojson open, sqlite and parquet keyed
GET /api/v1/diff?from=YYYY-MM-DD&to=latestrecords added, changed and removed between two releases
POST /api/v1/webhooksregister an https URL for release events (keyed); GET lists, DELETE /api/v1/webhooks/{id} removes

Examples

curl "https://retrofitatlas.org/api/v1/sites?state=GA&element=status-awaiting&sort=acres"
curl "https://retrofitatlas.org/api/v1/sites?element=place-rail,scale-large-site&status=closed"
curl "https://retrofitatlas.org/api/v1/near?lat=33.75&lon=-84.39&km=40"
curl "https://retrofitatlas.org/api/v1/sites/m-2afa0a0e0b"

Python: requests.get("https://retrofitatlas.org/api/v1/sites", params={"strategy": "regreen"}).json()["results"]. Every result has a url (the page) and an api link (the full record).

Keys, quotas, exports, webhooks

Access. Anonymous reads stay open: 60 requests a minute and 1,000 a day per IP (only requests that reach the API count; CloudFront cache hits are free). A free key lifts that to 5,000 a day and unlocks the full record (parcel owner mailing address, assessed and taxable value, tax amount, sale price, deed reference, deal prices and loan amounts), SQLite and Parquet exports and webhooks. Academic phase: every tier is issued at no charge until the licence with the authors is agreed; write to desk@retrofitatlas.org for a pro, team or API quota.

Get a key (no password, ever).

curl -X POST https://retrofitatlas.org/api/v1/keys -H 'Content-Type: application/json' -d '{"email":"you@example.org"}'

A one-time link arrives from desk@retrofitatlas.org (valid 15 minutes). Opening it shows the key once (ra_ + 40 hex) and a 30-day session token. Then:

curl -H 'X-Api-Key: ra_…' https://retrofitatlas.org/api/v1/me

Authorization: Bearer ra_… is accepted too. Up to 5 active keys per address; revoke with DELETE /api/v1/keys/{prefix}.

Tierper minuteper dayper monthHow
anonymous601,00020,000per IP, nothing to do
free1205,000100,000magic link
pro30050,0001,000,000ask the desk (hand-issued)
team600150,0003,000,000ask the desk
api / institution1,200500,00010,000,000ask the desk

Every response carries RateLimit-Limit (per day), RateLimit-Remaining, RateLimit-Reset (seconds to 00:00 UTC), RateLimit-Policy (60;w=60, 1000;w=86400, 20000;w=2592000) and X-Atlas-Tier. Over a window: 429 with Retry-After. Bad or revoked key: 401. Errors are {error, status, docs}; because the CDN rewrites origin 403 and 404 to the HTML page, API misses answer 200 with X-Atlas-Status: 404 (now also for 403).

Exports. GET /api/v1/export?format=csv|geojson|sqlite|parquet&release=latest returns {release, url (presigned, 15 minutes), sha256, bytes, rows, manifest}. csv and geojson are open; sqlite and parquet need any key. ?list=1 lists releases. Releases, manifests and diffs: /data/releases/.

Diff feed. GET /api/v1/diff?from=YYYY-MM-DD&to=latest returns added, changed and removed records (id, name, url) between two releases. GET /api/v1/changes accepts since=<ISO datetime> and release=YYYY-MM-DD.

Webhooks (keyed). POST /api/v1/webhooks {"url": "https://…", "secret": "optional"}; the secret is shown once. On every release the notifier POSTs {event: "release", release, previous, added, changed, removed, sites, diff_url, manifest_url, export_url, sent_at} with headers X-Atlas-Event: release, X-Atlas-Delivery: dl_… and X-Atlas-Signature: t=<unix>,v1=<hex> where v1 = HMAC-SHA256(secret, "<t>." + body). Receiver check in Python:

import hmac, hashlib
t = sig.split(",")[0][2:]; v1 = sig.split("v1=")[1]
ok = hmac.compare_digest(hmac.new(secret.encode(), f"{t}.{body}".encode(), hashlib.sha256).hexdigest(), v1)

GET /api/v1/webhooks lists, DELETE /api/v1/webhooks/{id} removes. Five per account, https only, 10-second timeout, last status recorded.

Accounts. Passwordless only. GET /api/v1/me gives tier, quotas, usage today and this month, keys and webhook count. SSO: none yet; Google Workspace OIDC next, SAML for institutions after that (OpenAPI x-sso).

Status. /status/ and /status/status.json: five checks every five minutes (home, a record page, /api/v1/stats, MCP initialize, the release manifest), 24 h / 7 d / 30 d uptime, p50/p95 latency, last incident, data release date. Alarms email the desk after two consecutive failures or a 5xx rate over 1 %.

MCP server (for agents)

The same database as a Model Context Protocol server at https://retrofitatlas.org/api/mcp (Streamable HTTP, stateless, JSON replies, no key). Tools: search_sites, get_site, location_sheet (the location section of an underwriting, every layer with its source and date), sites_near, list_elements, sites_with_element, owners, stats, changes.

# Claude Code
claude mcp add --transport http retrofit-atlas https://retrofitatlas.org/api/mcp
# Any client: one JSON-RPC message per POST
curl -X POST https://retrofitatlas.org/api/mcp -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"location_sheet","arguments":{"id":"m-20a5ce25df"}}}'

Cursor, Claude Desktop, ChatGPT and other clients that take a remote MCP URL use the same address. Results carry the record URL to cite; model-extracted values stay labelled as drafts. Same licence and conduct as the REST API.

Static files

Bulk: /api/v1/export?format=csv returns a download link for sites.csv (no key); format=sqlite for SQL needs a free API key; open static files: GeoJSON, KML, /data/records/<id>.json per record. See Data and Integrations.

Identifiers and stability

Record ids (m-…) are stable across publishes; slugs can change when a name is corrected. Each record carries verified (its tier), last_updated (when its source last changed) and a provenance map naming the import, model or research set behind each field, the way Overture Maps carries per-property sources. Model-extracted values are labelled as such and are unreviewed.

Limits and conduct

Best effort, no SLA. Quotas per tier are in Keys, quotas, exports, webhooks; cache, and use the downloads or /api/v1/export for bulk work. Owner mailing addresses are entities' registered addresses from county assessors; natural persons are withheld. Report problems to desk@retrofitatlas.org; live checks at /status/.