# Fandom

> Read any Fandom wiki: search it, pull a page's text, summary or infobox facts, browse its categories, links and images, follow edits and editors, and start a workflow when a page is created or edited.

App · 16 actions. Web page: https://docs.lodol.com/docs/integrations/fandom

## Actions

### Get a file's details

One uploaded image or file: its full-size and thumbnail addresses, size, type, and who uploaded it when. Type the file name with or without 'File:', or paste its link.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- File (`file`, text, required): The file's name, such as Hermione Granger.jpg, with or without the 'File:' prefix, or its link. List the images on a page gives the names a page uses.
- Thumbnail width (`thumbnail_width`, number): How wide, in pixels, the thumbnail address should be. Defaults to 400. From 1 to 2000. Default: `400`.

**Outputs**

- `file_name` (text): The file's name without the 'File:' prefix.
- `height` (number): Height in pixels.
- `mime_type` (text): The kind of file, such as image/png.
- `page_url` (text): The file's own page on the wiki.
- `size_bytes` (number): The file's size in bytes.
- `thumbnail_url` (text): A smaller copy of the picture, at the width asked for.
- `title` (text): The file's title, with its 'File:' prefix.
- `upload_note` (text): What the uploader said about it.
- `uploaded_at` (text): When this version of the file was uploaded, in UTC.
- `uploaded_by` (text): The username of who uploaded it.
- `url` (text): The full-size file.
- `width` (number): Width in pixels.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "file_name": "Hermione Granger.jpg",
  "height": 2048,
  "mime_type": "image/jpeg",
  "page_url": "https://harrypotter.fandom.com/wiki/File:Hermione_Granger.jpg",
  "size_bytes": 845750,
  "thumbnail_url": "https://static.wikia.nocookie.net/harrypotter/images/3/34/Hermione_Granger.jpg/revision/latest/scale-to-width-down/400",
  "title": "File:Hermione Granger.jpg",
  "upload_note": "Infobox image chosen by community vote",
  "uploaded_at": "2025-12-06T06:28:40Z",
  "uploaded_by": "Peregino",
  "url": "https://static.wikia.nocookie.net/harrypotter/images/3/34/Hermione_Granger.jpg/revision/latest",
  "width": 1535,
  "wiki": "harrypotter.fandom.com"
}
```

### Get a page

Read one wiki page as plain text, along with its list of sections, so a later step can summarise it, translate it or answer questions from it. The infobox, tables, galleries and reference notes are left out, leaving the prose a reader reads. Narrow to one section to read just the biography or just the plot.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Only this section (`section`, text): Only the text under this heading and the headings nested in it, matched without regard to case. The 'sections' list this action returns is where the headings come from. Leave empty for the whole page.

**Outputs**

- `pageid` (number): The page's id on this wiki.
- `revision_id` (number): The id of the version that was read.
- `section` (text): The section filter that was applied, if any.
- `sections` (list): The page's headings, in order.
- `text` (text): The readable text.
- `title` (text): The page's title after redirects.
- `url` (text): The page's address on the wiki.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.
- `word_count` (number): How many words the returned text has.

**Example output**

```json
{
  "pageid": 618,
  "revision_id": 2006132,
  "section": "1996",
  "sections": [
    {
      "heading": "History",
      "level": 1,
      "url": "https://harrypotter.fandom.com/wiki/Time-Turner#History",
      "word_count": 0
    },
    {
      "heading": "1996",
      "level": 2,
      "url": "https://harrypotter.fandom.com/wiki/Time-Turner#1996",
      "word_count": 77
    }
  ],
  "text": "1996\n\nThe entire stock of Time-Turners, located in the Time Room, in the Ministry of Magic were rendered useless during the Battle of the Department of Mysteries in 1996.",
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com",
  "word_count": 31
}
```

### Get a page summary

What a page is about in one paragraph, with its main picture. This is the card view: enough to put a character or an episode in a digest, a Slack message or an email without reading the whole page.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.

**Outputs**

- `image_url` (text): The main picture at full size, if it has one.
- `last_edited` (text): When the page last changed, in UTC.
- `lead` (text): Everything above the first heading.
- `pageid` (number): The page's id on this wiki.
- `summary` (text): The page's opening paragraph, as plain text.
- `thumbnail_url` (text): A small version of the main picture, if it has one.
- `title` (text): The page's title after redirects.
- `url` (text): The page's address on the wiki.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "image_url": "https://static.wikia.nocookie.net/harrypotter/images/a/a4/Time_Turner.png/revision/latest",
  "last_edited": "2026-10-16T16:06:30Z",
  "lead": "A Time-Turner was a magical device used for time travel. It was a special timepiece which resembled an hourglass on a necklace.",
  "pageid": 618,
  "summary": "A Time-Turner was a magical device used for time travel. It was a special timepiece which resembled an hourglass on a necklace.",
  "thumbnail_url": "https://static.wikia.nocookie.net/harrypotter/images/a/a4/Time_Turner.png/revision/latest/scale-to-width-down/282",
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### Get a page's edit history

Who changed one page, when, and what they said they were doing. Use it to see whether a page is kept up to date, to credit the people who wrote it, or to watch a page a workflow depends on. Narrow it to a window with the two date fields.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Newest to include (`start`, date and time): Only changes at or before this moment. Leave empty to start from now.
- Oldest to include (`end`, date and time): Only changes at or after this moment. Leave empty for no lower bound.
- Order (`direction`, text): Which end of the window to start from. Defaults to newest first. One of: `older` (Newest first), `newer` (Oldest first). Default: `older`.
- How many edits (`limit`, number): The most edits to return. Defaults to 20. From 1 to 50. Default: `20`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `pageid` (number): The id of the page whose history this is.
- `revisions` (list): The edits to the page.
- `title` (text): The page whose history this is, after redirects.
- `url` (text): The address of the page whose history this is.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "next_page_token": "20251207091224|1990087",
  "pageid": 618,
  "revisions": [
    {
      "edited_at": "2026-04-06T10:00:54Z",
      "editor": "Peregino",
      "is_minor": true,
      "note": "Bypass disambiguation",
      "previous_revision_id": 2002884,
      "revision_id": 2006132,
      "size_bytes": 21447,
      "tags": [],
      "url": "https://harrypotter.fandom.com/wiki/Time-Turner?oldid=2006132"
    }
  ],
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### Get a page's infobox

The facts in the box at the side of a page, as labels and values: a character's house and wand, an item's rarity, an episode's air date. A later step can read one fact directly by its label, such as the House. A page without an infobox says so rather than failing.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.

**Outputs**

- `count` (number): How many infoboxes.
- `has_infobox` (true/false): False when the page has no infobox.
- `infoboxes` (list): Each infobox on the page, in the order they appear.
- `pageid` (number): The page's id on this wiki.
- `title` (text): The page's title after redirects.
- `url` (text): The page's address on the wiki.
- `values` (object): Every row of every infobox, by its label. A list in a value is joined with semicolons.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "has_infobox": true,
  "infoboxes": [
    {
      "fields": [
        {
          "group": "Affiliation",
          "label": "House",
          "value": "Gryffindor"
        },
        {
          "group": "Magical characteristics",
          "label": "Patronus",
          "value": "Otter"
        }
      ],
      "images": [
        {
          "caption": "Film",
          "file": "Hermione Granger.jpg",
          "url": "https://static.wikia.nocookie.net/harrypotter/images/3/34/Hermione_Granger.jpg/revision/latest"
        }
      ],
      "title": "Hermione Jean Granger"
    }
  ],
  "pageid": 15,
  "title": "Hermione Granger",
  "url": "https://harrypotter.fandom.com/wiki/Hermione_Granger",
  "values": {
    "House": "Gryffindor",
    "Patronus": "Otter"
  },
  "wiki": "harrypotter.fandom.com"
}
```

