Trợ giúp về API MediaWiki

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)
  • Mô đun này cần quyền đọc.
  • Mô đun này chỉ có nhận các yêu cầu POST.
  • Source: UrlShortener
  • License: Apache-2.0

Shorten a long URL into a shorter one.

Các tham số:
Other general parameters are available.
url

URL để rút gọn.

This parameter is required.
qrcode

Get a QR code. The linked URL will only be shortened if it is very long.

Type: boolean (details)
Các ví dụ:
Lấy URL ngắn gọn của https://vi.wikipedia.org/wiki/Arctica.
api.php?action=shortenurl&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FArctica [open in sandbox]
Get a QR code for https://en.wikipedia.org/wiki/Arctica.
api.php?action=shortenurl&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FArctica&qrcode=1 [open in sandbox]