[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Wikipedia structured article](https://spiral.ai/integrations/grok/wikipedia-structured-article)

# How to Use Wikipedia structured article in Grok

Fetch a Wikipedia article with infoboxes, sections, tables, and references already separated into JSON. Use it to extract facts or organize passages without writing an HTML or wikitext parser.

|  |  |
| --- | --- |
| Model | Wikipedia structured article |
| Available through | Alexandria |
| Category | Web |
| Price | Up to $0.001746 per run at the default inputs. $0.001746 per unit of `limit`. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Wikipedia structured article in Grok

- Use Wikipedia structured article to read English Wikipedia's Chicago article and list its returned section headings, followed by a short summary of its history.
- Use Wikipedia structured article to read English Wikipedia's Solar System article and explain one returned table in plain English, preserving its units and labels.
- Use Wikipedia structured article to read English Wikipedia's Plate tectonics article and list the references returned for further reading.
- Scrape https://example.com/pricing with Wikipedia structured article and turn it into a comparison table.
- Crawl the docs at https://docs.example.com with Wikipedia structured article and summarize each section.

## How to set up Wikipedia structured article in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 Wikipedia structured article**: 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/articles/structured-contents",
    "input": {
      "name": "<name>"
    }
  }'
```

Then paste one of the prompts above: Grok finds Wikipedia structured article on Spiral, shows the price and runs it.

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

## Wikipedia structured article tools and prices

- [Wikipedia · Structured article](https://spiral.ai/tools/alexandria/wikipedia/articles/structured-contents) (Alexandria): Up to $0.001746 per run at the default inputs. $0.001746 per unit of `limit`.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 10 | 1 | Most matching articles to return, 1 to 10. More than one only helps when no project is pinned and the title exists on several wikis. |
| fields |  | — | Return only these fields, in dot notation, for example `name`, `abstract`, `url`, `version.identifier`. Omit for the full record. Wikimedia returns exactly the fields named. |
| project |  | — | Wikimedia project identifier: language code plus project code, for example `enwiki` (English Wikipedia), `frwiki`, `dewiki`, `enwiktionary` or `eswikivoyage`. Defaults to `enwiki` when neither project nor language is given. `reference/projects` lists every identifier. |
| language |  | — | Wikimedia language code, for example `en`, `fr` or `zh-yue`. Returns the article from any project in that language; combine with project to pin one wiki. |

## What can you do with Wikipedia structured article in Grok?

Produce a focused brief from the Wikipedia articles you name. A chat app can compare their explanations, summarize selected sections, or organize returned tables into a readable comparison.

### Prepare a research brief

Read the Wikipedia articles for Lithium iron phosphate battery and Sodium-ion battery, then compare the advantages and limitations described in their text. Use parsed sections when extracting passages and full article text when more context is needed.

### Build city background notes

Turn the articles for Chicago and Toronto into separate notes on history, geography, and transportation. Keep each statement tied to the article it came from.

### Research public organizations

Use the NASA and European Space Agency articles to draft an organizational background comparison from the retrieved text. Distinguish what each article states from your own interpretation.

### Create teaching materials

Read the Plate tectonics article and turn its explanations into a lesson outline, vocabulary list, and comprehension questions. Use the article's sections to keep the material organized.

### Build a focused reference collection

Retrieve a chosen list of Wikipedia titles for a reference assistant. Store article passages from the text response or parsed sections from the structured response, with their source articles.

### Report changes to selected articles

Retrieve the International Space Station article each day and compare it with your previously saved response. Summarize changes in the article's wording without presenting them as independently confirmed events.

## Overview

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

## Wikipedia structured article in other agents

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

## More Grok guides

- [Wikipedia language codes](https://spiral.ai/integrations/grok/wikipedia-language-codes)
- [Alexandria](https://spiral.ai/integrations/grok/alexandria)
- [Wikipedia article text](https://spiral.ai/integrations/grok/wikipedia-article-text)
- [Exa](https://spiral.ai/integrations/grok/exa)
- [Wikimedia project directory](https://spiral.ai/integrations/grok/wikimedia-project-directory)
- [Firecrawl](https://spiral.ai/integrations/grok/firecrawl)

## Questions about Wikipedia structured article in Grok

**Can Grok use Wikipedia structured article?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Wikipedia structured article like any built-in tool.

**How much does Wikipedia structured article cost in Grok?**

Up to $0.001746 per run at the default inputs. $0.001746 per unit of `limit`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need an Alexandria account to use Wikipedia structured article in Grok?**

No. Spiral runs Wikipedia structured article on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Wikipedia structured article in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Wikipedia structured article runs?**

Wikipedia structured article runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

**Can I search Wikipedia by topic with these lookups?**

Both lookups require an exact article title. A request for a broad topic does not produce a ranked list of related articles.

**How fresh is the article data?**

Wikimedia documents these lookups as returning the current article revision. The revision identifier changes with every edit, so repeated retrievals can establish whether the article has changed.

**Can I retrieve an article as it appeared last year?**

These lookups return the current revision rather than a selectable historical revision. They do not provide a full revision-history download.

**Why can an article title match more than once?**

Article titles are not unique across Wikimedia projects. The same name can match pages on different wikis, so the intended source edition matters.

**Does structured output include everything in the text response?**

Structured Contents separates article content into parsed objects but omits the raw article body, categories, templates, and redirects. Use Wikipedia article text when those are necessary.

