Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=shortenurl

(main | shortenurl)
  • Modul ini memerlukan hak membaca.
  • Modul ini menerima permohonan POST sahaja.
  • Source: UrlShortener
  • License: Apache-2.0

Shorten a long URL into a shorter one.

Parameter:
Other general parameters are available.
url

URL to be shortened.

This parameter is required.
qrcode

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

Type: boolean (details)
Contoh-contoh:
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]
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]