# Fandom API

> Fandom returns fan wiki article summaries and facts as a workflow and API.

Fandom, also known as Wikia, returns a fan wiki article’s summary, infobox facts, headings, and links through Get wiki article. Get wiki article needs a topic and franchise; a Fandom wiki or article link can replace the franchise name.

- Page: https://fous.com/workflows/fandom
- Handle: `@fandom`
- Category: [Entertainment](https://fous.com/workflows/category/entertainment)
- Source website: https://fandom.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Fandom.

## Methods

### Get wiki article

Operation `get_wiki_article`, version 1. 1 credit per call.

Find a topic on the main English Fandom wiki for a franchise and return its article summary, infobox facts, headings, and links. A wiki or article link can be used instead of a franchise name.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `topic` | string | yes | `"Creeper"` | Character, item, episode, place, or topic to find, such as Darth Vader. |
| `franchise` | string | yes | `"Minecraft"` | Franchise, game, or show, such as Star Wars; a Fandom wiki or article link also works. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "franchise",
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "Character, item, episode, place, or topic to find, such as Darth Vader.",
      "examples": [
        "Creeper",
        "Monkey D. Luffy",
        "Darth Vader"
      ]
    },
    "franchise": {
      "type": "string",
      "description": "Franchise, game, or show, such as Star Wars; a Fandom wiki or article link also works.",
      "examples": [
        "Minecraft",
        "https://onepiece.fandom.com/wiki/One_Piece",
        "Star Wars"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "topic": "Creeper",
      "franchise": "Minecraft"
    },
    {
      "topic": "Monkey D. Luffy",
      "franchise": "https://onepiece.fandom.com/wiki/One_Piece"
    },
    {
      "topic": "Darth Vader",
      "franchise": "Star Wars"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `summary` | string or null |  | First substantive paragraphs of the article as plain text. |
| `wiki_link` | string | `"https://minecraft.fandom.com"` | Link to the wiki homepage. |
| `wiki_name` | string | `"Minecraft Wiki"` | Name of the fan wiki. |
| `article_link` | string | `"https://minecraft.fandom.com/wiki/Creeper"` | Link to the article on Fandom. |
| `article_title` | string | `"Creeper"` | Title of the article, including the canonical title for a redirect. |
| `infobox_facts` | array |  | Facts shown in the article infobox. Empty if there is no infobox. |
| `infobox_facts[].label` | string | `"Health"` |  |
| `infobox_facts[].value` | string | `"20 × 10"` |  |
| `main_image_link` | string or null | `"https://static.wikia.nocookie.net/minecraft_gamepedia/images/5/5b/Creeper_JE2_BE1.png/revision/latest/scale-to-width-do` | Main article image link, when available. |
| `section_headings` | array |  | Section headings in article order. |

**Example input**

```json
{
  "topic": "Creeper",
  "franchise": "Minecraft"
}
```

**Example output**

```json
{
  "summary": "A creeper is a common hostile mob that silently approaches players and then explodes , which can destroy blocks and kill unarmored players on any difficulty (except for peaceful).\n\nWhen struck by ligh…",
  "wiki_link": "https://minecraft.fandom.com",
  "wiki_name": "Minecraft Wiki",
  "article_link": "https://minecraft.fandom.com/wiki/Creeper",
  "article_title": "Creeper",
  "infobox_facts": [
    {
      "label": "Health",
      "value": "20 × 10"
    },
    {
      "label": "Behavior",
      "value": "Hostile"
    },
    {
      "label": "Spawn",
      "value": "Light level of 0"
    }
  ],
  "main_image_link": "https://static.wikia.nocookie.net/minecraft_gamepedia/images/5/5b/Creeper_JE2_BE1.png/revision/latest/scale-to-width-down/268?cb=20191229172043",
  "section_headings": [
    "Spawning",
    "Drops",
    "Behavior"
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@fandom",
  "visibility": "public",
  "operation": "get_wiki_article",
  "version": 1,
  "input": {
    "topic": "Creeper",
    "franchise": "Minecraft"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@fandom\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_wiki_article\",\n  \"version\": 1,\n  \"input\": {\n    \"topic\": \"Creeper\",\n    \"franchise\": \"Minecraft\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@fandom",
  "visibility": "public",
  "operation": "get_wiki_article",
  "version": 1,
  "input": {
    "topic": "Creeper",
    "franchise": "Minecraft"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@fandom","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find character and episode summaries for franchise research
- Collect infobox facts about fictional characters and places
- Review article headings to map topics within a fan wiki
- Gather article links and images for editorial research

## FAQ

### Is Fous affiliated with Fandom?

No. Fous is not affiliated with Fandom. This workflow reads the public fandom.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Fandom account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from fandom.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What facts does an article show about a character?

Get wiki article returns the article summary and infobox facts for a topic in a specified franchise.

### What sections does a fan wiki article contain?

Get wiki article returns the section headings in article order for the topic and franchise.

### Can I look up an article using a wiki link?

Yes. Get wiki article accepts a Fandom wiki or article link instead of a franchise name.

## Related

- [Wikipedia API](https://fous.com/workflows/wikipedia.md): Wikipedia returns article summaries, images, facts, relevant search matches, readable text and daily historical events, plus human-view counts from July 2015 onward.
- [Britannica API](https://fous.com/workflows/britannica.md): Britannica returns public encyclopedia articles with introductions, quick facts, headings, update dates and images, plus search results with titles, descriptions, links and images when shown.
- [ESPN API](https://fous.com/workflows/espn.md): ESPN provides daily scores and schedules, team results, player statistics, matchup summaries, and latest topic-specific headlines; coverage and published details vary, especially for college and soccer.
- [Medium API](https://fous.com/workflows/medium.md): Medium returns public writer, publication, and topic articles, including newest posts and weekly popular picks, plus readable article text; member-only stories remain limited to visible previews.
- [Fox News API](https://fous.com/workflows/fox-news.md): Fox News returns section-page headlines, keyword-matched articles among up to 100 available results, and readable article text, including the latest live-blog updates.
- [TMDB API](https://fous.com/workflows/tmdb.md): TMDB returns movie and TV details, cast, trailers, releases, viewing services, scheduled upcoming movies, and up to 20 homepage trending titles; future episode details depend on published schedules.
- [World Health Organization API](https://fous.com/workflows/world-health-organization.md): The World Health Organization provides public health information, latest outbreak reports, country health statistics with up to 10 years of history when available, and topic fact sheets.
- [Wikidata API](https://fous.com/workflows/wikidata.md): Wikidata is a free public knowledge base returning facts and item lists about people, places, organizations, and more; values may be historical and dates incomplete.
- [All Entertainment workflows](https://fous.com/workflows/category/entertainment)
