# Wiki Page

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Schemas

Wiki pages (Fandom articles, categories, files) with their readable text, source markup, sections, infoboxes and last edit.

## Schema

Single-item endpoints return this object as `data`; list endpoints return an array of them as `data` with a [`page`](https://socialtap.dev/docs/pagination/index.md) object. The standard [`meta`](https://socialtap.dev/docs/reference/index.md#meta) comes with every response.

| Field | Type | Description |
| --- | --- | --- |
| `platform` | `string` | Platform that hosts the wiki. |
| `id` | `string` | Platform-native page ID (string), unique on the platform: the wiki's link key (wiki.name) and the page's number on that wiki, joined by a colon (fortnite:11594; fortnite/de:2536 on the German edition). Stays the same when the page is renamed, where the platform keeps its number; an endpoint that reads a page takes it back as its input. |
| `title` | `string` | The page's title as its wiki names it, with spaces (not the underscores of its link) and its namespace prefix (Category:Outfits). |
| `url` | `string` (uri) | Canonical page URL. |
| `type` | `string` | page: an article or any other page; category: a category's page, which lists its members; file: an uploaded file's page (an image, a video). New values may be added; treat unknown values as page.<br>One of `page`, `category`, `file` |
| `wiki` | `object` | The wiki the page belongs to: its link key and link, and its ID and title when the answer carries them. |
| `wiki.id` | `string` or `null` | The wiki's ID, as the platform's endpoint for the wiki answers it (community.id: Fandom's numeric wiki ID); null when the answer does not carry it. |
| `wiki.name` | `string` | The wiki's link key as its links write it (community.name): fortnite for fortnite.fandom.com, fortnite/de for its German edition at fortnite.fandom.com/de. |
| `wiki.title` | `string` or `null` | The wiki's name as it shows it (community.title: Fortnite Wiki); null when the answer does not carry it. |
| `wiki.url` | `string` (uri) | The wiki's link, where its pages' links start (https://fortnite.fandom.com, or https://fortnite.fandom.com/de for its German edition). |
| `text` | `string` or `null` | The page's readable text as plain text: its body as rendered (templates expanded, tables kept), without navigation, infoboxes or edit links. Not the source (that is markup; a readme's text is its source). Null when the page renders no text, and on lists that don't carry it. |
| `markup` | `string` or `null` | The page's source as its editors wrote it, in its markup (MediaWiki wikitext, Markdown), not rendered: what a readme's text is to a README, with markup_format as its format. Null when the page is empty, on lists, and when the request leaves it out. |
| `markup_format` | `string` or `null` | The markup markup is written in (wikitext: MediaWiki's; rst: reStructuredText; text: plain); null when markup is. New values may be added.<br>One of `wikitext`, `markdown`, `rst`, `asciidoc`, `org`, `text`, `other` |
| `html` | `string` or `null` | The page's body as the wiki renders it, in HTML; links in it are as the wiki wrote them (a relative one resolves against url). Null unless the request asks for it, and when the page renders nothing. |
| `sections` | `object[]` | The page's headings in order, its table of contents; \[\] when it has none (or unknown: see unknown_fields). |
| `sections[].title` | `string` | The heading's text, as plain text. |
| `sections[].level` | `integer` | Heading level, as the HTML heading it renders (1–6: MediaWiki's == Heading == is 2, Markdown's # is 1). |
| `sections[].anchor` | `string` | The heading's anchor: the page's url followed by # and the anchor links to it. |
| `edited_at` | `string` (date-time) or `null` | When the page's current revision was saved, RFC 3339 UTC; null when the answer does not carry it. |
| `editor` | `object` or `null` | The account that saved the current revision; null when the platform names none (an edit made logged out, or a hidden user). |
| `editor.id` | `string` or `null` | Platform-native account ID; null when only the handle is known. |
| `editor.username` | `string` or `null` | Handle without the @; null when the account has none. |
| `editor.display_name` | `string` or `null` | Display name shown on the profile. |
| `editor.url` | `string` (uri) or `null` | Canonical profile URL. |
| `editor.avatar_url` | `string` (uri) or `null` | Profile picture URL. Platform CDN URLs can expire within hours. |
| `editor.is_verified` | `boolean` or `null` | Platform verification badge; null where the platform has no badge. |
| `revision_id` | `string` or `null` | ID of the page's current revision (it changes with every edit); null when the answer does not carry it. |
| `edit_summary` | `string` or `null` | What the editor wrote about the current revision (its edit summary), as written; null when they wrote nothing or the answer does not carry it. |
| `platform_specific` | `object` | Fields only this platform has, under its ID (platform_specific.\<platform>); each null when unknown. |
| `platform_specific.fandom` | `object` or `null` | A Fandom wiki page's own fields. |
| `platform_specific.fandom.page_id` | `string` or `null` | The page's number on its wiki (MediaWiki's page ID: what api.php's pageids and index.php?curid take); numbered per wiki, so the same number names other pages on other wikis. |
| `platform_specific.fandom.language` | `string` or `null` | BCP-47 language the page is written in, as its wiki states it (MediaWiki's page language: de on a German edition); null when not given. |
| `platform_specific.fandom.namespace` | `integer` or `null` | MediaWiki namespace number: 0 articles, 2 user pages, 6 files, 10 templates, 14 categories, odd numbers talk pages, 100 and up the wiki's own. |
| `platform_specific.fandom.display_title` | `string` or `null` | The title as the page displays it, as plain text (it may differ from title in case or styling); null when not shown. |
| `platform_specific.fandom.description` | `string` or `null` | Fandom's short summary of the page (what search results and link previews show); null when it has none. |
| `platform_specific.fandom.image_url` | `string` (uri) or `null` | The page's lead image, as Fandom picks it for previews; null when it has none. |
| `platform_specific.fandom.is_redirect` | `boolean` or `null` | True when the page only redirects to another (on a list that includes redirects). |
| `platform_specific.fandom.redirected_from` | `string` or `null` | The title asked for, when it redirected to this page; null when it did not. |
| `platform_specific.fandom.size_bytes` | `integer` or `null` | Length of the page's wikitext in bytes, as MediaWiki counts it. |
| `platform_specific.fandom.word_count` | `integer` or `null` | Words on the page, as the wiki's search counts them; null outside a search. |
| `platform_specific.fandom.categorized_at` | `string` (date-time) or `null` | On a category's member list, when the page was added to that category, RFC 3339 UTC; null elsewhere. |
| `platform_specific.fandom.categories` | `string[]` | The categories the page shows readers, without the Category: prefix (Outfits); \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.hidden_categories` | `string[]` | Maintenance categories the page is in but hides from readers, without the Category: prefix; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.templates` | `string[]` | Titles of the templates and modules the page uses (Template:Infobox Cosmetics); \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.linked_titles` | `string[]` | Titles of the wiki's pages this page links to, prefix included; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.external_links` | `string[]` | Links from the page to other websites; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.file_names` | `string[]` | Names of the files (images, videos) the page shows, without the File: prefix; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.language_links` | `object[]` | The same page on the wiki's other language editions; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.language_links[].language` | `string` | BCP-47 language of the edition. |
| `platform_specific.fandom.language_links[].title` | `string` | The page's title there. |
| `platform_specific.fandom.language_links[].url` | `string` (uri) or `null` | The page's link there; null when the wiki does not give one. |
| `platform_specific.fandom.infoboxes` | `object[]` | The page's infoboxes (the fact boxes beside an article), structured, in the page's order; \[\] when none (or unknown: see unknown_fields). |
| `platform_specific.fandom.infoboxes[].title` | `string` or `null` | The infobox's heading, usually the subject's name; null when it has none. |
| `platform_specific.fandom.infoboxes[].images` | `object[]` | Pictures the infobox shows, in its order (a gallery's tabs: Icon, Featured); \[\] when none. |
| `platform_specific.fandom.infoboxes[].images[].type` | `string` | Kind of file. New values may be added; treat unknown values as other.<br>One of `image`, `video`, `audio`, `gif` |
| `platform_specific.fandom.infoboxes[].images[].url` | `string` (uri) or `null` | Direct file URL; null when the platform withholds it, or when the link would only work from SocialTap's network or with a login. Often signed and expiring: see expires_at. |
| `platform_specific.fandom.infoboxes[].images[].expires_at` | `string` (date-time) or `null` | When url stops working, RFC 3339 UTC, read from the platform's signed URL; null when unknown or when it does not expire. |
| `platform_specific.fandom.infoboxes[].images[].thumbnail_url` | `string` (uri) or `null` | Poster or preview image URL. |
| `platform_specific.fandom.infoboxes[].images[].width` | `integer` or `null` | Width in pixels. |
| `platform_specific.fandom.infoboxes[].images[].height` | `integer` or `null` | Height in pixels. |
| `platform_specific.fandom.infoboxes[].images[].duration_ms` | `integer` or `null` | Duration in milliseconds (video and audio only). |
| `platform_specific.fandom.infoboxes[].images[].alt_text` | `string` or `null` | Accessibility text provided by the author or platform. |
| `platform_specific.fandom.infoboxes[].images[].file_name` | `string` or `null` | Its file's name on the wiki, without the File: prefix; null when not given. |
| `platform_specific.fandom.infoboxes[].images[].caption` | `string` or `null` | Its caption or tab label; null when none. |
| `platform_specific.fandom.infoboxes[].fields` | `object[]` | Its rows, in display order; \[\] when none. |
| `platform_specific.fandom.infoboxes[].fields[].tab` | `string` or `null` | The tab of a tabbed infobox it sits in; null when the infobox has no tabs. |
| `platform_specific.fandom.infoboxes[].fields[].group` | `string` or `null` | The header it sits under; null when none. |
| `platform_specific.fandom.infoboxes[].fields[].key` | `string` or `null` | The template parameter behind the row (rarity): the same on every page of the wiki that uses the infobox; null when it has none. |
| `platform_specific.fandom.infoboxes[].fields[].label` | `string` or `null` | The row's label as plain text; null when it has none. |
| `platform_specific.fandom.infoboxes[].fields[].value` | `string` | The row's value as plain text (a list's items separated by commas). |
| `platform_specific.fandom.file` | `object` or `null` | On a file's page, the file itself; null on other pages. |
| `platform_specific.fandom.file.url` | `string` (uri) | The file's URL on Fandom's image host. |
| `platform_specific.fandom.file.mime_type` | `string` or `null` | Its MIME type (image/png); null when not given. |
| `platform_specific.fandom.file.size_bytes` | `integer` or `null` | Its size in bytes. |
| `platform_specific.fandom.file.width` | `integer` or `null` | Width in pixels; null for a file without one (audio, a document). |
| `platform_specific.fandom.file.height` | `integer` or `null` | Height in pixels; null for a file without one. |
| `platform_specific.fandom.file.uploaded_at` | `string` (date-time) or `null` | When its current version was uploaded, RFC 3339 UTC. |
| `platform_specific.fandom.file.uploader` | `object` or `null` | The account that uploaded its current version; null when not named. |
| `platform_specific.fandom.file.uploader.id` | `string` or `null` | Platform-native account ID; null when only the handle is known. |
| `platform_specific.fandom.file.uploader.username` | `string` or `null` | Handle without the @; null when the account has none. |
| `platform_specific.fandom.file.uploader.display_name` | `string` or `null` | Display name shown on the profile. |
| `platform_specific.fandom.file.uploader.url` | `string` (uri) or `null` | Canonical profile URL. |
| `platform_specific.fandom.file.uploader.avatar_url` | `string` (uri) or `null` | Profile picture URL. Platform CDN URLs can expire within hours. |
| `platform_specific.fandom.file.uploader.is_verified` | `boolean` or `null` | Platform verification badge; null where the platform has no badge. |
| `approximate_fields` | `string[]` | JSON paths of values the platform rounds or states as display text. \[\] when all exact. |
| `unknown_fields` | `string[]` | JSON paths of lists whose \[\] means unknown, not none (sections on a list of pages). \[\] when every list is known. |

## Item errors

Besides the [request-level errors](https://socialtap.dev/docs/errors/index.md) every endpoint can return, wiki page endpoints return:

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `not_found` | 404 | No | The item does not exist or was deleted. On GET /v1/requests/{id}/response: the response was not kept (details.reason says why). | Check the link or ID. Do not retry. |
| `private_or_unavailable` | 403 | No | The item exists but isn't public: it is private, age- or region-restricted, or needs a login. It shares 403 with forbidden, which is about the key: branch on the code. | Only public items can be fetched. Do not retry. |

## Endpoints

3 endpoints return wiki pages on Fandom.

**Fandom3**

- [GETFandom Wiki Search API`/v1/fandom/search_wiki_pages`](https://socialtap.dev/docs/reference/fandom/search-wiki-pages/index.md)
- [GETFandom Wiki Page API`/v1/fandom/wiki_page`](https://socialtap.dev/docs/reference/fandom/wiki-page/index.md)
- [GETFandom Wiki Pages API`/v1/fandom/wiki_pages`](https://socialtap.dev/docs/reference/fandom/wiki-pages/index.md)

---

[HTML version](https://socialtap.dev/resources/wiki_page/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
