API:Exturlusage
From MediaWiki.org
| This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
| Exturlusage | ||
|---|---|---|
| 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 | edit source]
euprop: Which properties to get (Default:ids|title|url)ids: Page ID of the linking pagetitle: Title of the linking pageurl: URL being linked to
euoffset: Used for continuing a previous requesteuprotocol: Protocol of the URL. Possible values: listed in$wgUrlProtocols. (Default:http)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 namespaceseulimit: 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 | edit source]
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>
|