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.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

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

Searchoptional
Words to find datasets, as you would type them in a portal's search box.
Example: building permits
Portaloptional
Portal domain to search within or to read rows from, such as data.cityofchicago.org.
Example: data.cityofchicago.org
Dataset codeoptional
The dataset's code (such as ydr8-5enu) to read its rows; needs portal.
Example: ydr8-5enu
Whereoptional
Simple row filter on the dataset's columns, used with dataset_code.
Example: issue_date > '2026-11-01'

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
Endpoint
POSThttps://pullrow.dev/v1/apis/socrata-dataset-query/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

searchtext
Words to find datasets, as you would type them in a portal's search box.
example: building permits
portaltext
Portal domain to search within or to read rows from, such as data.cityofchicago.org.
example: data.cityofchicago.org
dataset_codetext
The dataset's code (such as ydr8-5enu) to read its rows; needs portal.
example: ydr8-5enu
wheretext
Simple row filter on the dataset's columns, used with dataset_code.
example: issue_date > '2026-11-01'

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
record_kindtextRecord kind3 of 3
dataset_idtextDataset ID (hidden)3 of 3
nametextDataset title3 of 3
portaltextPortal3 of 3
urllinkLink3 of 3
descriptiontextDescription3 of 3
categorytextCategory3 of 3
attributiontextAttribution3 of 3
updated_atdate and timeUpdated3 of 3
columnslistColumns3 of 3
rowgroup of valuesRow3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordDataset titleRecord kindPortalDescriptionCategoryAttributionColumnsRowUpdatedLink
1Building Permitsrowdata.cityofchicago.orgBuilding 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…BuildingsCity of Chicagoid, permit_, permit_status, permit_milestoneID: 2521984 · Permit: 100519281 · Permit type: PERMIT - ELEVATOR EQUIPMENTOct 26, 2026data.cityofchicago.org/d/ydr8-5enu
2Building Permitsrowdata.cityofchicago.orgBuilding 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…BuildingsCity of Chicagoid, permit_, permit_status, permit_milestoneID: 2514941 · Permit: 100515249 · Permit type: PERMIT - EASY PERMIT PROCESSOct 26, 2026data.cityofchicago.org/d/ydr8-5enu
3Building Permitsrowdata.cityofchicago.orgBuilding 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…BuildingsCity of Chicagoid, permit_, permit_status, permit_milestoneID: 1812039 · Permit: B100180034 · Permit status: COMPLETEOct 26, 2026data.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.
Known limits
  • 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.