Wikipedia hub

Wikipedia Backlinks API

Find the pages that link to or transclude a page, with namespace and redirect details.

GET /v1/wikipedia/pages/{title}/backlinks

1 credit Failed requests are free

About this endpoint

GET /v1/wikipedia/pages/{title}/backlinks?lang=en returns data.backlinks, one row per page that links to the title. Each row has pageId, ns, title and redirect. Set type=transclusions to list pages that transclude the title instead of pages that link to it.

namespace limits the result to one namespace. limit accepts 1 to 500 rows and cursor continues with data.page.nextCursor. A title that exists but has no backlinks is found with empty: true; a title that does not exist is not_found.

Wikipedia Backlinks API FAQ

What is the difference between links and transclusions?

type=links, the default, returns pages with a link to the title. type=transclusions returns pages that include the title through a template. Both use the same row shape.

How do I restrict the result to articles?

Set namespace=0. Use namespace=14 for categories or another namespace id for other page kinds. The filter is applied before paging, so nextCursor only walks the chosen namespace.

Why is the list empty when the page exists?

A page can exist with no backlinks yet, especially a new page. That answer is found with empty set to true. not_found is reserved for a title that does not exist on the edition.

How is backlink paging billed?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.