MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=shortenurl

(main | shortenurl)
  • This module requires read rights.
  • This module only accepts POST requests.
  • Source: UrlShortener
  • License: Apache-2.0

Shorten a long URL into a shorter one.

Parameter:
url

URL to be shortened.

This parameter is required.
Example:
Get the short URL for https://en.wikipedia.org/wiki/Arctica.
api.php?action=shortenurl&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FArctica [open in sandbox]