API:Exturlusage
Jump to navigation
Jump to search
| This page is part of the MediaWiki Action API documentation. |
| Please help improve this technical documentation! Take our MediaWiki Action API Technical Documentation User Feedback Survey before 6 January – Note: The survey uses Google Forms. See Privacy Statement – Thanks! |
| Exturlusage | ||
|---|---|---|
This module can be used as a Generator. |
||
| Prefix | eu | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Get a list of pages that link to a certain URL, à la Special:Linksearch
Parameters[edit]
euprop: Which properties to get. (Default:ids|title|url)ids: Page ID of the linking page.title: Title of the linking page.url: URL being linked to.
eucontinue: Used for continuing a previous request.euprotocol: Protocol of the URL. Possible values: listed in$wgUrlProtocols. (Default:httpif euquery is set, otherwise all protocols. Protocol-relative (//) returned in http and https.)euquery: The URL to search for, without the protocol.*can be used as a wildcard. If omitted, all external links will be listed, filtered byeuprotocol, if provided. MediaWiki versions 1.11 and 1.12 abort ifeuqueryis omitted.eunamespace: Only list links from pages in these namespaces.eulimit: Maximum amount of pages to list. No more than 500 (5000 for bots) allowed. (Default: 10)euexpandurl: Expand protocol-relative URLs with the canonical protocol. 1.21+
Example[edit]
Get a list of pages linking to slashdot.org
| Result |
|---|
<?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>
|