Skip to content

API reference

API: Places

Markdown version

MethodPathWhat it doesScope
GET/v1/data/compareUp to four places side by side, as their own pages show them. Nothing is scored or put in order (no sign-in)—
GET/v1/data/indexA state's counties, towns and ZIP codes with enough figures for a page of their own (no sign-in)—
GET/v1/data/local-namesA state's local neighborhood names, from OpenStreetMap, as a CSV file under the ODbL (no sign-in)—
GET/v1/data/map/viewA link that opens the map on a place, colored by a fact, with places to compare or the ones that fit a budget lit up (no sign-in)—
GET/v1/data/maps/:state/:slugA place's map: the neighborhoods in and around it, with the facts people compare by (no sign-in)—
GET/v1/data/matchFind places in a state, or near one, by budget. Never by who lives there, kind of homes, schools or crime (no sign-in)—
POST/v1/data/matchFind places by budget, as GET /v1/data/match, with the question in the body so a place to be near isn't in the URL (no sign-in)—
GET/v1/data/placesFind a place by its name, ZIP code or an address (no sign-in)—
GET/v1/data/places/:state/:slugEverything we know about a place, with the source, year and method of every number (no sign-in)—
GET/v1/data/places/:state/:slug/comparedHow each of a place's figures compares with its county, state and the country: where it ranks among places of its kind, how it changed, and a plain sentence (no sign-in)—
POST/v1/data/places/searchFind a place by its name, ZIP code or an address, sent in the body (q) so an address isn't in the URL (no sign-in)—
GET/v1/data/sourcesEvery source we use: its publisher, years, the states it covers and its license, with the credit and notice the license asks for (no sign-in)—
GET/v1/data/versionWhich load of the place facts is live: it changes whenever new figures are loaded (no sign-in)—
GET/v1/places/alertsWhether alerts are on for your saved places, and what they coverplaces:read
PUT/v1/places/alertsTurn alerts for your saved places on or off (settings access). Turning them on sends nothing about the past (web app only)places:write
GET/v1/places/brandYour business's name, contact line and logo as they appear on your reportsplaces:read
PUT/v1/places/brandSet the name and contact line on your reports (settings access). Empty leaves them off (web app only)places:write
DELETE/v1/places/brand/logoTake your logo off your reports (settings access) (web app only)places:write
GET/v1/places/brand/logoYour logo, as you sent itplaces:read
PUT/v1/places/brand/logoPut your logo on your reports (settings access): a PNG or JPEG of 200 KB or less, sent as base64 (web app only)places:write
GET/v1/places/bulkHow many addresses your business can still look up today, and the limitsplaces:read
POST/v1/places/bulkLook up a CSV of up to 1,000 addresses and get it back with each one's ZIP code and facts added. Nothing is keptplaces:read
GET/v1/places/embedsYour maps on other websites, each with its snippet and how often it was seenplaces:read
POST/v1/places/embedsPut a map on your website (settings access): its address, the place it opens on and the fact it's colored by (web app only)places:write
DELETE/v1/places/embeds/:idTake a map off a website (settings access). It stops showing within a minute (web app only)places:write
GET/v1/places/matchFind places by budget across the whole country, with how many are in each stateplaces:read
GET/v1/places/reportsThe reports your team made, newest first (the latest 100): make any of them again for today's figuresplaces:read
GET/v1/places/reports/:state/:slugA place's report, as a PDF or a spreadsheetplaces:read
POST/v1/places/reports/:state/:slug/buyBuy one place's report once (owners): returns the checkout URL to open. It never renews; the report is yours when Stripe confirms the payment. Refused when your plan includes reports or this place is bought already (web app only)billing:write
GET/v1/places/savedThe places your account saved, newest firstplaces:read
POST/v1/places/savedSave a place to your accountplaces:write
DELETE/v1/places/saved/:idRemove a saved place and its noteplaces:write
PATCH/v1/places/saved/:idChange the note on a saved placeplaces:write
GET/v1/places/setupYour first steps and which are doneplaces:read
GET/v1/places/teamYour team: each member, their role and what they may domembers:read
PUT/v1/places/team/:user_idSet what a team member may do: a role, or abilities one by one. Only an owner gives or takes settings access (web app only)members:write
POST/v1/places/team/inviteInvite someone to the team by email with a role, which they get when they accept (owners only) (web app only)members:write

Examples

GET /v1/data/compare

