Query Pennsylvania DEP's published radon test-result dataset programmatically via the Socrata SODA API
domain: data.pa.gov (government) · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Locate the 'Radon Test Results' dataset (annual, county-level, 1986-present) on the PA Open Data Portal, published by PA DEP, and note its companion 'Radon Mitigation System' dataset listed separately.
Identify the dataset's Socrata resource id from its data.pa.gov dataset page (the id used in the /resource/{id}.json API path, distinct from the portal's display URL segments).
Query via the SODA API: GET https://data.pa.gov/resource/{dataset-id}.json?$limit=1000&$where=county='Allegheny' to filter by county.
Use SoQL $select/$where/$group parameters to aggregate (e.g., average pCi/L by county and year) instead of downloading the full CSV.
Register a free Socrata app token (X-App-Token header) if you need higher rate limits than the anonymous default.
Known gotchas
PA DEP's own dataset coverage has historically lagged, so treat this as a historical archive rather than a real-time feed — check the dataset's stated 'as of' date before relying on recency.
Confirm the current resource id directly from the live data.pa.gov listing before hardcoding it; the portal's display URL is not always the same string as the API resource id.
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?