Get a list of pages that link to a certain URL, à la Special:Linksearch
Parameters [edit]
euquery: The URL to search for, without the protocol. * can be used as a wildcard. If you omit euquery (not just leave it empty), all external links will be listed, and euprotocol will be ignored
euprotocol: Protocol of the URL
- The options for this parameter vary per wiki. By default, the options are
http (default), https, ftp, irc, gopher, telnet, nntp, worldwind, mailto, news
eunamespace: Only list links from pages in these namespaces
eulimit: Maximum amount of pages to list (10 by default, can be no larger than 500)
euprop: Which properties to get
ids: Page ID of the linking page
title: Title of the linking page
url: URL being linked to
euoffset: Used for continuing a previous request
Example [edit]
Get a list of pages linking to slashdot.org
| Result |
| The following content has been placed in a collapsed box for improved usability. |
<?xml version="1.0" encoding="utf-8"?>
<api>
<query-continue>
<exturlusage euoffset="11" />
</query-continue>
<query>
<exturlusage>
<eu pageid="533948" ns="2" title="User:Peter Ellis" url="http://slashdot.org" />
<eu pageid="3274" ns="2" title="User:Alexdb" url="http://slashdot.org/" />
<eu pageid="36471" ns="2" title="User:Joao" url="http://slashdot.org/" />
<eu pageid="246276" ns="2" title="User:Pablo Mayrgundter" url="http://slashdot.org/" />
<eu pageid="352958" ns="2" title="User:Yckoh" url="http://slashdot.org" />
<eu pageid="417592" ns="2" title="User:Geekboy" url="http://slashdot.org" />
<eu pageid="439013" ns="4" title="Wikipedia:Village pump/January 2004 archive 5" url="http://slashdot.org" />
<eu pageid="512464" ns="2" title="User:Vaceituno" url="http://slashdot.org" />
<eu pageid="527793" ns="4" title="Wikipedia:New user log/archive1" url="http://slashdot.org" />
<eu pageid="592017" ns="5" title="Wikipedia talk:Announcements/Archive 1" url="http://slashdot.org/" />
</exturlusage>
</query>
</api>
|
| The above content has been placed in a collapsed box for improved usability. |
imageusage / iu [edit]
List of pages that include a given image. Ordered by page title.
Parameters [edit]
iutitle: List pages using this image. The image need not exist
iunamespace: Only list pages in these namespaces
iufilterredir: How to filter redirects
all: List all pages regardless of their redirect flag (default)
redirects: Only list redirects
nonredirects: Don't list redirects
iulimit: Maximum amount of pages to list (10 by default)
iuredirect: If set, pages linking to iutitle through a redirect will also be listed. See the documentation for list=backlinks for more detailed information
iucontinue: Used to continue a previous request
Example [edit]
Find all pages that use Image:Albert Einstein Head.jpg
| Result |
| The following content has been placed in a collapsed box for improved usability. |
<?xml version="1.0" encoding="utf-8"?>
<api>
<query-continue>
<imageusage iucontinue="6|Albert_Einstein_Head.jpg|45864" />
</query-continue>
<query>
<imageusage>
<iu pageid="736" ns="0" title="Albert Einstein" />
<iu pageid="2201" ns="0" title="Aage Niels Bohr" />
<iu pageid="12432" ns="0" title="Genius" />
<iu pageid="14400" ns="0" title="History of science" />
<iu pageid="34523" ns="0" title="Zhu Shijie" />
</imageusage>
</query>
</api>
|
| The above content has been placed in a collapsed box for improved usability. |
Error Codes [edit]
- code: iubad_title_count
- info: The imageusage query requires one title to start
- This happens when you use
titles instead of iutitle (this usage is deprecated) and specify multiple titles
- code: iu_badcontinue
- info: Invalid continue param. You should pass the original value returned by the previous query
- code: iubad_image_title
- info: The title for imageusage query must be an image