[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Data.gov.au dataset search](https://spiral.ai/integrations/vscode/data-gov-au-dataset-search)

# How to Use Data.gov.au dataset search in VS Code

Returns matching dataset records from Australia's open government data catalog. Use it to discover potential sources before inspecting their resources or analyzing table rows.

|  |  |
| --- | --- |
| Model | Data.gov.au 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 Data.gov.au dataset search in VS Code

- Use Data.gov.au dataset search to find population datasets relevant to Melbourne, then create a comparison of the returned dataset records in this project's research notes.
- Use Data.gov.au dataset search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Data.gov.au dataset search and tell me what changed since last week.
- Check Data.gov.au dataset search and summarize what you find in three bullet points.
- Pull the newest data from Data.gov.au dataset search and give me the result as a table.

## How to set up Data.gov.au dataset search in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 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 Data.gov.au 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": "data-gov-au/open-data/search_datasets",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Data.gov.au dataset search on Spiral, shows the price and runs it.

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

## Data.gov.au dataset search tools and prices

- [data.gov.au open data catalogue · Search datasets](https://spiral.ai/tools/alexandria/data-gov-au/open-data/search_datasets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Full-text query (Solr syntax allowed: quotes, AND/OR, field:value). Omit to list everything. |
| fq |  | — | Raw Solr filter query ANDed with the filters above, e.g. `res_datastore_active:true` or `metadata_modified:[2025-01-01T00:00:00Z TO *]`. |
| rows | 1 to 100 | 20 | Datasets per page. |
| tags |  | — | Tags that must all be present. Case-sensitive (`Census` and `census` are different tags). |
| group |  | — | Topic group slug, e.g. `business`. Pattern: ^[A-Za-z0-9_.-]+$. |
| cursor |  | — | Result offset to resume from: the `next_cursor` of the previous page. Pattern: ^[0-9]{1,9}$. |

## What can you do with Data.gov.au dataset search in VS Code?

Build a source-linked Australian public data report or map in your project. A coding agent can use Data.gov.au to find publishers, inspect dataset resources, and retrieve available table rows for the implementation.

### Build a regional evidence pack

Identify relevant government publishers, find datasets about Melbourne, inspect their resources, and extract available DataStore rows for a regional comparison. Keep each result tied to its source dataset.

### Prepare council asset data for a map

Find a council's catalog entry and published asset datasets, inspect the resources, and retrieve relevant rows where DataStore access is available. Use the resulting locations to prepare a map of public infrastructure.

### Compare published reporting years

Identify the publishing agency and locate a dataset with resources for multiple years. Inspect each resource and extract comparable DataStore rows where available before calculating changes.

### Audit an agency's published data

Resolve the agency's catalog name, inventory its datasets and resources, and sample accessible DataStore tables. Produce a report showing which sources support row analysis and which require separate file retrieval.

### Prepare source attribution for a report

Find the datasets used in an Australian public policy report and inspect their dataset and resource records. Assemble the publishing organization, jurisdiction, title, sourcing date, and URL for attribution.

### Watch for resource changes

Repeat a catalog search and compare dataset and resource metadata with an earlier snapshot. Flag changed resources for review before refreshing a downstream analysis.

### Create a publisher research directory

Find catalog organizations for Australian agencies and councils, then search their published datasets. Build a directory that links research topics to the organizations publishing relevant evidence.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Data.gov.au dataset search in other agents

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

## More VS Code guides

- [Data.gov.au dataset details](https://spiral.ai/integrations/vscode/data-gov-au-dataset-details)
- [Data.gov.au publisher directory](https://spiral.ai/integrations/vscode/data-gov-au-publisher-directory)
- [Cámara de Diputados legislation updates](https://spiral.ai/integrations/vscode/c-mara-de-diputados-legislation-updates)
- [Data.gov.au resource details](https://spiral.ai/integrations/vscode/data-gov-au-resource-details)
- [Cámara de Diputados law reform history](https://spiral.ai/integrations/vscode/c-mara-de-diputados-law-reform-history)
- [Data.gov.au table records](https://spiral.ai/integrations/vscode/data-gov-au-table-records)

## Questions about Data.gov.au dataset search in VS Code

**Can VS Code use Data.gov.au dataset search?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Data.gov.au dataset search like any built-in tool.

**How much does Data.gov.au dataset search cost in VS Code?**

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

**Do I need an Alexandria account to use Data.gov.au dataset search in VS Code?**

No. Spiral runs Data.gov.au 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 Data.gov.au dataset search in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while Data.gov.au dataset search runs?**

Data.gov.au dataset search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Does Data.gov.au cover only federal government data?**

It includes data published by Australian federal, state, and local government agencies. A search can therefore surface national statistics alongside council datasets.

**How fresh and accurate is the data?**

Data.gov.au explicitly does not guarantee dataset quality or timeliness. Its catalog should not be treated as a promise that every published dataset reflects current conditions.

**Does a dataset search return the underlying table rows?**

Search results represent datasets. Row access requires a resource loaded into DataStore; a resource can instead point to a file hosted elsewhere.

**How much historical data can I retrieve?**

Historical coverage depends on the resources supplied for the dataset. CKAN supports separate resources for different years, so inspect those resources before planning a year-to-year comparison.

**What attribution does Data.gov.au request?**

Its requested attribution includes the publishing organization, jurisdiction, dataset title, date sourced, and dataset URL. Preserve those details when preparing a report or derived dataset.

