{"name":"City-Data.com Company Details API","description":"The record of a Company Details page on City-Data.com, read from the page's URL.","api_id":"generated_2f2b820669e8e85b3a3c022f","slug":"city-data-com-company-details-api","source":{"name":"City Data","domain":"city-data.com","url":"https://www.city-data.com/"},"category":"social_communities","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-12-03","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-12-02T21:24:43.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_2f2b820669e8e85b3a3c022f_search","name":"Get City-Data.com Company Details by URL","description":"Return the one record of a page of this kind, given the page's URL on the site.","definition_version":"cb58cb7388b40ebd2fc7879e5f3c3546191cc1edc829b250f93cf2e803f8cd0b","method":"POST","path":"/v1/catalog/public/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1,"description":"A page of the same kind as the build page, on city-data.com: its path matches /profiles/{int}. It need not be the build page.","examples":["https://www.city-data.com/profiles/40257"]},"urls":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","format":"uri","minLength":1},"description":"Pages of that kind (1 to 50 in all, with url): one record each, in this order, once per page; a call may give urls and no url. A page that fails (off the pattern, unreadable, no product data) is told by its code in the run's metadata (item_pages) and does not fail the run while another page is read.","examples":[["https://www.city-data.com/profiles/40257"]]}},"required":["url"],"additionalProperties":false},"output_schema":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"wv":{"type":"string"},"business":{"type":"object","properties":{"name":{"type":"string"},"credit_cards_accepted":{"type":"string"},"number_of_employees":{"type":"string"},"category":{"type":"string"}},"additionalProperties":true},"last_update":{"type":"string"},"visits":{"type":"string"},"name":{"type":"string"}},"required":["title","url"]},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-12-02T21:24:43.836Z","live_verified":false,"request":{"input":{"url":"https://www.city-data.com/profiles/40257"}},"records_shown":1,"records_saved":1,"records":[{"name":"$15 Locksmith Austin   (512) 944-7984 in Austin, Texas","title":"$15 Locksmith Austin (512) 944-7984 in Austin, Texas","url":"https://www.city-data.com/profiles/40257","wv":"WY"}]}],"request_example":{"body":{"input":{"url":"https://www.city-data.com/profiles/40257"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"url\": \"https://www.city-data.com/profiles/40257\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/city-data-com-company-details-api/","markdown":"https://cleanedweb.com/catalog/city-data-com-company-details-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_2f2b820669e8e85b3a3c022f/endpoints/generated_2f2b820669e8e85b3a3c022f_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/city-data-com-company-details-api/","markdown":"https://cleanedweb.com/catalog/city-data-com-company-details-api/index.md","contract":"https://cleanedweb.com/catalog/city-data-com-company-details-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
