# Wikia (wikia.com) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://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.

> Extract structured data from Fandom (formerly Wikia) gaming wikis. Search pages, retrieve full page content, list category members, and convert wiki pages into organized guides with infoboxes, section breakdowns, and clean text.

**Category:** Entertainment | **Website:** [wikia.com/](https://wikia.com/) | **Docs:** [parse.bot/marketplace/0e0ecbd5-6cb8-4c57-abc2-f9474f9bb90a/wikia-com-api](https://parse.bot/marketplace/0e0ecbd5-6cb8-4c57-abc2-f9474f9bb90a/wikia-com-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-wikia-com-api-0e0ecbd5/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category

List all pages belonging to a specific category in a Fandom wiki. Returns up to 100 member pages with their page IDs and titles. The 'Category:' prefix is added automatically if not provided. Use search or get_page to discover valid category names from a page's categories array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category name (e.g., 'Bosses', 'Quests'). The 'Category:' prefix is added automatically if omitted. |
| `wiki` | string | No | The wiki slug. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wikia-com-api-0e0ecbd5/get_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","wiki":"<string>"}'
```

### get_guide

Convert a wiki page into a structured gaming guide organized by section headers. Returns infobox data, a summary from the first paragraph, and sections as an object mapping header names to arrays of content items (each typed as text, list, or table). Useful for building walkthroughs, character profiles, or strategy guides from raw wiki content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `title` | string | Yes | Exact page title to convert into a guide (e.g., 'White Mask Varré'). |
| `wiki` | string | No | The wiki slug. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wikia-com-api-0e0ecbd5/get_guide \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"<string>","wiki":"<string>"}'
```

### get_page

Retrieve full content for a wiki page by its exact title. Returns the page's infobox key-value pairs, section headings with levels, category memberships, and full clean text with HTML stripped. The title must match exactly (case-sensitive, including punctuation); use search to discover valid titles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `title` | string | Yes | Exact page title to retrieve (e.g., 'Malenia, Blade of Miquella'). Case-sensitive. |
| `wiki` | string | No | The wiki slug. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wikia-com-api-0e0ecbd5/get_page \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"<string>","wiki":"<string>"}'
```

### search

Full-text search across a Fandom wiki's pages. Returns matching page titles with metadata (page ID, byte size, word count, last-modified timestamp). Results are server-ranked by relevance. Each result carries enough metadata to decide whether to fetch the full page via get_page or get_guide.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of search results to return (1-50). |
| `query` | string | Yes | Search keyword or phrase to match against page titles and content. |
| `wiki` | string | No | The wiki slug identifying which Fandom wiki to search (e.g., 'eldenring', 'cyberpunk2077', 'zelda'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wikia-com-api-0e0ecbd5/search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>","wiki":"<string>"}'
```
