MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

(main | query | extlinks)
  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページにあるすべての外部URL (インターウィキを除く) を返します。

パラメーター:
ellimit

返すリンクの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
eloffset

When more results are available, use this to continue.

Type: integer
elprotocol

URLのプロトコル。このパラメータが空であり、かつelquery が設定されている場合, protocol は http となります。すべての外部リンクを一覧表示するためにはこのパラメータと elquery の両方を空にしてください。

値 (次の値のいずれか1つ): 空欄にするか、または bitcoin、ftp、ftps、geo、git、gopher、http、https、irc、ircs、magnet、mailto、mms、news、nntp、redis、sftp、sip、sips、sms、ssh、svn、tel、telnet、urn、worldwind、xmpp、xmpp、appstream
既定値: (空)
elquery

Search string without protocol. Useful for checking whether a certain page contains a certain external url.

elexpandurl

Expand protocol-relative URLs with the canonical protocol.

Type: boolean (details)
例:
Main Page の外部リンクの一覧を取得する。
api.php?action=query&prop=extlinks&titles=Main%20Page [サンドボックスで開く]