### Get a user's profile

One person's Fandom account as one wiki sees it: how many edits they have made there, when they joined Fandom, the roles they hold on the wiki (such as administrator) and whether they are blocked.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Username (`username`, text, required): The person's Fandom username, such as Peregino, or a link to their profile. Usernames are the same on every Fandom wiki.

**Outputs**

- `contributions_url` (text): The list of the person's edits on this wiki.
- `edit_count` (number): Edits made on this wiki.
- `groups` (list): The roles they hold on this wiki, such as sysop for an administrator; empty for an ordinary editor.
- `is_blocked` (true/false): True when the person is blocked from editing this wiki.
- `profile_url` (text): The person's profile page on this wiki.
- `registered_at` (text): When the account was created.
- `user_id` (number): The person's Fandom account id, the same on every wiki.
- `username` (text): The person's Fandom username, as Fandom spells it.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "contributions_url": "https://harrypotter.fandom.com/wiki/Special:Contributions/MysticVerseTrey",
  "edit_count": 102,
  "groups": [
    "rollback"
  ],
  "is_blocked": false,
  "profile_url": "https://harrypotter.fandom.com/wiki/User:MysticVerseTrey",
  "registered_at": "2025-04-19T16:54:04Z",
  "user_id": 57187858,
  "username": "MysticVerseTrey",
  "wiki": "harrypotter.fandom.com"
}
```

### Get random pages

Pick pages from a wiki at random: a character of the day, a trivia question, a page to tidy up. Redirects are left out, so every page is a real one.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Limit to these kinds of page (`namespaces`, list): Only pages of these kinds. Leave empty for articles, which keeps talk pages, user pages and templates out of the way. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- How many pages (`limit`, number): How many pages to pick. Defaults to 1. From 1 to 20. Default: `1`.

**Outputs**

- `count` (number): How many this run returned.
- `pages` (list): The pages, one per row.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "pages": [
    {
      "namespace": 0,
      "namespace_name": "Article",
      "pageid": 4485,
      "title": "Jimmy Peakes",
      "url": "https://harrypotter.fandom.com/wiki/Jimmy_Peakes"
    }
  ],
  "wiki": "harrypotter.fandom.com"
}
```

