Query San Francisco's DPW-maintained Street Tree List via the DataSF Socrata SODA API

domain: data.sfgov.org · 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.sfgov.org, checked against official docs, with linked verified routes.

Steps

  1. Call GET https://data.sfgov.org/resource/tkzw-k3nq.json to query DataSF's 'Street Tree List' dataset (Socrata dataset id tkzw-k3nq).
  2. Filter with $where on fields like qspecies (species), qsiteinfo, or planting date, and paginate with $limit/$offset across the full dataset.
  3. Register a Socrata application token and send it as X-App-Token to avoid the platform's default anonymous rate limits.
  4. Cross-reference against San Francisco Planning's separate EveryTreeSF citywide census if full city coverage (not just DPW-maintained trees) is required.
  5. Use the dataset's OData endpoint variant instead of the JSON REST endpoint if integrating directly with Excel or Tableau.

Known gotchas

Related routes

Query San Francisco's 311 Cases dataset via the Socrata SODA API on DataSF
data.sfgov.org · 5 steps · unrated
Query NYC's 2015 Street Tree Census tree-level dataset via the Socrata SODA API
data.cityofnewyork.us · 5 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