How to Use Socrata dataset records in Notion
Fetch records or calculated summaries from a public Socrata dataset, such as building permits or 311 requests. Use it when you need matching rows, category counts, or date-based comparisons.
Prompts to try with Socrata dataset records in Notion
Copy an example into Notion, or ask in your own words.
On the first day of each month, use Socrata dataset records for Chicago's Building Permits dataset ydr8-5enu to summarize the previous month's permits by permit type.
Every Monday, use Socrata dataset records for NYC's 311 dataset erm2-nwe9 to compare request counts by responding agency for the last two complete weeks.
Every Monday at 9am: use Socrata dataset records to look this up and give me the result as a table.
Pull the latest numbers from Socrata dataset records and tell me what changed since last week.
Check Socrata dataset records and summarize what you find in three bullet points.
How to set up Socrata dataset records in Notion
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Notion this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Allow custom MCP servers
A workspace owner opens Settings › Connections, then the Manage tab, and turns on Enable custom MCP servers. Where members may install only approved connections, also add Spiral under Approved connections › Add approved connection › Custom MCP server with the URL below.
- Add Spiral to a custom agent
Open the custom agent (or create one), then Settings › Tools & Access › Add connection › Custom MCP server. Paste this URL, name it Spiral, keep OAuth and click Connect.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Notion never sees it, and you can remove it under Settings › Connected apps in the console.
- Run Socrata dataset records in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Socrata dataset records, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Socrata dataset records
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "socrata-com/open-data/query_dataset", "input": { "portal": "<portal>", "dataset_id": "<dataset_id>" } }'
Then paste one of the prompts above: Notion finds Socrata dataset records on Spiral, shows the price and runs it.
Socrata dataset records providers and prices
Spiral runs Socrata dataset records through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Notion for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 1000 | 100 | Rows per page (1-1000). A page is also cut at about 1 MB of row data; continue from next_offset. |
| Offset | 0 to 100000000 | 0 | Row offset (next_offset of the previous page). |
Every API field of Socrata open-data portals · Query dataset is on its tool page: open its card above.
What can you do with Socrata dataset records in Notion?
Keep a recurring civic report tied to the tables its publisher currently exposes. A scheduled agent can check Socrata catalog entries and schemas, then refresh permit or service-demand summaries when published data changes.
Compare building-permit activity
Find Chicago's Building Permits table, inspect its permit categories and date columns, then compare monthly counts. Keep the dataset's exclusion of voided and revoked permits in the analysis.
Plan a 311 service-demand report
Locate NYC's 311 source table, check the available agency and problem columns, and summarize requests by category. Use the results to identify which published request types account for the largest volumes.
Check whether a historical comparison is possible
Find candidate government tables, inspect their descriptions and date columns, then measure their actual date ranges. Establish the available history before proposing a multiyear trend report.
Choose a source for a civic dashboard
Find tables for the dashboard's topic, compare their publisher information and schemas, and retrieve sample summaries. Choose a source whose published columns support the intended charts.
Maintain a municipal data pipeline
Locate the published table, inspect its current columns, and retrieve the records needed by a report. Compare schemas between runs so a renamed or changed column gets reviewed before the next report.
Prepare a sourced local-government briefing
Find relevant permit or service-request tables, document what each row represents, and calculate the requested totals. Include the publisher's coverage limits alongside the figures.
More on Socrata dataset records and Notion
Overview
Socrata dataset records in other agents
Questions about Socrata dataset records in Notion
Can Notion use Socrata dataset records?
Yes. Add Spiral to Notion as an MCP server, and Notion can find and run Socrata dataset records like any built-in tool.
How much does Socrata dataset records cost in Notion?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Notion plan is separate.
Do I need an Alexandria account to use Socrata dataset records in Notion?
No. Spiral runs Socrata dataset records on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Socrata dataset records in Notion?
About two minutes: allow custom MCP servers, then add Spiral to a custom agent, then sign in to Spiral and approve.
Does Notion wait while Socrata dataset records runs?
Socrata dataset records runs in the background. Notion starts the run, checks on it and gives you the json when it's ready.
Does Socrata cover every government open-data portal?
The documented search boundary is public Socrata-hosted government data. It can search across publishers or within one portal, so it should not be treated as a directory of every government's open data.
How can I distinguish a data update from a description change?
Socrata reports data-update and metadata-update times separately on dataset landing pages. Use that distinction when assessing freshness: a description edit and a change to the underlying records are separate events.
Does a full dataset replacement mean every record changed?
Socrata warns that a full replacement updates every record's system timestamp. A timestamp-based comparison can therefore report the entire table as changed after a replacement.
How much Chicago building-permit history is available?
Chicago's Building Permits dataset covers permits issued from 2006 to the present. It excludes permits voided or revoked after issuance, so it is not a complete archive of every permit ever issued.
How fresh are NYC's published 311 requests?
NYC says its 311 Service Requests from 2020 to Present dataset updates daily. It also warns that values in many fields change over time, so previously retrieved requests can have different values later.
Start using Socrata dataset records in Notion
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Notion:
set up https://spiral.ai/SKILL.md