### Get wiki info

A wiki's name, language, main page and logo, and how big it is: its articles, pages, edits, files and active editors. Also a quick way to check a wiki address before using it.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.

**Outputs**

- `active_user_count` (number): People who edited this wiki in the last 30 days.
- `admin_count` (number): The wiki's administrators.
- `api_url` (text): The address workflows read the wiki through.
- `article_count` (number): Articles on the wiki.
- `edit_count` (number): Edits ever made on the wiki.
- `file_count` (number): Files uploaded to the wiki.
- `language` (text): The wiki's language code, such as en or de.
- `logo_url` (text): The wiki's logo.
- `main_page` (text): The title of the wiki's front page.
- `main_page_url` (text): The address of the wiki's front page.
- `mediawiki_version` (text): The version of the wiki software it runs.
- `name` (text): The wiki's name, such as Harry Potter Wiki.
- `page_count` (number): Pages of every kind, talk pages and redirects included.
- `url` (text): The wiki's home address.
- `user_count` (number): Every Fandom account, which is the same on every wiki.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.
- `wiki_id` (text): The wiki's short name in Fandom's records.

**Example output**

```json
{
  "active_user_count": 250,
  "admin_count": 12,
  "api_url": "https://harrypotter.fandom.com/api.php",
  "article_count": 24700,
  "edit_count": 2034100,
  "file_count": 95000,
  "language": "en",
  "logo_url": "https://images.wikia.com/harrypotter/images/b/bc/Wiki.png",
  "main_page": "Main Page",
  "main_page_url": "https://harrypotter.fandom.com/wiki/Main_Page",
  "mediawiki_version": "MediaWiki 1.43.9",
  "name": "Harry Potter Wiki",
  "page_count": 261202,
  "url": "https://harrypotter.fandom.com/",
  "user_count": 44242969,
  "wiki": "harrypotter.fandom.com",
  "wiki_id": "harrypotter"
}
```

### List a user's edits

