[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Wikidata property details](https://spiral.ai/integrations/opencode/wikidata-property-details)

# How to Use Wikidata property details in opencode

Returns a property's labels, descriptions, datatype, and statements. Use it to understand a P identifier and check what kind of value the property accepts.

|  |  |
| --- | --- |
| Model | Wikidata property details |
| Available through | Alexandria |
| Category | Web |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Wikidata property details in opencode

- Use Wikidata property details for P625 and document its returned datatype and description beside the project's coordinate parser.
- Use Wikidata property details for P1082 and compare its returned definition with the population column in this project's city schema.
- Use Wikidata property details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Wikidata property details and tell me what changed since last week.
- Check Wikidata property details and summarize what you find in three bullet points.

## How to set up Wikidata property details 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

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

### Call the Spiral API

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

2. **Run Wikidata property details**: 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": "wikipedia/wikidata/property",
    "input": {
      "identifier": "<identifier>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Wikidata property details on Spiral, shows the price and runs it.

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

## Wikidata property details tools and prices

- [Wikipedia · Wikidata property](https://spiral.ai/tools/alexandria/wikipedia/wikidata/property) (Alexandria): $0.001746 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| fields |  | — | Return only these fields, in dot notation, for example `entity.labels.en` or `entity.statements.P569`. Omit for the full record. |

## What can you do with Wikidata property details in opencode?

Build readable Wikidata records into a place directory or catalog viewer. A coding agent can use item statements, translated names, and property definitions to replace unexplained identifiers in the project's interface.

### Build a multilingual place directory

Retrieve records for places such as Paris and Berlin, add their available translated names, and inspect the definitions of the geographic properties used in the directory.

### Explain a knowledge graph record

Turn an item's statements into a readable explanation. Resolve linked identifiers to names and use property definitions to explain what each relationship means.

### Map catalog columns to Wikidata

Compare an existing museum or landmark catalog with Wikidata item values. Read candidate property definitions and translated labels before choosing the columns to map.

### Review changes to public records

Compare saved records for public places or organizations with new retrievals. Review changes to statements, translated names, and property definitions in separate sections of the report.

### Audit localization coverage

Check whether selected landmarks and their properties have names in the languages your product supports. Include item descriptions in the review and distinguish missing translations from available aliases.

### Explain dated city statistics

Inspect city statements with their date qualifiers and references. Add readable names for linked entities and explain the definitions of the statistical properties before comparing values.

## Overview

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

## Wikidata property details in other agents

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

## More opencode guides

- [Wikidata labels](https://spiral.ai/integrations/opencode/wikidata-labels)
- [Wikimedia project directory](https://spiral.ai/integrations/opencode/wikimedia-project-directory)
- [Wikidata item details](https://spiral.ai/integrations/opencode/wikidata-item-details)
- [Wikipedia article text](https://spiral.ai/integrations/opencode/wikipedia-article-text)
- [Google search results](https://spiral.ai/integrations/opencode/google-search-results)
- [Wikipedia language codes](https://spiral.ai/integrations/opencode/wikipedia-language-codes)

## Questions about Wikidata property details in opencode

**Can opencode use Wikidata property details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Wikidata property details like any built-in tool.

**How much does Wikidata property details cost in opencode?**

$0.001746 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 Wikidata property details in opencode?**

No. Spiral runs Wikidata property details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Wikidata property details in opencode?**

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

**Does opencode wait while Wikidata property details runs?**

Wikidata property details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Wikidata cover subjects without Wikipedia articles?**

Yes. A clearly identifiable entity can qualify through serious, publicly available references, even without a Wikipedia article.

**Are names available in every language?**

No. Wikidata supports multilingual labels, but property values are not necessarily translated into every language. A translated name and an alternative name are also different things: alternative names belong in aliases.

**Who keeps Wikidata current?**

Wikidata editors maintain the records, and automated bots also enter data. Changes therefore come from contributor activity rather than a single publisher's release cycle.

**Does Wikidata verify everything before publication?**

No. Wikidata has no executive editor or editorial board that vets content before publication. Its statement structure supports references and qualifiers, but those features do not constitute editorial approval.

**Are Wikidata names unique, and how long can they be?**

Different items can share the same label, and labels are limited to 250 characters. Use the entity identifier to distinguish records with matching names.

