title: Get random page

API: wikipedia.org:wikipedia-api
Endpoint: /api/rest_v1/page/random/title
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 13961ms

Description

Returns a JSON object containing a randomly selected page title, which can be used to fetch the full article content via other endpoints. Useful for discovering random articles, implementing 'random article' features, or testing content retrieval.

From spec: Returns a redirect to a random Wikipedia page.

Usage Tips

- Rate limit: Follow Wikimedia's User-Agent policy (identify your app in requests) - Returns a 302 redirect to the random page by default; use the /title endpoint for JSON response - No authentication required for read operations - Consider caching results to reduce load on Wikimedia servers

Examples (1)

Get a random Wikipedia article title doc_extracted

Demonstrates fetching a random Wikipedia article title as JSON without following redirects.

curl 'https://en.wikipedia.org/api/rest_v1/page/random/title'
import requests

resp = requests.get("https://en.wikipedia.org/api/rest_v1/page/random/title")
data = resp.json()
import zingu_apis

api = zingu_apis.api("wikipedia")
result = api.fetch("api/rest_v1/page/random/title")

for item in result:
    print(item)
const resp = await fetch("https://en.wikipedia.org/api/rest_v1/page/random/title");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 02:42:18.082378 200 13961ms
2026-04-15 00:02:16.583972 200 630ms
2026-04-14 03:50:34.192801 200 1134ms
2026-04-12 12:38:38.755133 200 516ms
2026-04-10 00:59:34.760152 200 402ms
2026-04-09 00:28:24.098733 200 1653ms