One person's edits on one wiki, newest first, with what they changed and why. Use it to welcome new editors, follow a trusted contributor, or check what an account has been doing.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Username (`username`, text, required): The person's Fandom username, such as Peregino, or a link to their profile. Usernames are the same on every Fandom wiki.
- Limit to these kinds of page (`namespaces`, list): Only edits to pages of these kinds. Leave empty for every kind. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- Newest to include (`start`, date and time): Only changes at or before this moment. Leave empty to start from now.
- Oldest to include (`end`, date and time): Only changes at or after this moment. Leave empty for no lower bound.
- How many edits (`limit`, number): The most edits to return. Defaults to 50. From 1 to 500. Default: `50`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `edits` (list): The person's edits.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `username` (text): The person's Fandom username.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "edits": [
    {
      "diff_url": "https://harrypotter.fandom.com/wiki/Hogwarts_School_of_Witchcraft_and_Wizardry?diff=2031074",
      "edited_at": "2026-10-01T02:28:42Z",
      "is_latest": false,
      "is_minor": false,
      "is_new": false,
      "namespace": 0,
      "namespace_name": "Article",
      "note": "",
      "pageid": 57,
      "revision_id": 2031074,
      "size_bytes": 133217,
      "size_change": 12,
      "tags": [
        "visualeditor"
      ],
      "title": "Hogwarts School of Witchcraft and Wizardry",
      "url": "https://harrypotter.fandom.com/wiki/Hogwarts_School_of_Witchcraft_and_Wizardry"
    }
  ],
  "next_page_token": "20260930012840|2030903",
  "username": "MysticVerseTrey",
  "wiki": "harrypotter.fandom.com"
}
```

### List recent changes

What has been edited across a whole wiki lately, newest first: run it on a schedule for a weekly digest of new and changed articles. Articles only by default. Fandom keeps about the last three months of changes, so a window reaching further back stops there.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Limit to these kinds of page (`namespaces`, list): Only pages of these kinds. Leave empty for articles, which keeps talk pages, user pages and templates out of the way. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- Kinds of change (`change_types`, list): Which kinds of change to include. Leave empty for every kind. One or more of: `edit` (Edits to existing pages), `new` (New pages), `log` (Log entries such as uploads, moves and deletions), `categorize` (Pages added to or removed from a category).
- Narrow down (`filters`, list): Skip or keep only minor edits, bot edits, edits by signed-out people or redirects. Leave empty to include everything. One or more of: `!minor` (Skip minor edits), `minor` (Only minor edits), `!bot` (Skip bot edits), `bot` (Only bot edits), `!anon` (Skip edits by signed-out people), `anon` (Only edits by signed-out people), `!redirect` (Skip redirects), `redirect` (Only redirects).
- Newest to include (`start`, date and time): Only changes at or before this moment. Leave empty to start from now.
- Oldest to include (`end`, date and time): Only changes at or after this moment. Leave empty for no lower bound.
- Order (`direction`, text): Which end of the window to start from. Defaults to newest first. One of: `older` (Newest first), `newer` (Oldest first). Default: `older`.
- How many changes (`limit`, number): The most changes to return. Defaults to 50. From 1 to 500. Default: `50`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `changes` (list): The changes, in the order asked for.
- `count` (number): How many this run returned.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "changes": [
    {
      "change_id": 2098878,
      "diff_url": "https://harrypotter.fandom.com/wiki/River_Mersey?diff=2034100",
      "edited_at": "2026-10-19T21:36:49Z",
      "editor": "Tumelwup",
      "is_bot": false,
      "is_minor": true,
      "is_new": false,
      "namespace": 0,
      "namespace_name": "Article",
      "note": "/* Notes and references */ + de2",
      "pageid": 70847,
      "revision_id": 2034100,
      "size_bytes": 1482,
      "size_change": 22,
      "tags": [
        "wikieditor"
      ],
      "title": "River Mersey",
      "type": "edit",
      "url": "https://harrypotter.fandom.com/wiki/River_Mersey"
    }
  ],
  "count": 1,
  "next_page_token": "20261019195123|2098875",
  "wiki": "harrypotter.fandom.com"
}
```

### List the categories a page is in

Where one page is filed: a character's house, species and the books they appear in. Read a page's categories, then list the pages in one of them to find everything else like it. The wiki's hidden maintenance categories are left out unless you ask for them.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Which categories (`visibility`, text): Whether to include the hidden maintenance categories, which say how a page is looked after rather than what it is about. Defaults to the ones readers see. One of: `visible` (The ones readers see), `all` (Every category, maintenance ones included), `hidden` (Only the hidden maintenance ones). Default: `visible`.
- How many categories (`limit`, number): The most categories to return. Defaults to 50. From 1 to 500. Default: `50`.

