|
Linking between Wikipedia articles is an important way to create connections between topics. The Link Recommendation API helps guide editors by suggesting places in an article where a link could be added.
Documentation
[edit]Reference
[edit]Guides
[edit]Concepts
[edit]Quick start
[edit]# Get link recommendations for the Earth article on English Wikipedia
curl 'https://api.wikimedia.org/service/linkrecommendation/v1/linkrecommendations/wikipedia/en/Earth'
Access policy
[edit]See Wikimedia APIs/Access policy.
Authentication
[edit]POST operations must provide an OAuth 2.0 token in the Authorization request header using the Bearer authentication scheme. To get an OAuth token, visit the consumer registration page on Meta-Wiki. For this API, we recommend creating a consumer with only basic rights. Remember to keep API tokens confidential; don't add tokens to public source control or expose tokens in user-accessible code.
# Example of a POST request using an access token
$ curl -X POST https://api.wikimedia.org/service/linkrecommendation/v1/linkrecommendations/wikipedia/en/ADD_PAGE_TITLE \
-H "Content-Type: application/json" -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
--data '{"pageid": 5555, "revid": 5555, "wikitext": "ADD_WIKITEXT_SOURCE"}'
Rate limits
[edit]As of March 2026, requests are subject to the global Wikimedia API limits.
Stability policy
[edit]See Wikimedia APIs/Stability policy.
Report a bug
[edit]Create an account on Wikimedia Phabricator, and tag the task with Add-Link.
Get help
[edit]Leave a comment on the discussion page.
Contribute
[edit]To edit the docs, see Gerrit/Tutorial to contribute to the OpenAPI description.