Up to four places side by side, as their own pages show them. Nothing is scored or put in order. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/compare"
const res = await fetch(`https://api.wherestead.com/v1/data/compare`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/index

A state's counties, towns and ZIP codes with enough figures for a page of their own. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/index"
const res = await fetch(`https://api.wherestead.com/v1/data/index`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/local-names

A state's local neighborhood names, from OpenStreetMap, as a CSV file under the ODbL. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/local-names"
const res = await fetch(`https://api.wherestead.com/v1/data/local-names`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/map/view

A link that opens the map on a place, colored by a fact, with places to compare or the ones that fit a budget lit up. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/map/view"
const res = await fetch(`https://api.wherestead.com/v1/data/map/view`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/maps/$STATE/$SLUG

A place's map: the neighborhoods in and around it, with the facts people compare by. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/maps/$STATE/$SLUG"
const res = await fetch(`https://api.wherestead.com/v1/data/maps/${state}/${slug}`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/match

Find places in a state, or near one, by budget. Never by who lives there, kind of homes, schools or crime. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/match"
const res = await fetch(`https://api.wherestead.com/v1/data/match`, {
  method: "GET",
});
const data = await res.json();

POST /v1/data/match

Find places by budget, as GET /v1/data/match, with the question in the body so a place to be near isn't in the URL. No sign-in, so it sends no key.

curl -s -X POST "https://api.wherestead.com/v1/data/match" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.wherestead.com/v1/data/match`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/data/places

Find a place by its name, ZIP code or an address. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/places"
const res = await fetch(`https://api.wherestead.com/v1/data/places`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/places/$STATE/$SLUG

Everything we know about a place, with the source, year and method of every number. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/places/$STATE/$SLUG"
const res = await fetch(`https://api.wherestead.com/v1/data/places/${state}/${slug}`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/places/$STATE/$SLUG/compared

How each of a place's figures compares with its county, state and the country: where it ranks among places of its kind, how it changed, and a plain sentence. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/places/$STATE/$SLUG/compared"
const res = await fetch(`https://api.wherestead.com/v1/data/places/${state}/${slug}/compared`, {
  method: "GET",
});
const data = await res.json();

POST /v1/data/places/search

Find a place by its name, ZIP code or an address, sent in the body (q) so an address isn't in the URL. No sign-in, so it sends no key.

curl -s -X POST "https://api.wherestead.com/v1/data/places/search" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.wherestead.com/v1/data/places/search`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/data/sources

Every source we use: its publisher, years, the states it covers and its license, with the credit and notice the license asks for. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/sources"
const res = await fetch(`https://api.wherestead.com/v1/data/sources`, {
  method: "GET",
});
const data = await res.json();

GET /v1/data/version

Which load of the place facts is live: it changes whenever new figures are loaded. No sign-in, so it sends no key.

curl -s "https://api.wherestead.com/v1/data/version"
const res = await fetch(`https://api.wherestead.com/v1/data/version`, {
  method: "GET",
});
const data = await res.json();

GET /v1/places/alerts

Whether alerts are on for your saved places, and what they cover

curl -s "https://api.wherestead.com/v1/places/alerts" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/alerts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/brand

Your business's name, contact line and logo as they appear on your reports

curl -s "https://api.wherestead.com/v1/places/brand" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/brand`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

Your logo, as you sent it

curl -s "https://api.wherestead.com/v1/places/brand/logo" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/brand/logo`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/bulk

How many addresses your business can still look up today, and the limits

curl -s "https://api.wherestead.com/v1/places/bulk" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/bulk`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

POST /v1/places/bulk

Look up a CSV of up to 1,000 addresses and get it back with each one's ZIP code and facts added. Nothing is kept

curl -s -X POST "https://api.wherestead.com/v1/places/bulk" \
  -H "Authorization: Bearer $NB_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.wherestead.com/v1/places/bulk`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/places/embeds

Your maps on other websites, each with its snippet and how often it was seen

curl -s "https://api.wherestead.com/v1/places/embeds" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/embeds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/match

Find places by budget across the whole country, with how many are in each state

curl -s "https://api.wherestead.com/v1/places/match" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/match`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/reports

The reports your team made, newest first (the latest 100): make any of them again for today's figures

curl -s "https://api.wherestead.com/v1/places/reports" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/reports`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/reports/$STATE/$SLUG

A place's report, as a PDF or a spreadsheet

curl -s "https://api.wherestead.com/v1/places/reports/$STATE/$SLUG" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/reports/${state}/${slug}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/saved

The places your account saved, newest first

curl -s "https://api.wherestead.com/v1/places/saved" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/saved`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

POST /v1/places/saved

Save a place to your account

curl -s -X POST "https://api.wherestead.com/v1/places/saved" \
  -H "Authorization: Bearer $NB_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.wherestead.com/v1/places/saved`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/places/saved/$ID

Remove a saved place and its note

curl -s -X DELETE "https://api.wherestead.com/v1/places/saved/$ID" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/saved/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

PATCH /v1/places/saved/$ID

Change the note on a saved place

curl -s -X PATCH "https://api.wherestead.com/v1/places/saved/$ID" \
  -H "Authorization: Bearer $NB_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.wherestead.com/v1/places/saved/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/places/setup

Your first steps and which are done

curl -s "https://api.wherestead.com/v1/places/setup" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/setup`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

GET /v1/places/team

Your team: each member, their role and what they may do

curl -s "https://api.wherestead.com/v1/places/team" \
  -H "Authorization: Bearer $NB_API_KEY"
const res = await fetch(`https://api.wherestead.com/v1/places/team`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.NB_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.wherestead.com/openapi.json. All resources: API reference.

Data terms

Place facts carry each figure's source. Chicago's crime counts come from the City of Chicago, whose terms ask that its disclaimer go with them; repeat it wherever you show them:

This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one’s own risk.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.