Spiral gives your agent every tool with one account. Browse the tools →

opencode · Public Records

How to Use Data.gov.au publisher directory in opencode

Returns publishing organizations listed in the catalog. Use it to identify an agency's catalog name before researching its published datasets.

Prompts to try with Data.gov.au publisher directory in opencode

Copy an example into opencode, or ask in your own words.

Use Data.gov.au publisher directory to find the Australian Bureau of Statistics catalog entries, then add the returned organization names to this project's source registry.

Data.gov.au publisher directoryopencode
Try asking
  • Use Data.gov.au publisher directory 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 publisher directory and tell me what changed since last week.

  • Check Data.gov.au publisher directory and summarize what you find in three bullet points.

  • Pull the newest data from Data.gov.au publisher directory and give me the result as a table.

How to set up Data.gov.au publisher directory in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.

    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 publisher directory

    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": "data-gov-au/open-data/list_organizations",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: opencode finds Data.gov.au publisher directory on Spiral, shows the price and runs it.

Data.gov.au publisher directory providers and prices

Spiral runs Data.gov.au publisher directory through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
data.gov.au open data catalogue · List organizations
data-gov-au/open-data/list_organizations

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10050

limit

Every API field of data.gov.au open data catalogue · List organizations is on its tool page: open its card above.

What can you do with Data.gov.au publisher directory in opencode?

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.

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.

Questions about Data.gov.au publisher directory in opencode

Can opencode use Data.gov.au publisher directory?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Data.gov.au publisher directory like any built-in tool.

How much does Data.gov.au publisher directory cost in opencode?

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

Do I need an Alexandria account to use Data.gov.au publisher directory in opencode?

No. Spiral runs Data.gov.au publisher directory 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 publisher directory in opencode?

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

Does opencode wait while Data.gov.au publisher directory runs?

Data.gov.au publisher directory runs in the background. opencode 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.

Get started

Start using Data.gov.au publisher directory in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options