API:Backlinks

Lists pages that link to a given page, similar to Special:Whatlinkshere. Ordered by linking page title.

Parameters

 * : List pages linking to this title. The title need not exist
 * : Only list pages in these namespaces
 * : How to filter redirects
 * : List all pages regardless of their redirect flag (default)
 * : Only list redirects
 * : Don't list redirects
 * : Maximum amount of pages to list (10 by default). Maximum limit is halved if  is set
 * : If set, pages linking to  through a redirect will also be listed. See below for more detailed information
 * : Used to continue a previous request

Links through redirects
When the  parameter is set, this module behaves slightly differently. applies to both levels separately: if e.g., at most 10 first-level pages (pages that link to  ) and 10 second-level pages (pages that link to   through a redirect) will be listed. Continuing queries also works differently, as displayed in the following example.

When continuing this request, we see that there are more pages linking to Einstein, and that some of the other first-level pages are listed again. If we continue this query again, the same first-level pages will be listed in the next response, as well. To progress beyond Energy, we have to query-continue again and again until we've had all links to Einstein (or increase, of course).

Error Codes

 * code: blbad_title_count
 * info: The backlinks query requires one title to start
 * This happens when you use  instead of   (this usage is deprecated) and specify multiple titles
 * code: bl_badcontinue
 * info: Invalid continue param. You should pass the original value returned by the previous query