{"name":"Data Threads API","description":"Threads on Data, as its pages list them.","api_id":"generated_b61c2932ce9a08b707652520","slug":"data-threads-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-02","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-01T11:25:00.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_b61c2932ce9a08b707652520_search","name":"List Data Threads","description":"Return records within the accepted scope.","definition_version":"6af14d85e1c7603f2a0af4676c290e22b73e1f89113772cc805b1534efc377fd","method":"POST","path":"/v1/catalog/public/apis/generated_b61c2932ce9a08b707652520/endpoints/generated_b61c2932ce9a08b707652520_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_b61c2932ce9a08b707652520/endpoints/generated_b61c2932ce9a08b707652520_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":{"enrich_records":{"type":"boolean","default":true,"description":"true: read each returned record's product/detail page and merge its fields into the record. false: return list/search-level fields only, with no detail page reads. Every returned record's detail page is read within the run's time budget; records the time budget leaves unread are returned without detail fields, and summary.record_enrichment reports how many records were enriched and why any were not (run_time_budget). Detail fields are optional."},"daysprune":{"x-enum-labels":["Last Post","Last Day","Last 2 Days","Last Week","Last 10 Days","Last 2 Weeks","Last Month","Last 45 Days","Last 2 Months","Last 75 Days","Last 100 Days","Last Year"],"x-value-status":["verified","observed","observed","observed","observed","observed","observed","observed","observed","observed","observed","observed"],"description":"Optional. One observed value of the site's own filter; the pasted page is read with only this value changed and revalidated like the collection. Omit for the pasted page.","x-input-proof":{"evidence":"declared","key":"daysprune","notes":["same_records_as_collection"],"read":"listing","rule":"request_structure_v1","value":"-1","where":"query"},"x-source-key":"daysprune","anyOf":[{"type":"string","enum":["-1","1","2","7","10","14","30","45","60","75","100","365"]},{"type":"number","enum":[-1,1,2,7,10,14,30,45,60,75,100,365]}],"x-input-type":{"kind":"enum"}},"sort":{"x-input-proof":{"evidence":"declared","key":"order,sort","kind":"sort_choices","read":"listing","rule":"request_structure_v1","value":"desc_voteavg","where":"query"},"type":"string","enum":["desc_voteavg","asc_title","asc_postusername","desc_replycount","desc_views","title","lastpost","dateline","postusername","asc"],"x-enum-labels":{"desc_voteavg":"Rating","asc_title":"Thread","asc_postusername":"Thread Starter","desc_replycount":"Replies","desc_views":"Views","title":"Thread Title","lastpost":"Last Post Time","dateline":"Thread Start Time","postusername":"Thread Starter","asc":"Ascending"},"x-source-keys":["order","sort"],"x-value-status":"verified","x-combination":"unproven","description":"Order of the collection, as the site's own sort control offers it; omitted keeps the site's default order."}},"required":[],"additionalProperties":false},"output_schema":{"type":"object","additionalProperties":false,"required":["title","url"],"properties":{"author":{"type":"string"},"image_url":{"type":"string"},"replies":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string","format":"uri"},"views":{"type":"integer"},"opening_post":{"type":"string"},"typed_views":{"type":"integer","minimum":0,"description":"Reviewed numeric reading of views; source value is preserved."}}},"examples":[{"kind":"saved_validation_records","saved_at":"2026-12-01T11:25:00.837Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"author":"Mr_Geek","image_url":"https://pics3.city-data.com/forum/images/statusicon/thread_hot.gif","opening_post":"I'm going to post a good news story each and every day. Cop Spends His Last Day On The Job Handing Out Gift Cards To Strangers What a great story about how a police officer spent his last day and paycheck on those in need.","replies":1578,"title":"Good News (Updated Daily)","url":"https://www.city-data.com/forum/current-events/2412784-good-news-updated-daily.html","views":403177},{"author":"Administrator","image_url":"https://pics3.city-data.com/forum/images/statusicon/thread_hot_lock.gif","opening_post":"Please don't bring politics into any topic on this forum. The Politics and Other Controversies forum is here. Do not respond to any political posts. Report them. Very controversial topics should also be placed in the Politics and Other Controversies or another forum about them. No threads about gun laws, religion, gay marriage, abortion, unions, immigration, healthcare laws, minimum wage, taxes, etc. should be here.","replies":4,"title":"The Current Events Forum is strictly for non-political discussions. No partisan jabs and no very controversial topics","url":"https://www.city-data.com/forum/current-events/1828724-current-events-forum-strictly-non-political.html","views":34513}]}],"request_example":{"body":{"input":{},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_b61c2932ce9a08b707652520/endpoints/generated_b61c2932ce9a08b707652520_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  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_b61c2932ce9a08b707652520/endpoints/generated_b61c2932ce9a08b707652520_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/data-threads-api/","markdown":"https://cleanedweb.com/catalog/data-threads-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_b61c2932ce9a08b707652520/endpoints/generated_b61c2932ce9a08b707652520_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/data-threads-api/","markdown":"https://cleanedweb.com/catalog/data-threads-api/index.md","contract":"https://cleanedweb.com/catalog/data-threads-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
