CleanedWeb

city-data.com

City Data API

2 unofficial CleanedWeb APIs read city-data.com and return JSON. Each is its own API, with its own inputs and fields.

  • 2 APIs
  • Updated

What each City Data API returns

Each API takes its own inputs and returns records with a fixed set of fields. These are the fields each API leads with; its page lists every field, with a type and an example value.

API Required inputs Main fields
City-Data.com Company Details API url title, name, url, business.name, wv
Data Threads API None required title, url, image_url, author, replies, views

An example record

title
$15 Locksmith Austin (512) 944-7984 in Austin, Texas
name
$15 Locksmith Austin (512) 944-7984 in Austin, Texas
url
https://www.city-data.com/profiles/40257
wv
WY
One record saved from the City-Data.com Company Details API on Dec 3, 2026, not a live run.

Call it over REST

Every API runs with one POST request and an API key. This one calls the City-Data.com Company Details API for up to 25 records; the others differ only in their address and inputs.

curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "https://www.city-data.com/profiles/40257"
  },
  "max_items": 25
}'

AI agents can find and run the same APIs through the CleanedWeb MCP server, in Claude, ChatGPT, Cursor and other clients.

Questions about the City Data API

Is this the official City Data API?

No. These are unofficial APIs built by CleanedWeb, which is not affiliated with City Data. They read the public pages of city-data.com, never pages behind a login, and return what those pages show as JSON.

What does it cost?

$1 per 1,000 records, paid from prepaid credit. A run that returns no records costs nothing, and the first 5,000 records are free. There is no monthly subscription.

What happens when city-data.com changes?

Catalog APIs are checked once a day. When one keeps failing, it is rebuilt from the site as it is now and swapped in only after it passes the same checks, with the same API ID and URL.

Can I get City Data data these APIs do not cover?

Request it below: name the page and the records you need, and we email you when the API is in the catalog, or why it cannot be added.

CleanedWeb is not affiliated with City Data.

Browse the catalog

Don’t see the website you need?

Paste its URL to build its API yourself, with real sample records in minutes. Or request it: we email you when it’s in the catalog, or why we can’t add it. Building it costs you nothing.

5,000 records free · No card required Request it instead