# Fandom Wiki API

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

Fandom

Returns a public Fandom wiki from its name or link, in any language edition, with its admins and its page, edit and active user counts. It also has the title, main page, language, license, logo and creation date, and its Discussions categories and totals. Flags say whether the wiki has Discussions, article comments and portable infoboxes. [Overview](https://socialtap.dev/apis/fandom/wiki/index.md)

GET `/v1/fandom/wiki`

> [!NOTE]
>
> **Good to know**
>
> - metrics.member_count is null: a Fandom wiki has no members. Its size is in platform_specific.fandom: pages, articles, edits, files and active users in the last 30 days.
> - created_at is the time of the wiki's first logged event, which Fandom writes when it creates a wiki.
> - A language edition that does not exist (lang=xx) returns not_found, as does a closed wiki or an unknown name.
> - rules is \[\] and listed in unknown_fields: a wiki keeps its rules on a page of its own, in its own words.

## Example

cURL:

```shell
curl -G 'https://socialtap.dev/v1/fandom/wiki' \
  --data-urlencode 'url=https://fortnite.fandom.com' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

TypeScript SDK:

```typescript
// Save this as app.mjs (an ES module) and run: node app.mjs
import { SocialTap } from "socialtap";

const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY

const res = await client.fandom.wiki.get({ url: "https://fortnite.fandom.com" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);
```

Python SDK:

```python
from socialtap import SocialTap

client = SocialTap()  # api_key defaults to os.environ["SOCIALTAP_API_KEY"]

res = client.fandom.wiki.get(url="https://fortnite.fandom.com")
print(res.data)
print(res.credits.charged, res.meta.request_id)
```

Go SDK:

```go
package main

import (
	"context"
	"fmt"
	"log"

	socialtap "socialtap.dev/sdk/go"
)

func main() {
	ctx := context.Background()
	client, err := socialtap.NewClient() // the API key defaults to $SOCIALTAP_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.Fandom.Wiki.Get(ctx, socialtap.FandomWikiParams{URL: "https://fortnite.fandom.com"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": {
    "approximate_fields": [],
    "avatar_url": "https://static.wikia.nocookie.net/fortnite/images/e/e6/Site-logo.png/revision/latest?cb=20221102034914",
    "banner_url": null,
    "categories": [
      "games"
    ],
    "created_at": "2011-12-11T12:01:24Z",
    "description": null,
    "id": "440321",
    "is_nsfw": null,
    "metrics": {
      "member_count": null
    },
    "moderators": [
      {
        "avatar_url": null,
        "display_name": null,
        "id": "55290515",
        "is_verified": null,
        "url": "https://fortnite.fandom.com/wiki/User:Charlottek131",
        "username": "Charlottek131"
      },
      {
        "avatar_url": null,
        "display_name": null,
        "id": "50931929",
        "is_verified": null,
        "url": "https://fortnite.fandom.com/wiki/User:Demone117",
        "username": "Demone117"
      },
      {
        "avatar_url": null,
        "display_name": null,
        "id": "53349710",
        "is_verified": null,
        "url": "https://fortnite.fandom.com/wiki/User:H.Lagres",
        "username": "H.Lagres"
      }
    ],
    "name": "fortnite",
    "platform": "fandom",
    "platform_specific": {
      "fandom": {
        "active_user_count": 81,
        "admin_count": 4,
        "article_count": 35116,
        "discussion_post_count": 534736,
        "discussion_thread_count": 59896,
        "edit_count": 1174684,
        "file_count": 212720,
        "forums": [
          {
            "id": "3100000000000000016",
            "name": "Battle Royale",
            "thread_count": 3974
          },
          {
            "id": "3100000000000000017",
            "name": "Creative/UEFN",
            "thread_count": 1157
          },
          {
            "id": "3100000000000000034",
            "name": "Fortnite: Fan Creations",
            "thread_count": 3793
          }
        ],
        "is_article_comments_enabled": true,
        "is_discussions_enabled": true,
        "is_portable_infobox_enabled": true,
        "language": "en",
        "license": "CC-BY-SA",
        "license_url": "https://www.fandom.com/licensing",
        "main_page_title": "Fortnite Wiki",
        "main_page_url": "https://fortnite.fandom.com/wiki/Fortnite_Wiki",
        "mediawiki_version": "1.43.10",
        "page_count": 294244
      }
    },
    "privacy": "public",
    "rules": [],
    "title": "Fortnite Wiki",
    "unknown_fields": [
      "rules"
    ],
    "url": "https://fortnite.fandom.com"
  },
  "meta": {
    "request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
    "platform": "fandom",
    "source": "api",
    "is_cached": false,
    "credits_charged": 1,
    "latency_ms": 1000,
    "fetched_at": "2026-10-25T12:00:00Z",
    "input": {
      "kind": "community",
      "id": "440321",
      "url": "https://fortnite.fandom.com"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

Long arrays and strings are shortened for display; real responses are complete.

## Query parameters

| Name | Type | Description | Example |
| --- | --- | --- | --- |
| `url` required | `string`<br>max 2,048 chars | A Fandom wiki: its name (fortnite, or fortnite/de for a language edition), its host, or a link to its root, a language edition (fortnite.fandom.com/de) or its Special:Statistics page. Legacy wikia.com and gamepedia.com links work too. | `https://fortnite.fandom.com` |
| `lang` optional | `string`<br>bcp47 | Preferred language: a BCP-47 tag such as en or pt-BR (case-insensitive; _ is read as -). | `en` |

Every endpoint also accepts [`max_age`](https://socialtap.dev/docs/reference/index.md#common-params), [`max_credits`](https://socialtap.dev/docs/reference/index.md#common-params) and [`fields`](https://socialtap.dev/docs/reference/index.md#common-params).

## Response

`{data, meta}`: `data` is a [community](https://socialtap.dev/resources/community/index.md) object. Fields only Fandom has are under `platform_specific.fandom`. [`meta`](https://socialtap.dev/docs/reference/index.md#meta) describes the request.

| Field | Type | Description |
| --- | --- | --- |
| `data.id` | `string` | Platform-native community ID (string): Reddit's subreddit ID with its t5_ prefix, Facebook's numeric group ID. |
| `data.name` | `string` or `null` | The name its links use, without a prefix (golang for r/golang; a Facebook group's vanity name; a Fandom wiki's subdomain, with a language edition's language: fortnite/de); null when it has none (a Facebook group known only by its number). |
| `data.title` | `string` or `null` | The community's title as its page shows it ("The Go Programming Language"; what Facebook calls a group's name); null when it has none. |
| `data.description` | `string` or `null` | Its short description as plain text; null when it has none. |
| `data.url` | `string` (uri) | Canonical community URL (https://www.reddit.com/r/golang/, https://www.facebook.com/groups/\<id>/). |
| `data.avatar_url` | `string` (uri) or `null` | The community's icon or picture; null when it has none. Platform CDN URLs can expire. |
| `data.banner_url` | `string` (uri) or `null` | Header or cover image URL; null when it has none. |
| `data.privacy` | `string` or `null` | public: anyone sees its posts, any member posts; restricted: anyone sees its posts, approved members post; private: only members see its posts (answered private_or_unavailable unless its page shows logged out). New values may be added; treat unknown values as restricted.<br>One of `public`, `restricted`, `private` |
| `data.is_nsfw` | `boolean` or `null` | Marked adult (NSFW) by the platform; null where the platform has no such mark. |
| `data.categories` | `string[]` | Topics or categories the platform files it under, as shown (not normalized); \[\] when none. |
| `data.rules` | `object[]` | Its published rules, in the platform's order; \[\] when it has none (or unknown: see unknown_fields). |
| `data.rules[].title` | `string` | The rule's short title (Reddit short_name, Facebook rule_title). |
| `data.rules[].description` | `string` or `null` | Its explanation as plain text; null when it has none. |
| `data.moderators` | `object[]` | Accounts that run it (admins and moderators) the platform shows; \[\] when none are shown (or unknown: see unknown_fields). |
| `data.moderators[].id` | `string` or `null` | Platform-native account ID; null when only the handle is known. |
| `data.moderators[].username` | `string` or `null` | Handle without the @; null when the account has none. |
| `data.moderators[].display_name` | `string` or `null` | Display name shown on the profile. |
| `data.moderators[].url` | `string` (uri) or `null` | Canonical profile URL. |
| `data.moderators[].avatar_url` | `string` (uri) or `null` | Profile picture URL. Platform CDN URLs can expire within hours. |
| `data.moderators[].is_verified` | `boolean` or `null` | Platform verification badge; null where the platform has no badge. |
| `data.created_at` | `string` (date-time) or `null` | When it was created, RFC 3339 UTC. |
| `data.metrics` | `object` | Counts at fetch time; null = not shown, 0 = zero. |
| `data.metrics.member_count` | `integer` or `null` | Members (on Reddit, subscribers) as the platform counts them. |
| `data.platform_specific.fandom` | `object` or `null` | A Fandom wiki's own fields. |
| `data.platform_specific.fandom.language` | `string` or `null` | The language of this edition of the wiki, as Fandom writes it (en, de, pt-br). |
| `data.platform_specific.fandom.main_page_title` | `string` or `null` | The title of the wiki's main page. |
| `data.platform_specific.fandom.main_page_url` | `string` (uri) or `null` | The link to the wiki's main page. |
| `data.platform_specific.fandom.mediawiki_version` | `string` or `null` | The MediaWiki version the wiki runs (1.43.10). |
| `data.platform_specific.fandom.license` | `string` or `null` | The license of the wiki's text as Fandom names it (CC-BY-SA). |
| `data.platform_specific.fandom.license_url` | `string` (uri) or `null` | The page that explains the license. |
| `data.platform_specific.fandom.page_count` | `integer` or `null` | Pages in every namespace: articles, redirects, talk, user, file and template pages. |
| `data.platform_specific.fandom.article_count` | `integer` or `null` | Content pages: articles, as MediaWiki counts them (no redirects). |
| `data.platform_specific.fandom.edit_count` | `integer` or `null` | Edits made to the wiki since it was created. |
| `data.platform_specific.fandom.file_count` | `integer` or `null` | Uploaded files (images, mostly). |
| `data.platform_specific.fandom.active_user_count` | `integer` or `null` | Accounts that did something on the wiki in the last 30 days. |
| `data.platform_specific.fandom.admin_count` | `integer` or `null` | Accounts with administrator rights on the wiki. |
| `data.platform_specific.fandom.discussion_thread_count` | `integer` or `null` | Threads in the wiki's Discussions forums; null when the wiki has no Discussions. |
| `data.platform_specific.fandom.discussion_post_count` | `integer` or `null` | Posts in the wiki's Discussions forums, threads and replies; null when the wiki has no Discussions. |
| `data.platform_specific.fandom.forums` | `object[]` | The wiki's Discussions categories with their thread counts; \[\] when it has no Discussions (or unknown: see unknown_fields). |
| `data.platform_specific.fandom.forums[].id` | `string` | The category's ID, as a Discussions list's forum param takes it. |
| `data.platform_specific.fandom.forums[].name` | `string` | The category's name. |
| `data.platform_specific.fandom.forums[].thread_count` | `integer` or `null` | Threads in the category. |
| `data.platform_specific.fandom.is_discussions_enabled` | `boolean` or `null` | True when the wiki has Discussions, its forums. |
| `data.platform_specific.fandom.is_article_comments_enabled` | `boolean` or `null` | True when readers can comment under the wiki's articles. |
| `data.platform_specific.fandom.is_portable_infobox_enabled` | `boolean` or `null` | True when the wiki's pages can carry Fandom's portable infoboxes. |
| `data.approximate_fields` | `string[]` | JSON paths of values rounded by the platform or parsed from display text ("762.0K members": metrics.member_count). \[\] when all exact. |
| `data.unknown_fields` | `string[]` | JSON paths of lists whose \[\] means unknown, not none (a source that cannot see them). \[\] when every list is known. |

Besides [the errors any request can return](https://socialtap.dev/docs/errors/index.md): [`not_found`](https://socialtap.dev/docs/errors/index.md#not_found) (404) and [`private_or_unavailable`](https://socialtap.dev/docs/errors/index.md#private_or_unavailable) (403) when the item can't be returned.

## Pricing

**1 credit** per successful request ($0.75–$1.97 per 1,000). Failed requests are free. [How credits work](https://socialtap.dev/docs/credits/index.md)

Endpoint ID `fandom.wiki` · operationId `fandom.wiki.get`

---

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