# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/wikia/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/wikia/get-category \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/wikia/get-guide \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/wikia/get-page \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/wikia/search \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>","wiki":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.