# Fandom Article Comments API

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

Fandom

Returns the comments under a Fandom wiki page from its link, newest first, each followed by its replies, in any language edition. Each comment has its text, author, posting time, upvotes, reply count, images, mentions and links, and whether it was edited. [Overview](https://socialtap.dev/apis/fandom/wiki-page-comments/index.md)

GET `/v1/fandom/wiki_page_comments`

> [!NOTE]
>
> **Good to know**
>
> - A comment's replies follow it, oldest first, with parent_id set to its id, so a new reply to an older comment arrives with that comment, not on the first page.
> - A comment left without an account has author.display_name A Fandom user and no id or username.
> - A page that does not exist returns not_found. A wiki that turned article comments off returns an empty list.
> - Send the page's link, not the wiki's name and a title. A link to a redirect returns the comments of the page it leads to.

## Example

cURL:

```shell
curl -G 'https://socialtap.dev/v1/fandom/wiki_page_comments' \
  --data-urlencode 'url=https://fortnite.fandom.com/wiki/Peely' \
  -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.wikiPageComments.list({ url: "https://fortnite.fandom.com/wiki/Peely" });
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_page_comments.list(url="https://fortnite.fandom.com/wiki/Peely")
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.WikiPageComments.List(ctx, socialtap.FandomWikiPageCommentsParams{URL: "https://fortnite.fandom.com/wiki/Peely"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": [
    {
      "approximate_fields": [],
      "author": {
        "avatar_url": "https://static.wikia.nocookie.net/7b2a0cfe-b185-4e80-9732-3023857e5e16",
        "display_name": null,
        "id": "59791040",
        "is_verified": null,
        "url": "https://fortnite.fandom.com/wiki/User:Ggormornoandultimatepwnerfularecool",
        "username": "Ggormornoandultimatepwnerfularecool"
      },
      "edited_at": null,
      "id": "4400000000000170365",
      "is_by_post_author": null,
      "is_edited": false,
      "is_liked_by_author": null,
      "is_pinned": null,
      "metrics": {
        "like_count": 0,
        "reply_count": 0
      },
      "parent_id": null,
      "platform": "fandom",
      "platform_specific": {
        "fandom": {
          "links": [],
          "media": [],
          "mentions": [],
          "position": 1,
          "thread_id": "4400000000000170365"
        }
      },
      "post_id": "fortnite:11594",
      "published_at": "2026-08-17T04:24:29Z",
      "text": "Bananan.\nBananan.\nBananan.",
      "unknown_fields": [],
      "url": "https://fortnite.fandom.com/wiki/Peely?commentId=4400000000000170365"
    }
  ],
  "page": {
    "has_more": true,
    "next_cursor": "c1.EXAMPLE_CURSOR",
    "next_cursor_expires_at": "2026-10-26T12:00:00Z",
    "end_reason": null
  },
  "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": "wiki_page",
      "id": "fortnite:11594",
      "url": "https://fortnite.fandom.com/wiki/Peely"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

The first item of the page; long arrays and strings are shortened for display.

## Query parameters

| Name | Type | Description | Example |
| --- | --- | --- | --- |
| `url` required | `string`<br>max 2,048 chars | A Fandom wiki page's link (fortnite.fandom.com/wiki/Peely), on any language edition (fortnite.fandom.com/de/wiki/…) or legacy wikia.com host, a comment's link (…/wiki/Peely?commentId=…), its index.php?title= or ?curid= link, or its id (fortnite:11594). | `https://blox-fruits.fandom.com/wiki/Swords` |
| `lang` optional | `string`<br>bcp47 | Preferred language: a BCP-47 tag such as en or pt-BR (case-insensitive; _ is read as -). | `en` |
| `since` optional | `string`<br>date-time | Only items at or after this time: RFC 3339 (2026-10-01T12:00:00Z) or a date (2026-10-01, midnight UTC). A newest-first list stops there, so older pages aren't fetched or charged; a list in another order filters each page. | `2026-10-01` |
| `until` optional | `string`<br>date-time | Only items before this time (exclusive): RFC 3339 or a date (midnight UTC). | `2026-10-08` |
| `limit` optional | `integer`<br>min 1<br>max 200 | Items per page, up to the endpoint's page size (the default; larger values are reduced to it). Every page costs the same, so a smaller limit makes a walk cost more. | `200` |
| `cursor` optional | `string` | page.next_cursor from the previous response, with the other parameters unchanged. Omit for the first page. | — |

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, page, meta}`: `data` is an array of [comment](https://socialtap.dev/resources/comment/index.md) objects, `page` says how to get the next page. 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 comment ID (string), exactly as the platform writes it, its prefix included. |
| `data[].post_id` | `string` | ID of the post commented on (equals post.id). |
| `data[].parent_id` | `string` or `null` | ID of the comment this replies to; null for top-level comments. |
| `data[].url` | `string` (uri) or `null` | Permalink, when the platform has one. |
| `data[].text` | `string` | Comment body as plain text. |
| `data[].author` | `object` | The commenting account. For a deleted account, id and username are null and display_name is the platform's label. |
| `data[].author.id` | `string` or `null` | Platform-native account ID; null when only the handle is known. |
| `data[].author.username` | `string` or `null` | Handle without the @; null when the account has none. |
| `data[].author.display_name` | `string` or `null` | Display name shown on the profile. |
| `data[].author.url` | `string` (uri) or `null` | Canonical profile URL. |
| `data[].author.avatar_url` | `string` (uri) or `null` | Profile picture URL. Platform CDN URLs can expire within hours. |
| `data[].author.is_verified` | `boolean` or `null` | Platform verification badge; null where the platform has no badge. |
| `data[].published_at` | `string` (date-time) or `null` | When the comment was posted, RFC 3339 UTC. From a relative time ("3 weeks ago"), the latest time it allows (the fetch time minus that amount), listed in approximate_fields. |
| `data[].edited_at` | `string` (date-time) or `null` | When the comment was last edited, RFC 3339 UTC; null when never edited or when the platform marks edits without a time (see is_edited). |
| `data[].is_edited` | `boolean` or `null` | The comment was edited after posting (the platform's edited mark); null when the platform does not say. |
| `data[].is_pinned` | `boolean` or `null` | Pinned by the post's author. |
| `data[].is_liked_by_author` | `boolean` or `null` | Liked or hearted by the post's author. |
| `data[].is_by_post_author` | `boolean` or `null` | Written by the post's author (the creator's own comment, marked as such by the platform). |
| `data[].metrics` | `object` | Counts at fetch time; null = not shown, 0 = zero. |
| `data[].metrics.like_count` | `integer` or `null` | Likes or upvotes; never negative. |
| `data[].metrics.reply_count` | `integer` or `null` | Direct replies. |
| `data[].platform_specific.fandom` | `object` or `null` | Fandom's own comment fields. |
| `data[].platform_specific.fandom.thread_id` | `string` or `null` | The Discussions thread the comment is in: the thread a reply answers, or the thread an article comment starts with its replies. |
| `data[].platform_specific.fandom.position` | `integer` or `null` | The comment's place in its thread, the thread's first post being 1; null where Fandom does not say. |
| `data[].platform_specific.fandom.media` | `object[]` | The images the comment carries; \[\] when none. |
| `data[].platform_specific.fandom.media[].type` | `string` | Kind of file. New values may be added; treat unknown values as other.<br>One of `image`, `video`, `audio`, `gif` |
| `data[].platform_specific.fandom.media[].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. |
| `data[].platform_specific.fandom.media[].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. |
| `data[].platform_specific.fandom.media[].thumbnail_url` | `string` (uri) or `null` | Poster or preview image URL. |
| `data[].platform_specific.fandom.media[].width` | `integer` or `null` | Width in pixels. |
| `data[].platform_specific.fandom.media[].height` | `integer` or `null` | Height in pixels. |
| `data[].platform_specific.fandom.media[].duration_ms` | `integer` or `null` | Duration in milliseconds (video and audio only). |
| `data[].platform_specific.fandom.media[].alt_text` | `string` or `null` | Accessibility text provided by the author or platform. |
| `data[].platform_specific.fandom.mentions` | `string[]` | The accounts the comment mentions, by username; \[\] when none. |
| `data[].platform_specific.fandom.links` | `string[]` | The links in the comment, in text order, each once; \[\] when none. |
| `data[].approximate_fields` | `string[]` | JSON paths of values rounded by the platform or parsed from display text. A list path (external_links) means the list may be incomplete. \[\] 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; [`invalid_cursor`](https://socialtap.dev/docs/errors/index.md#invalid_cursor) (400).

## Pagination

Send the same request with `cursor` set to `page.next_cursor` until `page.has_more` is `false`. [Pagination](https://socialtap.dev/docs/pagination/index.md)

- **Order**: Newest comments first, each followed by its replies, oldest first
- **Page size**: Up to 200 comments (the default; `limit` lowers it)
- **Cursor lifetime**: 24 hours

## Pricing

**1 credit** per successful page ($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_page_comments` · operationId `fandom.wiki_page_comments.list`

---

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