[Integrations](https://spiral.ai/integrations) › [Hermes](https://spiral.ai/integrations/hermes) › [Socrata dataset search](https://spiral.ai/integrations/hermes/socrata-dataset-search)

# How to Use Socrata dataset search in Hermes

Find public Socrata datasets by topic across government publishers or within one portal. Use it to locate the right source table before inspecting its columns or retrieving records.

|  |  |
| --- | --- |
| Model | Socrata dataset search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Socrata dataset search in Hermes

- Every Monday, use Socrata dataset search to find building-permit datasets on data.cityofchicago.org and report newly appearing dataset entries compared with the previous run.
- Every Monday at 9am: use Socrata dataset search to look this up and give me the result as a table.
- Pull the latest numbers from Socrata dataset search and tell me what changed since last week.
- Check Socrata dataset search and summarize what you find in three bullet points.
- Pull the newest data from Socrata dataset search and give me the result as a table.

## How to set up Socrata dataset search in Hermes

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send Hermes this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **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

1. **Add the server and sign in**: Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

```bash
hermes mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --auth oauth \
  --connect-timeout 300
```

2. **Check it**: In a chat that was already open, run `/reload-mcp`.

```bash
hermes mcp list
hermes mcp test spiral
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Socrata dataset search**: One request; the result comes back by polling or a webhook.

```bash
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/search_datasets",
    "input": {
      "tags": [
        "<tags>"
      ]
    }
  }'
```

Then paste one of the prompts above: Hermes finds Socrata dataset search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/hermes

## Socrata dataset search tools and prices

- [Socrata open-data portals · Search datasets](https://spiral.ai/tools/alexandria/socrata-com/open-data/search_datasets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| tags |  | — | Portal tags; with `domain` these are the portal's own tags (e.g. `permits`). |
| limit | 1 to 100 | 10 | limit |
| query |  | — | Free-text search over dataset names, descriptions, columns and tags, e.g. `building permits`, `restaurant inspections`, `311`. |
| domain |  | — | Limit to one portal: hostname or URL (data.cityofchicago.org). Verified as a Socrata domain (US region first, then EU). Omit to search every public Socrata portal in `region`. |
| offset | 0 to 9999 | 0 | Result offset (next_offset of the previous page). The Discovery API stops at 10000 results. |
| region | us, eu | us | Discovery API region for an all-portal search (us: US/Canada/most portals; eu: European portals such as opendata.rdw.nl). With `domain` it is only the first region tried. |

## What can you do with Socrata dataset search in Hermes?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Hermes guides](https://spiral.ai/integrations/hermes)

## Socrata dataset search in other agents

- [Amp](https://spiral.ai/integrations/amp/socrata-dataset-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/socrata-dataset-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/socrata-dataset-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/socrata-dataset-search)
- [Cline](https://spiral.ai/integrations/cline/socrata-dataset-search)
- [Codex](https://spiral.ai/integrations/codex/socrata-dataset-search)
- [Cursor](https://spiral.ai/integrations/cursor/socrata-dataset-search)
- [Devin](https://spiral.ai/integrations/devin/socrata-dataset-search)
- [dots](https://spiral.ai/integrations/dots/socrata-dataset-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/socrata-dataset-search)
- [Gemini](https://spiral.ai/integrations/gemini/socrata-dataset-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/socrata-dataset-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/socrata-dataset-search)
- [goose](https://spiral.ai/integrations/goose/socrata-dataset-search)
- [Grok](https://spiral.ai/integrations/grok/socrata-dataset-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/socrata-dataset-search)
- [Instinct](https://spiral.ai/integrations/instinct/socrata-dataset-search)
- [Manus](https://spiral.ai/integrations/manus/socrata-dataset-search)
- [Muse](https://spiral.ai/integrations/muse/socrata-dataset-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/socrata-dataset-search)
- [n8n](https://spiral.ai/integrations/n8n/socrata-dataset-search)
- [Notion](https://spiral.ai/integrations/notion/socrata-dataset-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/socrata-dataset-search)
- [opencode](https://spiral.ai/integrations/opencode/socrata-dataset-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/socrata-dataset-search)
- [Raycast](https://spiral.ai/integrations/raycast/socrata-dataset-search)
- [VS Code](https://spiral.ai/integrations/vscode/socrata-dataset-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/socrata-dataset-search)
- [Zapier](https://spiral.ai/integrations/zapier/socrata-dataset-search)

## More Hermes guides

- [Socrata dataset records](https://spiral.ai/integrations/hermes/socrata-dataset-records)
- [Supreme Court of Canada citation lookup](https://spiral.ai/integrations/hermes/supreme-court-of-canada-citation-lookup)
- [Socrata dataset details](https://spiral.ai/integrations/hermes/socrata-dataset-details)
- [Supreme Court of Canada judgment list](https://spiral.ai/integrations/hermes/supreme-court-of-canada-judgment-list)
- [SAM.gov registration changes](https://spiral.ai/integrations/hermes/sam-gov-registration-changes)
- [Supreme Court of Canada judgment search](https://spiral.ai/integrations/hermes/supreme-court-of-canada-judgment-search)

## Questions about Socrata dataset search in Hermes

**Can Hermes use Socrata dataset search?**

Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run Socrata dataset search like any built-in tool.

**How much does Socrata dataset search cost in Hermes?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Hermes plan is separate.

**Do I need an Alexandria account to use Socrata dataset search in Hermes?**

No. Spiral runs Socrata dataset search 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 search in Hermes?**

About two minutes: add the server and sign in, then check it.

**Does Hermes wait while Socrata dataset search runs?**

Socrata dataset search runs in the background. Hermes 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.

