City & State Open Data Query API
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.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from api.us.socrata.com/api/catalog/v1
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/socrata-dataset-query/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"search":"building permits"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields: 10 here, 2 technical ones under Technical details.
Basics
- Record kind
dataset or row.
Example row
- Dataset title
Example Building Permits
- Portal
The portal domain the dataset lives on.
Example data.cityofchicago.org
- Description
What the dataset holds (dataset records).
Example Building permits issued by the City of Chicago from 2006 to the present, excluding permits that have been voided or…
- Category
The portal's category for the dataset, such as Buildings.
Example Buildings
- Attribution
The publisher to credit.
Example City of Chicago
- Columns
The dataset's column names, as used in where filters (dataset records).
Example id, permit_
- Row
The row's values by column name (row records).
Example ID: 2521984 · Permit: 100519281 · Permit type: PERMIT - ELEVATOR EQUIPMENT
Dates
- Updated
When the dataset's data was last updated (dataset records) or the row last changed (row records).
Example Oct 26, 2026
Links
- Link
The dataset's page on its portal.
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idDataset code for a dataset record; dataset code and row id for a row record. - Dataset ID
dataset_idThe dataset's code on its portal.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
record_kind | text | Record kind | 3 of 3 |
dataset_id | text | Dataset ID (hidden) | 3 of 3 |
name | text | Dataset title | 3 of 3 |
portal | text | Portal | 3 of 3 |
url | link | Link | 3 of 3 |
description | text | Description | 3 of 3 |
category | text | Category | 3 of 3 |
attribution | text | Attribution | 3 of 3 |
updated_at | date and time | Updated | 3 of 3 |
columns | list | Columns | 3 of 3 |
row | group of values | Row | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Dataset title | Record kind | Portal | Description | Category | Attribution | Columns | Row | Updated | Link |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Building Permits | row | data.cityofchicago.org | 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… | Buildings | City of Chicago | id, permit_, permit_status, permit_milestone | ID: 2521984 · Permit: 100519281 · Permit type: PERMIT - ELEVATOR EQUIPMENT | Oct 26, 2026 | data.cityofchicago.org/d/ydr8-5enu |
| 2 | Building Permits | row | data.cityofchicago.org | 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… | Buildings | City of Chicago | id, permit_, permit_status, permit_milestone | ID: 2514941 · Permit: 100515249 · Permit type: PERMIT - EASY PERMIT PROCESS | Oct 26, 2026 | data.cityofchicago.org/d/ydr8-5enu |
| 3 | Building Permits | row | data.cityofchicago.org | 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… | Buildings | City of Chicago | id, permit_, permit_status, permit_milestone | ID: 1812039 · Permit: B100180034 · Permit status: COMPLETE | Oct 26, 2026 | data.cityofchicago.org/d/ydr8-5enu |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- 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.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.