# Gamepedia — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search gaming wikis across Fandom to find guides, maps, strategies, and game information, then retrieve detailed page content in multiple formats along with images and metadata. Discover trending articles, browse categories, and navigate game-specific knowledge bases to get the gaming data you need.

**Category:** Entertainment | **Website:** [gamepedia.com/](https://gamepedia.com/) | **Docs:** [parse.bot/marketplace/ba8ae765-d7b7-446f-b5dc-bd765f1fa1ab/gamepedia-com-api](https://parse.bot/marketplace/ba8ae765-d7b7-446f-b5dc-bd765f1fa1ab/gamepedia-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### Get backlinks

Find all pages that link to a given page. Returns page ID, namespace, and title for each linking page. Supports pagination via blcontinue token.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `continue` | string | No | Continuation token from previous response's blcontinue field |
| `limit` | integer | No | Max results to return |
| `page` | string | Yes | Target page title |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_backlinks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"continue":"<string>","limit":"<integer>","page":"<string>","subdomain":"<string>"}'
```

### Get image info

Get direct download URLs and metadata for a specific wiki image file. Returns URL, size in bytes, dimensions, MIME type, upload timestamp, and uploading user.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `filename` | string | Yes | Image filename (with or without 'File:' prefix, e.g., 'File:Diamond.png' or 'Diamond.png') |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_image_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"<string>","subdomain":"<string>"}'
```

### Get page images

Retrieve the list of all image filenames embedded in a wiki page. Returns filenames only — use get_image_info to get download URLs and metadata for a specific image.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_page_images \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get page links

Retrieve all internal wiki links from a page. Each link includes its namespace and target title.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_page_links \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get recent changes

Fetch recent wiki edits for tracking updates. Returns edit type, title, page ID, user, timestamp, revision IDs, and edit comment. Supports pagination via rccontinue token.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `continue` | string | No | Continuation token from previous response's rccontinue field |
| `limit` | integer | No | Max changes to return |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_recent_changes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"continue":"<string>","limit":"<integer>","subdomain":"<string>"}'
```

### Get top articles

Get the most-viewed/trending articles on a wiki. Returns article ID, title, URL path, and namespace for each top article.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max articles to return |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_top_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","subdomain":"<string>"}'
```

### Get wiki page categories

Get all categories a wiki page belongs to. Returns an array of category objects with namespace and title.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get wiki page html

Retrieve a wiki page's rendered HTML content along with its sections, images, links, and categories. The text field contains the full rendered HTML of the page. Heavy response — use get_wiki_page_sections or get_page_links for lighter alternatives.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title to retrieve (e.g., 'Diamond', 'Creeper') |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_html \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get wiki page metadata

Retrieve page metadata including thumbnail image, canonical URL, page properties (infobox data, description), and content model. Returns structured page properties including the page's infobox data as JSON.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title to retrieve metadata for |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_metadata \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get wiki page sections

Retrieve the section structure (Table of Contents) of a wiki article. Each section includes its toclevel, heading level, line text, number, and anchor. Lightweight alternative to get_wiki_page_html for understanding page structure.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_sections \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get wiki page summary

Get article summaries, abstracts, and thumbnail info for one or more pages by their numeric IDs. Returns an object keyed by article ID with title, url, abstract text, and thumbnail URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ids` | string | Yes | Comma-separated article IDs (e.g., '31051' or '31051,628') |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids":"<string>","subdomain":"<string>"}'
```

### Get wiki page wikitext

Retrieve the raw wikitext source of a wiki page. Useful for extracting infoboxes and structured data that is not easily parsed from rendered HTML. Returns the latest revision's content, user, and timestamp.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title to retrieve |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_page_wikitext \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Get wiki site info

Retrieve general site information, namespaces, and statistics for a wiki. Returns sitename, MediaWiki generator version, server URL, namespace definitions, and aggregate statistics (pages, articles, edits, images, users).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/get_wiki_site_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subdomain":"<string>"}'
```

### List all categories

Enumerate all categories available on a wiki. Supports pagination via accontinue token and prefix filtering to narrow results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `continue` | string | No | Continuation token from previous response's accontinue field |
| `limit` | integer | No | Max results to return |
| `prefix` | string | No | Filter categories by prefix string |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/list_all_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"continue":"<string>","limit":"<integer>","prefix":"<string>","subdomain":"<string>"}'
```

### List category members

List all wiki pages in a specific category. Returns page IDs, namespaces, and titles. Supports pagination via the cmcontinue token from a previous response.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category name (with or without 'Category:' prefix) |
| `continue` | string | No | Continuation token from previous response's cmcontinue field |
| `limit` | integer | No | Max results to return |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/list_category_members \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","continue":"<string>","limit":"<integer>","subdomain":"<string>"}'
```

### List pages by namespace

List all pages in a specific namespace (e.g., Main, Talk, Help, Template). Supports pagination via the apcontinue token. Use namespace IDs: 0=Main, 1=Talk, 2=User, 6=File, 10=Template, 14=Category.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `continue` | string | No | Continuation token from previous response's apcontinue field |
| `limit` | integer | No | Max results to return |
| `namespace` | string | No | Namespace ID (0=Main, 1=Talk, 2=User, 6=File, 10=Template, 14=Category) |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/list_pages_by_namespace \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"continue":"<string>","limit":"<integer>","namespace":"<string>","subdomain":"<string>"}'
```

### Opensearch wiki

Autocomplete/suggest page titles on a Fandom wiki. Returns a positional array: [query_string, titles_array, descriptions_array, urls_array]. Useful for building search-as-you-type interfaces.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max suggestions to return |
| `query` | string | Yes | Search prefix for autocomplete |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/opensearch_wiki \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>","subdomain":"<string>"}'
```

### Resolve redirect

Resolve page redirects to their canonical titles. Returns the final page info and any redirect chain showing from/to mappings. If the page is not a redirect, returns its info directly without a redirects array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | Yes | Page title that may be a redirect |
| `subdomain` | string | No | Wiki subdomain |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/resolve_redirect \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","subdomain":"<string>"}'
```

### Search wiki

Full-text search over a Fandom wiki's pages. Returns page titles, IDs, sizes, timestamps, and text snippets. Paginates via integer offset (sroffset from previous response). Each result includes namespace, title, page ID, byte size, snippet, and last-edit timestamp.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max results to return |
| `namespace` | string | No | Namespace ID to search in (e.g., '0' for Main, '14' for Category) |
| `offset` | integer | No | Offset for pagination (from sroffset in previous response) |
| `query` | string | Yes | Search query string |
| `subdomain` | string | No | Wiki subdomain (e.g., 'minecraft', 'zelda', 'leagueoflegends') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-gamepedia-com-api-ba8ae765/search_wiki \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","namespace":"<string>","offset":"<integer>","query":"<string>","subdomain":"<string>"}'
```
