{"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},"version":"1.0","contract_hash":"6039bd5c5334347e7ac696f425202469ea6939112ea4e4887f59cc7db034dee1","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.709Z","activated_at":"2026-12-06T03:57:27.709Z","active":true,"contract_hash":"6039bd5c5334347e7ac696f425202469ea6939112ea4e4887f59cc7db034dee1","fields_count":12}]}