# Wikipedia on Onekey > 22 endpoints for Wikipedia (22 stable, 0 beta), 1 to 5 credits each. Category: Knowledge & reference. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/wikipedia Reference (Markdown): https://onekey.dev/docs/api/wikipedia.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 22 mapped Wikipedia endpoints return each: - `content.title` (string): 20 - `content.text` (string): 13 - `content.id` (string): 11 - `content.url` (URL): 7 - `content.year` (integer): 4 - `content.updatedAt` (ISO 8601 date): 3 - `engagement.views` (integer): 3 - `media.thumbnailUrl` (URL): 3 - `author.username` (string): 1 - `content.createdAt` (ISO 8601 date): 1 - `content.language` (string): 1 - `content.type` (string): 1 - `place.lat` (number): 1 - `place.lon` (number): 1 - plus 8 platform-specific fields under `ext.` ## Endpoints ### wikipedia.article Wikipedia article summary (English). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wikipedia/article?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Article title, e.g. Alan Turing - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.updatedAt`, `media.thumbnailUrl`, `ext.contentDescription` - Reference: https://onekey.dev/docs/api/wikipedia/article.md ### wikipedia.categories Categories a Wikipedia page belongs to (first 50). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/categories?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.title` - Reference: https://onekey.dev/docs/api/wikipedia/categories.md ### wikipedia.category_members Pages in a Wikipedia category (first 50). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/category_members?category=English%20computer%20scientists` with header `x-api-key: YOUR_API_KEY` - Parameters: - `category` (string, required): Category name without the Category: prefix - Fields returned: `content.id`, `content.title` - Reference: https://onekey.dev/docs/api/wikipedia/category_members.md ### wikipedia.extract Plain-text intro extract of a Wikipedia article (follows redirects). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wikipedia/extract?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.id`, `content.title`, `content.text` - Reference: https://onekey.dev/docs/api/wikipedia/extract.md ### wikipedia.featured Wikipedia featured article of the day (today's featured article for a date). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wikipedia/featured?year=2026&month=9&day=01` with header `x-api-key: YOUR_API_KEY` - Parameters: - `year` (string, required): 4-digit year - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `media.thumbnailUrl`, `ext.contentDescription` - Reference: https://onekey.dev/docs/api/wikipedia/featured.md ### wikipedia.intro_html HTML intro of a Wikipedia article plus its plain-text form. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wikipedia/intro_html?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.id`, `content.title`, `content.text`, `ext.html` - Reference: https://onekey.dev/docs/api/wikipedia/intro_html.md ### wikipedia.langlinks Equivalent article titles in other languages. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/langlinks?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.language`, `content.title` - Reference: https://onekey.dev/docs/api/wikipedia/langlinks.md ### wikipedia.links Outgoing article links of a Wikipedia page (first 50). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/links?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.title` - Reference: https://onekey.dev/docs/api/wikipedia/links.md ### wikipedia.media_list Media files used on a Wikipedia page. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/media_list?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.title`, `content.type` - Reference: https://onekey.dev/docs/api/wikipedia/media_list.md ### wikipedia.most_read Most-read Wikipedia articles for a day (Wikimedia pageviews top). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/most_read?year=2026&month=9&day=01` with header `x-api-key: YOUR_API_KEY` - Parameters: - `year` (string, required): 4-digit year - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.title`, `engagement.views`, `ext.rank` - Reference: https://onekey.dev/docs/api/wikipedia/most_read.md ### wikipedia.nearby Wikipedia articles near a latitude/longitude (10 km). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/nearby?lat=51.5074&lon=-0.1278` with header `x-api-key: YOUR_API_KEY` - Parameters: - `lat` (string, required): Latitude - `lon` (string, required): Longitude - Fields returned: `content.id`, `content.title`, `place.lat`, `place.lon`, `ext.distanceMeters` - Reference: https://onekey.dev/docs/api/wikipedia/nearby.md ### wikipedia.on_this_day Wikipedia 'On this day' historical events for a month/day. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/on_this_day?month=9&day=29` with header `x-api-key: YOUR_API_KEY` - Parameters: - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.text`, `content.year`, `content.title`, `content.url` - Reference: https://onekey.dev/docs/api/wikipedia/on_this_day.md ### wikipedia.on_this_day_births Wikipedia 'On this day' births for a month/day. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/on_this_day_births?month=9&day=29` with header `x-api-key: YOUR_API_KEY` - Parameters: - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.text`, `content.year`, `content.title`, `content.url` - Reference: https://onekey.dev/docs/api/wikipedia/on_this_day_births.md ### wikipedia.on_this_day_deaths Wikipedia 'On this day' deaths for a month/day. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/on_this_day_deaths?month=9&day=29` with header `x-api-key: YOUR_API_KEY` - Parameters: - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.text`, `content.year`, `content.title`, `content.url` - Reference: https://onekey.dev/docs/api/wikipedia/on_this_day_deaths.md ### wikipedia.on_this_day_holidays Wikipedia 'On this day' holidays for a month/day. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/on_this_day_holidays?month=9&day=29` with header `x-api-key: YOUR_API_KEY` - Parameters: - `month` (string, required): 2-digit month - `day` (string, required): 2-digit day - Fields returned: `content.text`, `content.year`, `content.title`, `content.url` - Reference: https://onekey.dev/docs/api/wikipedia/on_this_day_holidays.md ### wikipedia.pageviews Daily pageviews for one Wikipedia article between two dates (YYYYMMDD). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/pageviews?title=Alan%20Turing&start=20260901&end=20260905` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - `start` (string, required): Start date YYYYMMDD - `end` (string, required): End date YYYYMMDD - Fields returned: `content.title`, `engagement.views`, `ext.date` - Reference: https://onekey.dev/docs/api/wikipedia/pageviews.md ### wikipedia.pageviews_aggregate Daily aggregate English Wikipedia pageviews between two dates (YYYYMMDD). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/pageviews_aggregate?start=20260901&end=20260905` with header `x-api-key: YOUR_API_KEY` - Parameters: - `start` (string, required): Start date YYYYMMDD - `end` (string, required): End date YYYYMMDD - Fields returned: `engagement.views`, `ext.project`, `ext.date` - Reference: https://onekey.dev/docs/api/wikipedia/pageviews_aggregate.md ### wikipedia.random A random Wikipedia article summary. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/wikipedia/random` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.updatedAt`, `media.thumbnailUrl`, `ext.contentDescription` - Reference: https://onekey.dev/docs/api/wikipedia/random.md ### wikipedia.related Articles related to a Wikipedia article (morelike search). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/related?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.id`, `content.title`, `content.text`, `content.updatedAt` - Reference: https://onekey.dev/docs/api/wikipedia/related.md ### wikipedia.revisions Ten most recent revisions of a Wikipedia page. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/revisions?title=Alan%20Turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `title` (string, required): Page title - Fields returned: `content.id`, `content.createdAt`, `author.username`, `content.text` - Reference: https://onekey.dev/docs/api/wikipedia/revisions.md ### wikipedia.search Search Wikipedia articles (English). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/search?q=turing` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `content.id`, `content.title`, `content.text`, `ext.pageid` - Reference: https://onekey.dev/docs/api/wikipedia/search.md ### wikipedia.suggest Title autocomplete suggestions for a search prefix. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/wikipedia/suggest?q=alan%20tur` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `content.id`, `content.title`, `content.text`, `ext.key` - Reference: https://onekey.dev/docs/api/wikipedia/suggest.md ## Sample request ```bash curl "https://api.onekey.dev/v1/wikipedia/article?title=Alan%20Turing" \ -H "x-api-key: YOUR_API_KEY" ```