List random Wikipedia pages
List random pages in a Wikipedia edition and namespace.
Headers
Get your API keyAPI key (`sfk_...`)
Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.
Namespace id, e.g. `0` for articles or `14` for categories.
≥ -2 · ≤ 999
Pages to return, 1 to 500. Default: 10.
≥ 1 · ≤ 500
Endpoint-specific response payload.
Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.
one of: found, not_found
Edition code.
Namespace filter.
Random pages in the requested namespace.
Page id.
Namespace id.
Title.
Whether the answer is a valid empty result rather than missing.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/wikipedia/random?limit=5" \
-H "x-api-key: YOUR_API_KEY"Responses
List random Wikipedia pages