Pushbuild

Open Data Portal API - Search and Query Socrata Datasets

Search datasets across 300+ government open data portals that run Socrata (NYC, Chicago, San Francisco, Seattle, states, CDC, CMS and more) and query any dataset with SoQL filters, sorting, aggregation and column selection.

$0.08 per 1,000 rows

Get an API key

What it returns

Search datasets across 300+ government open data portals that run Socrata (NYC, Chicago, San Francisco, Seattle, states, CDC, CMS and more) and query any dataset with SoQL filters, sorting, aggregation and column selection.

Request

POST https://api.pushbuild.com/socrata-open-data/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
modestring: search, query Default: "search".
querystringSearch: keywords
domainstringe.g. data.cityofnewyork.us
datasetIdstringQuery: 4x4 id, e.g. erm2-nwe9
wherestringQuery: SoQL, e.g. borough = 'BROOKLYN'
selectstringQuery: columns or aggregates
orderstringQuery: e.g. created_date DESC
textstringQuery: full-text search
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/socrata-open-data/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "restaurant inspections", "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.08 per 1,000 rows. No charge for errors or empty searches.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.