# Fandom Wiki Search API

> Search any Fandom wiki (games, TV, film, anime) and read a page's wikitext and categories

- Vendor: `fandomwikisearchapi` · version 1.0 · category Entertainment · tags fandom api, wiki api, game wiki api, fandom wiki search api, wikitext api, fan wiki data api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/fandomwikisearchapi
- This document: https://apiclay.com/docs/fandomwikisearchapi.md
- OpenAPI 3.1: https://apiclay.com/api/fandomwikisearchapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `fandomwikisearchapi`
- Updated: 2026-11-18

## About

## Fandom Wiki Search API

Search the pages of any Fandom wiki (game, TV, film, anime and book wikis at `.fandom.com`) and read a page's wikitext and categories, through each wiki's MediaWiki API.

Data comes from **fandom.com** (https://www.fandom.com). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/search?wiki=minecraft&amp;srsearch=creeper`, then `/page?wiki=minecraft&amp;page=Creeper`.

### Routes

#### GET `/search` - Search a wiki
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| wiki | path | string | yes | Wiki subdomain, e.g. `minecraft`, `harrypotter`. |
| srsearch | query | string | yes | Search words. |
| srlimit | query | number | no | Max results. |
| sroffset | query | number | no | Offset. |

Returns: `query.search[]` with `title`, `pageid`, `size`, `wordcount`, `timestamp`.

#### GET `/page` - Page wikitext
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| wiki | path | string | yes | Wiki subdomain. |
| page | query | string | yes | Page title, e.g. `Creeper`. |

Returns: `parse` with `title`, `pageid`, `wikitext`, `categories`.

### Caveats

- Fandom wiki text is CC BY-SA; credit the wiki.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by fandom.com.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /search — Search a wiki
- Gateway: `GET https://api.apiclay.com/v1/api/fandomwikisearchapi/search`
- Public query params: `srsearch` (string, required), `srlimit` (number), `sroffset` (number), `wiki` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /page — Page wikitext
- Gateway: `GET https://api.apiclay.com/v1/api/fandomwikisearchapi/page`
- Public query params: `page` (string, required), `wiki` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/fandomwikisearchapi/search?srsearch=<srsearch>&wiki=<wiki>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
