{"api":{"id":"api_fa4c6a8f06dcb9dcdc7378af","slug":"socrata-dataset-query","name":"City & State Open Data Query API","description":"Find and read open-data tables from US city, county and state portals built on Socrata. Search the catalog of datasets by keyword and portal, or pull the rows of any dataset with a simple filter, as clean JSON.","kind":"ready_made","visibility":"public","domain":"api.us.socrata.com","source_url":"https://api.us.socrata.com/api/catalog/v1","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.709Z","updated_at":"2026-12-06T03:57:27.709Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Dataset code for a dataset record; dataset code and row id for a row record.","required":true,"coverage":1,"example":"ydr8-5enu:row-3ipw.9ivz-dugu"},{"name":"record_kind","type":"string","description":"dataset or row.","required":false,"coverage":1,"example":"row"},{"name":"dataset_id","type":"string","description":"The dataset's code on its portal.","required":false,"coverage":1,"example":"ydr8-5enu"},{"name":"name","type":"string","description":"Dataset title (dataset records).","required":false,"coverage":1,"example":"Building Permits"},{"name":"portal","type":"string","description":"The portal domain the dataset lives on.","required":false,"coverage":1,"example":"data.cityofchicago.org"},{"name":"url","type":"url","description":"The dataset's page on its portal.","required":false,"coverage":1,"example":"https://data.cityofchicago.org/d/ydr8-5enu"},{"name":"description","type":"string","description":"What the dataset holds (dataset records).","required":false,"coverage":1,"example":"Building permits issued by the City of Chicago from 2006 to the present, excluding permits that have been voided or…"},{"name":"category","type":"string","description":"The portal's category for the dataset, such as Buildings.","required":false,"coverage":1,"example":"Buildings"},{"name":"attribution","type":"string","description":"The publisher to credit.","required":false,"coverage":1,"example":"City of Chicago"},{"name":"updated_at","type":"datetime","description":"When the dataset's data was last updated (dataset records) or the row last changed (row records).","required":false,"coverage":1,"example":"2026-10-26T22:16:05.710Z"},{"name":"columns","type":"array","description":"The dataset's column names, as used in where filters (dataset records).","required":false,"coverage":1,"example":["id","permit_"]},{"name":"row","type":"object","description":"The row's values by column name (row records).","required":false,"coverage":1,"example":{"id":"2521984","permit_":"100519281","permit_type":"PERMIT - ELEVATOR EQUIPMENT","review_type":"CONVEYANCE DEVICE PERMIT","application_start_date":"2013-11-27T00:00:00.000"}}],"inputs":[{"name":"search","type":"string","description":"Words to find datasets, as you would type them in a portal's search box.","example":"building permits"},{"name":"portal","type":"string","description":"Portal domain to search within or to read rows from, such as data.cityofchicago.org.","example":"data.cityofchicago.org"},{"name":"dataset_code","type":"string","description":"The dataset's code (such as ydr8-5enu) to read its rows; needs portal.","example":"ydr8-5enu"},{"name":"where","type":"string","description":"Simple row filter on the dataset's columns, used with dataset_code.","example":"issue_date > '2026-11-01'"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"attribution":{"description":"The publisher to credit.","type":"string"},"category":{"description":"The portal's category for the dataset, such as Buildings.","type":"string"},"columns":{"description":"The dataset's column names, as used in where filters (dataset records).","type":"array"},"dataset_id":{"description":"The dataset's code on its portal.","type":"string"},"description":{"description":"What the dataset holds (dataset records).","type":"string"},"id":{"description":"Dataset code for a dataset record; dataset code and row id for a row record.","type":"string"},"name":{"description":"Dataset title (dataset records).","type":"string"},"portal":{"description":"The portal domain the dataset lives on.","type":"string"},"record_kind":{"description":"dataset or row.","type":"string"},"row":{"description":"The row's values by column name (row records).","type":"object"},"updated_at":{"description":"When the dataset's data was last updated (dataset records) or the row last changed (row records).","format":"date-time","type":"string"},"url":{"description":"The dataset's page on its portal.","format":"uri","type":"string"}},"required":["id"],"title":"City & State Open Data Query API","type":"object"},"samples":[{"id":"ydr8-5enu:row-3ipw.9ivz-dugu","record_kind":"row","dataset_id":"ydr8-5enu","name":"Building Permits","portal":"data.cityofchicago.org","url":"https://data.cityofchicago.org/d/ydr8-5enu","description":"Building permits issued by the City of Chicago from 2006 to the present, excluding permits that have been voided or revoked after issuance. Most types of permits are issued subject to payment of the applicable permit fee. Work under a permit may not begin until the applicable…","category":"Buildings","attribution":"City of Chicago","updated_at":"2026-10-26T22:16:05.710Z","columns":["id","permit_","permit_status","permit_milestone"],"row":{"id":"2521984","permit_":"100519281","permit_type":"PERMIT - ELEVATOR EQUIPMENT","review_type":"CONVEYANCE DEVICE PERMIT","application_start_date":"2013-11-27T00:00:00.000","issue_date":"2013-11-27T00:00:00.000","processing_time":"0","street_number":"3101","street_direction":"W","street_name":"TOUHY AVE","work_description":"MODERIZATION OF (2) 6-STOP, 2500# CAPACITY (SOUTH CAR) & 2000# CAPACITY (NORTH CAR) PASSENGER ELEVATORS PURSUANT TO SCOPE OF WORK SUBMITTED. ALL WORK TO BE MADE IN COMPLIANCE WITH 2010 CITY OF CHICAGO ELEVATOR CODE & SUBJECT TO FIELD INSPECTIONS BY CITY OF CHICAGO ELEVATOR…","building_fee_paid":"400","zoning_fee_paid":"0","other_fee_paid":"0"}},{"id":"ydr8-5enu:row-smid_wnac_7x37","record_kind":"row","dataset_id":"ydr8-5enu","name":"Building Permits","portal":"data.cityofchicago.org","url":"https://data.cityofchicago.org/d/ydr8-5enu","description":"Building permits issued by the City of Chicago from 2006 to the present, excluding permits that have been voided or revoked after issuance. Most types of permits are issued subject to payment of the applicable permit fee. Work under a permit may not begin until the applicable…","category":"Buildings","attribution":"City of Chicago","updated_at":"2026-10-26T22:16:05.710Z","columns":["id","permit_","permit_status","permit_milestone"],"row":{"id":"2514941","permit_":"100515249","permit_type":"PERMIT - EASY PERMIT PROCESS","review_type":"EASY PERMIT WEB","application_start_date":"2013-10-29T00:00:00.000","issue_date":"2013-10-29T00:00:00.000","processing_time":"0","street_number":"2617","street_direction":"N","street_name":"MOBILE AVE","work_description":"GARAGE","building_fee_paid":"300","zoning_fee_paid":"50","other_fee_paid":"0"}},{"id":"ydr8-5enu:row-hrvx_3ms9_8hbk","record_kind":"row","dataset_id":"ydr8-5enu","name":"Building Permits","portal":"data.cityofchicago.org","url":"https://data.cityofchicago.org/d/ydr8-5enu","description":"Building permits issued by the City of Chicago from 2006 to the present, excluding permits that have been voided or revoked after issuance. Most types of permits are issued subject to payment of the applicable permit fee. Work under a permit may not begin until the applicable…","category":"Buildings","attribution":"City of Chicago","updated_at":"2026-10-26T22:16:05.710Z","columns":["id","permit_","permit_status","permit_milestone"],"row":{"id":"1812039","permit_":"B100180034","permit_status":"COMPLETE","permit_milestone":"COMPLETE","permit_type":"PERMIT - WRECKING/DEMOLITION","review_type":"DEMOLITION PERMIT","application_start_date":"2007-05-23T00:00:00.000","issue_date":"2007-07-11T00:00:00.000","processing_time":"49","street_number":"512","street_direction":"E","street_name":"PERSHING RD","work_description":"DEMOLITION OF A 2 AND 3 STORY BRICK CHA BUILDING.","building_fee_paid":"202"}}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"attribution":1,"category":1,"columns":1,"dataset_id":1,"description":1,"id":1,"name":1,"portal":1,"record_kind":1,"row":1,"updated_at":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_fa4c6a8f06dcb9dcdc7378af/run","openapi":"https://pullrow.dev/v1/apis/api_fa4c6a8f06dcb9dcdc7378af/openapi.json","contract":"https://pullrow.dev/v1/apis/api_fa4c6a8f06dcb9dcdc7378af/contract.json","page":"https://pullrow.dev/catalog/socrata-dataset-query"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Two modes: with search and/or portal you get dataset records (name, portal, description, columns, last update); with dataset_code and portal you get that dataset's rows. Dataset records have an empty row; row records repeat the dataset title, description and columns when the portal gives them.","The catalog covers Socrata portals in the US region; portals in other regions and non-Socrata portals are not included. A catalog search returns at most 10,000 datasets.","Row records keep the dataset's own column names and value types (mostly text), in the row field. Each portal's own terms and each dataset's licence apply; credit the publisher shown in attribution.","where takes a Socrata filter on the dataset's column names, for example issue_date > '2026-11-01'; a filter the portal rejects stops the run with the portal's message.","Requests are made without an app token, so portals may throttle heavy use; a run reads 1,000 rows a request at a gentle pace. Some portals answer slowly or briefly refuse, which can end a run early with the rows read so far."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Dataset code for a dataset record; dataset code and row id for a row record.","group":"Technical","shown":false,"written":false},{"name":"record_kind","label":"Record kind","description":"dataset or row.","group":"Basics","shown":true,"written":false},{"name":"dataset_id","label":"Dataset ID","description":"The dataset's code on its portal.","group":"Technical","shown":false,"written":false},{"name":"name","label":"Dataset title","description":"","group":"Basics","shown":true,"written":false},{"name":"portal","label":"Portal","description":"The portal domain the dataset lives on.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The dataset's page on its portal.","group":"Links","shown":true,"written":false},{"name":"description","label":"Description","description":"What the dataset holds (dataset records).","group":"Basics","shown":true,"written":false},{"name":"category","label":"Category","description":"The portal's category for the dataset, such as Buildings.","group":"Basics","shown":true,"written":false},{"name":"attribution","label":"Attribution","description":"The publisher to credit.","group":"Basics","shown":true,"written":false},{"name":"updated_at","label":"Updated","description":"When the dataset's data was last updated (dataset records) or the row last changed (row records).","group":"Dates","shown":true,"written":false},{"name":"columns","label":"Columns","description":"The dataset's column names, as used in where filters (dataset records).","group":"Basics","shown":true,"written":false},{"name":"row","label":"Row","description":"The row's values by column name (row records).","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"search","label":"Search","help":"Words to find datasets, as you would type them in a portal's search box.","example":"building permits","written":false},{"name":"portal","label":"Portal","help":"Portal domain to search within or to read rows from, such as data.cityofchicago.org.","example":"data.cityofchicago.org","written":false},{"name":"dataset_code","label":"Dataset code","help":"The dataset's code (such as ydr8-5enu) to read its rows; needs portal.","example":"ydr8-5enu","written":false},{"name":"where","label":"Where","help":"Simple row filter on the dataset's columns, used with dataset_code.","example":"issue_date > '2026-11-01'","written":false}]}},"incidents":[]}