**Outputs**

- `categories` (list): The categories, in name order.
- `count` (number): How many this run returned.
- `pageid` (number): The id of the page whose categories these are.
- `title` (text): The page whose categories these are, after redirects.
- `url` (text): The address of the page whose categories these are.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "categories": [
    {
      "hidden": false,
      "name": "Department of Mysteries",
      "namespace": 14,
      "namespace_name": "Category",
      "title": "Category:Department of Mysteries",
      "url": "https://harrypotter.fandom.com/wiki/Category:Department_of_Mysteries"
    }
  ],
  "count": 1,
  "pageid": 618,
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### List the images on a page

The images a page shows, each with its full-size address, a thumbnail address and its size, ready to post or download. Includes small images placed by the wiki's templates, such as icons.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Thumbnail width (`thumbnail_width`, number): How wide, in pixels, the thumbnail address should be. Defaults to 400. From 1 to 2000. Default: `400`.
- How many images (`limit`, number): The most images to return. Defaults to 20. From 1 to 50. Default: `20`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `images` (list): The images, in name order.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `title` (text): The page whose images these are, after redirects.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "images": [
    {
      "file_name": "Time Turner.png",
      "height": 400,
      "mime_type": "image/png",
      "page_url": "https://harrypotter.fandom.com/wiki/File:Time_Turner.png",
      "size_bytes": 160532,
      "thumbnail_url": "https://static.wikia.nocookie.net/harrypotter/images/a/a4/Time_Turner.png/revision/latest/scale-to-width-down/400",
      "title": "File:Time Turner.png",
      "url": "https://static.wikia.nocookie.net/harrypotter/images/a/a4/Time_Turner.png/revision/latest",
      "width": 282
    }
  ],
  "next_page_token": "",
  "title": "Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### List the links on a page

The pages one page links to, in title order: every character an episode mentions, every item a quest needs. Links to articles by default.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Limit to these kinds of page (`namespaces`, list): Only pages of these kinds. Leave empty for articles, which keeps talk pages, user pages and templates out of the way. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- How many links (`limit`, number): The most links to return. Defaults to 100. From 1 to 500. Default: `100`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `links` (list): The pages linked to, in title order.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `title` (text): The page whose links these are, after redirects.
- `url` (text): The address of the page whose links these are.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "links": [
    {
      "namespace": 0,
      "namespace_name": "Article",
      "title": "Hermione Granger",
      "url": "https://harrypotter.fandom.com/wiki/Hermione_Granger"
    }
  ],
  "next_page_token": "618|0|Albus_Dumbledore",
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### List the pages in a category

