API:Links
| Links | ||
|---|---|---|
| Returns all links from the given page(s). This module can be used as a Generator. |
||
| Prefix | pl | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Gets a list of all links on the provided pages. This module can be used as a generator.
Parameters[edit]
plnamespace: Only list links to pages in these namespaces.pllimit: How many links to return. No more than 500 (5000 for bots) allowed. (Default: 10) 1.13+plcontinue: When more results are available, use this to continue. 1.13+pltitles: Only list links to these titles. Useful for checking whether a certain page links to a certain title. 1.17+pldir: The direction in which to list. Possible values:ascending,descending. (Default:ascending) 1.19+
Example[edit]
Get a list of links on en:Albert Einstein
| Result |
|---|
{
"query": {
"pages": [
{
"pageid": 736,
"ns": 0,
"title": "Albert Einstein",
"links": [
{
"ns": 0,
"title": "2dF Galaxy Redshift Survey"
},
{
"ns": 0,
"title": "A priori and a posteriori"
},
{
"ns": 0,
"title": "Aage Bohr"
},
{
"ns": 0,
"title": "Aarau"
},
{
"ns": 0,
"title": "Aargau"
},
{
"ns": 0,
"title": "Abba Eban"
},
{
"ns": 0,
"title": "Abdominal aortic aneurysm"
},
{
"ns": 0,
"title": "Abdus Salam"
},
{
"ns": 0,
"title": "Absent-minded professor"
},
{
"ns": 0,
"title": "Absorption refrigerator"
}
]
}
]
}
}
|
Possible errors[edit]
None.