Wikipedia

List Wikipedia page backlinks

List the pages that link to or transclude a Wikipedia page.

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

API key (`sfk_...`)

Parameters
6
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`.

namespaceintegeroptionalquery

Namespace id, e.g. `0` for articles or `14` for categories.

≥ -2 · ≤ 999

typestringoptionalquery

`links` for pages linking here, `transclusions` for pages transcluding it.

one of: links, transclusions

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
19

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 relation the rows are.

one of: links, transclusions

datanamespace
integernullable

Namespace filter.

Pages that link to or transclude the title.

databacklinks[]pageId
integernullable

Page id.

databacklinks[]ns
integernullable

Namespace id.

databacklinks[]title
string

Title.

databacklinks[]redirect
booleannullable

Whether the page is a redirect.

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/backlinks" \
  -H "x-api-key: YOUR_API_KEY"

Responses

List Wikipedia page backlinks