Everything filed under one category: every Gryffindor, every episode of a season, every weapon in a game. The result also says how many the category holds altogether. Type the name with or without 'Category:', or paste the category's link.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Category (`category`, text, required): The category to list, with or without the 'Category:' prefix, or its link. Use List the categories a page is in to find one.
- What to include (`member_types`, list): Which kinds of member to return. Leave empty for pages and subcategories. One or more of: `page` (Pages), `subcat` (Subcategories), `file` (Files).
- Sort by (`sort`, text): How to order the list. Defaults to alphabetically. One of: `sortkey` (Alphabetically), `timestamp` (By when each was added to the category). Default: `sortkey`.
- Order (`order`, text): Which way round to sort. Defaults to A to Z, or oldest first when sorting by date. One of: `ascending` (A to Z, or oldest first), `descending` (Z to A, or newest first). Default: `ascending`.
- How many pages (`limit`, number): The most members to return. Defaults to 50. From 1 to 500. Default: `50`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `category` (text): The category, with its 'Category:' prefix.
- `count` (number): How many this run returned.
- `members` (list): The members of the category.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `total_files` (number): Files in the category altogether.
- `total_in_category` (number): How many the category holds altogether.
- `total_pages` (number): Pages in the category altogether.
- `total_subcategories` (number): Subcategories in the category altogether.
- `url` (text): The category's page on the wiki.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "category": "Category:Gryffindors",
  "count": 1,
  "members": [
    {
      "added": "2007-10-18T12:52:21Z",
      "namespace": 0,
      "namespace_name": "Article",
      "pageid": 7018,
      "title": "Euan Abercrombie",
      "type": "page",
      "url": "https://harrypotter.fandom.com/wiki/Euan_Abercrombie"
    }
  ],
  "next_page_token": "page|414b41474920534b5552410a|99282",
  "total_files": 0,
  "total_in_category": 248,
  "total_pages": 244,
  "total_subcategories": 4,
  "url": "https://harrypotter.fandom.com/wiki/Category:Gryffindors",
  "wiki": "harrypotter.fandom.com"
}
```

### List what links to a page

Which pages point at this one: every episode a character appears in, every page that mentions an item. Pages that link to it under an older name are included, and each says which name it used.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- Page (`title`, text, required): The page's title, such as Hermione Granger, or its link. Redirects are followed, so an old name still reaches the page. Use Search a wiki to find one.
- Limit to these kinds of page (`namespaces`, list): Only pages of these kinds. Leave empty for articles, which keeps talk pages, user pages and templates out of the way. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- Include redirects (`redirects`, text): Whether to include pages that are only other names for a page. Defaults to both. One of: `all` (Pages and redirects), `nonredirects` (Pages only), `redirects` (Redirects only). Default: `all`.
- How many pages (`limit`, number): The most pages to return. Defaults to 50. From 1 to 500. Default: `50`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `pages` (list): The pages, one per row.
- `title` (text): The page the others link to.
- `url` (text): The address of the page the others link to.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 1,
  "next_page_token": "0|15",
  "pages": [
    {
      "is_redirect": false,
      "links_via": "",
      "namespace": 0,
      "namespace_name": "Article",
      "pageid": 15,
      "title": "Hermione Granger",
      "url": "https://harrypotter.fandom.com/wiki/Hermione_Granger"
    }
  ],
  "title": "Time-Turner",
  "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
  "wiki": "harrypotter.fandom.com"
}
```

### Search a wiki

Search the full text of one Fandom wiki and get back the pages that match, best match first. Searches articles by default. This is the way in: most other actions take a page, and this is where a page comes from.

**Inputs**

- Wiki (`wiki`, text, required): The Fandom wiki to read: its name as it appears in its address, such as harrypotter for harrypotter.fandom.com, or a link to any page on it. For a wiki in another language, include the language, such as harrypotter.fandom.com/de.
- What to look for (`query`, text, required): The words to search for.
- Limit to these kinds of page (`namespaces`, list): Only pages of these kinds. Leave empty for articles, which keeps talk pages, user pages and templates out of the way. One or more of: `0` (Articles), `14` (Categories), `6` (Files), `10` (Templates), `500` (User blog posts), `2` (User pages), `4` (The wiki's own pages, such as its rules), `12` (Help), `828` (Modules), `1` (Article talk pages).
- How many results (`limit`, number): The most results to return. Defaults to 10. From 1 to 50. Default: `10`.
- Continue from (`continue_from`, text): Pick up where a previous run stopped: pass the 'next_page_token' that run returned. Leave empty to start at the beginning.

**Outputs**

- `count` (number): How many this run returned.
- `next_page_token` (text): Pass back as 'continue_from' for the next page; empty when there is nothing more.
- `query` (text): The words that were searched for.
- `results` (list): The matching pages, best match first.
- `wiki` (text): The wiki that was read, such as harrypotter.fandom.com.

**Example output**

```json
{
  "count": 2,
  "next_page_token": "2",
  "query": "time turner",
  "results": [
    {
      "last_edited": "2026-04-06T10:00:54Z",
      "namespace": 0,
      "namespace_name": "Article",
      "pageid": 618,
      "size_bytes": 21447,
      "title": "Time-Turner",
      "url": "https://harrypotter.fandom.com/wiki/Time-Turner",
      "word_count": 3396
    },
    {
      "last_edited": "2026-05-25T23:16:08Z",
      "namespace": 0,
      "namespace_name": "Article",
      "pageid": 121979,
      "size_bytes": 7770,
      "title": "Time Room",
      "url": "https://harrypotter.fandom.com/wiki/Time_Room",
      "word_count": 1234
    }
  ],
  "wiki": "harrypotter.fandom.com"
}
```
