Wikipedia

List Wikipedia page links

List a Wikipedia page's internal links, external URLs, templates, categories or interwiki links.

GET/v1/wikipedia/pages/{title}/links
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
5
titlestringrequiredpath

Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.

langstringoptionalquery

Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.

typestringoptionalquery

Which links: `internal`, `external` URLs, `templates`, `categories` or `interwiki`. Default: `internal`.

one of: internal, external, templates, categories, interwiki

limitintegeroptionalquery

Rows per page, 1 to 500. Default: 50.

≥ 1 · ≤ 500

cursorstringoptionalquery

Cursor from `page.nextCursor` of the previous response. It only works with the same filters.

min 1 chars · max 2048 chars

Response fields
22

Endpoint-specific response payload.

datalookupStatus
string

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

datalang
string

Edition code.

datatitle
string

Title.

datatype
string

Which links the rows are.

one of: internal, external, templates, categories, interwiki

Links of the requested kind.

datalinks[]ns
integernullable

Namespace id.

datalinks[]title
stringnullable

Linked title.

datalinks[]exists
booleannullable

Whether the target page exists.

datalinks[]url
stringnullable

External URL.

datalinks[]prefix
stringnullable

Interwiki prefix.

datalinks[]sortKeyPrefix
stringnullable

Human-readable category sort key.

datalinks[]timestamp
stringnullable

When the page joined the category.

datalinks[]hidden
booleannullable

Whether the category is hidden.

Pagination state. `nextCursor` is null on the last page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

dataempty
boolean

Whether the answer is a valid empty result rather than missing.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/wikipedia/pages/Albert%20Einstein/links" \
  -H "x-api-key: YOUR_API_KEY"

Responses

List Wikipedia page links