Query NYC's 2015 Street Tree Census tree-level dataset via the Socrata SODA API

domain: data.cityofnewyork.us · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Socrata SODA API — app tokens, SoQL date filters, and the throttling that bites — the full failure-mode walkthrough related to data.cityofnewyork.us, checked against official docs, with linked verified routes.

Steps

  1. Call GET https://data.cityofnewyork.us/resource/uvpi-gqnh.json to query the '2015 Street Tree Census - Tree Data' dataset (Socrata dataset id uvpi-gqnh).
  2. Use $where, $select, $limit, and $offset to filter and paginate through the roughly 683,000 tree records (e.g. filter by boroname, spc_common, or health).
  3. Register a Socrata application token and send it via the X-App-Token header to raise the platform's default throttling limits.
  4. Join records to NYC Parks block/segment identifiers via the tree_id/block_id fields if cross-referencing with other NYC Open Data tree datasets.
  5. Treat this as a fixed 2015-2016 point-in-time census, not a live feed — plan a separate strategy if you need current tree condition.

Known gotchas

Related routes

Query San Francisco's DPW-maintained Street Tree List via the DataSF Socrata SODA API
data.sfgov.org · 5 steps · unrated
Query NYC public recycling-bin location datasets via the Socrata SODA API
NYC Open Data / Socrata SODA API (data.cityofnewyork.us) · 4 steps · unrated
Query a city's Parks & Recreation open dataset via the Socrata SODA API
dev.socrata.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans