Socrata Scraper avatar

Socrata Scraper

Pricing

from $1.50 / 1,000 results

Go to Apify Store
Socrata Scraper

Socrata Scraper

Extract raw rows from any Socrata Open Data (SODA) portal — NYC, Chicago, LA, Seattle, CDC, HHS, CMS, and hundreds more city, county, state, and federal portals. SoQL filters, automatic pagination, no API key required.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

Aurenic

Aurenic

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

2 months ago

Last modified

Categories

Features

Limited permissions

Share

Extract raw rows from any Socrata Open Data (SODA) portal — NYC, Chicago, LA, Seattle, CDC, HHS, CMS, and hundreds more city, county, state, and federal portals. SoQL filters, automatic pagination, no API key required.

What does Socrata Scraper do?

Socrata powers open data portals for hundreds of U.S. city, county, state, and federal agencies. Every dataset on every portal exposes the same REST API (SODA). This actor is the generic reader:

  • Any portal, any dataset — pass { domain, datasetId } pairs. data.cityofnewyork.us + h9gi-nx95 returns NYC Motor Vehicle Collisions. data.cdc.gov + uqq2-txqb returns CDC COVID data. Hundreds of combinations.
  • SoQL queries — filter with $where, project with $select, sort with $order, aggregate with $group.
  • Automatic pagination — walks $limit / $offset until the dataset is exhausted or maxRowsPerTarget is hit.
  • Optional dataset metadata — emit a separate record with dataset name, description, column schema, and timestamps.

No API key required. Anonymous access is allowed at throttled rates. Register a free app token on any portal to raise the limit to 1,000 requests/hour.

Output fields

Each row is emitted as-is from the dataset, with two internal fields added:

FieldDescription
recordTyperow (or dataset-metadata when includeMetadata: true)
_source{ domain, datasetId } — which dataset produced this row
scrapedAtISO 8601 timestamp
…all dataset columnsWhatever columns the dataset defines (e.g. unique_key, created_date, complaint_type, borough, latitude, longitude)

Dataset metadata record (when enabled)

FieldDescription
nameDataset title
descriptionDataset description
categoryPortal category
attributionAttribution string
createdAt / rowsUpdatedAtDataset timestamps
columnsArray of { fieldName, name, dataType, description }

Who is it for?

  • Civic tech and gov-tech builders pulling permit, license, 311, and inspection data at scale
  • Real estate analysts sourcing building permits, violations, and property records from city portals
  • Public health researchers querying CDC, HHS, and state health department datasets
  • Journalists aggregating data across multiple city portals in one run
  • Data scientists building pipelines that combine datasets from many portals into one schema
  • Market researchers pulling business licenses and permits as a commercial-activity signal

Pricing

$1.50 per 1,000 results. No subscription.

ResultsCost
100$0.15
1,000$1.50
10,000$15.00

How to use it

  1. Add one or more Targets: { "domain": "...", "datasetId": "..." } or paste a full resource URL.
  2. Optionally add SoQL clauses: Select, Where, Order, Group.
  3. Set Limit per Page (default 5,000) and Max Rows per Target (default 50,000).
  4. Optionally paste a free App Token to raise rate limits.
  5. Click Start.

Output example

{
"recordType": "row",
"_source": { "domain": "data.cityofnewyork.us", "datasetId": "h9gi-nx95" },
"crash_date": "2024-03-15T08:30:00.000",
"borough": "BROOKLYN",
"zip_code": "11216",
"latitude": "40.6806",
"longitude": "-73.9493",
"on_street_name": "BEDFORD AVE",
"number_of_persons_injured": "1",
"number_of_persons_killed": "0",
"contributing_factor_vehicle_1": "Driver Inattention/Distraction",
"vehicle_type_code1": "PASSENGER VEHICLE",
"scrapedAt": "2026-09-24T12:00:00.000Z"
}

Technical details

  • SODA (Socrata Open Data API) — https://{domain}/resource/{dataset_id}.json. Public, unauthenticated.
  • No API key required. Anonymous access is allowed at throttled rates. A free app token raises limits to 1,000 requests/hour.
  • Pagination via $limit and $offset. SODA 2.0 endpoints cap at 50,000 rows per request; SODA 2.1 endpoints have no cap. Default actor page size is 5,000.
  • SoQL query support — $select, $where, $order, $group.
  • No browser, no proxy — pure JSON REST API.
  • Rate-limit handling — 429 responses trigger exponential backoff (5s, 10s, 15s, …) up to 5 retries per page.

Known limits

  • Anonymous rate limits are shared across all users of a portal. For large or scheduled runs, register a free app token — limits become 1,000 requests/hour per app.
  • Some datasets are private or restricted. Public datasets work; authenticated-only datasets return HTTP 403.
  • $group requires aggregate $select expressions. $select=borough, count(*) with $group=borough — not a plain column list.
  • Row shape varies by dataset. Every dataset has its own schema; downstream code must handle that.
  • Portal domains must be exact. data.cityofnewyork.us, not nyc.gov or opendata.cityofnewyork.us.

FAQ

Do I need an API key? No. Anonymous access works. A free app token raises the rate limit from shared-pool to 1,000 requests/hour per app.

Do I need a proxy? No. Datacenter IPs work.

How do I find a dataset ID? On any Socrata portal, open a dataset and click API — the ID is the xxxx-xxxx in the endpoint URL.

What's the maximum rows I can pull? Up to maxRowsPerTarget (default 50,000, max 1,000,000). For unlimited depth, raise the cap and pagination will continue until the dataset is exhausted.

What portals are supported? Any portal whose API endpoint is {domain}/resource/{id}.json. That covers NYC, Chicago, LA, SF, Seattle, Austin, Boston, Nashville, Philadelphia, DC, CDC, HHS, CMS, HUD, and hundreds more.

How do I export data? After a run, go to Storage → Export as JSON, CSV, Excel.

Support

Open an issue on the Actor's page for bugs or feature requests.