MediaWiki API ヘルプ

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

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

action=wbsearchentities

(main | wbsearchentities)
  • このモジュールは読み取りの権限を必要とします。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Searches for entities using labels and aliases.

Returns a label and description for the entity in the user language if possible. Returns details of the matched term. The matched term text is also present in the aliases key if different from the display label.

パラメーター:
その他一般パラメーターが利用可能です。
search

Search for this text.

この変数は必須です。
language

Search in this language. This only affects how entities are selected, not the language in which the results are returned: this is controlled by the "uselang" parameter.

この変数は必須です。
値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
strictlanguage

Whether to disable language fallback

型: 真偽値 (詳細)
type

Search for this type of entity.

値 (次の値のいずれか1つ): item、property
既定: item
limit

Maximal number of results

型: 整数または max
値は0以上50以下です。
既定: 7
continue

Offset where to continue a search

型: 整数
既定: 0
props

Return these properties for each entity.

値 (| または別の文字列で区切る): url
既定: url
profile

The search profile to use.

default
The default profile, suitable for most purposes.
値 (次の値のいずれか1つ): default
既定: default
例:
Search for "abc" in English language, with defaults for type and limit
api.php?action=wbsearchentities&search=abc&language=en [サンドボックスで開く]
Search for "abc" in English language with a limit of 50
api.php?action=wbsearchentities&search=abc&language=en&limit=50 [サンドボックスで開く]
Search for "abc" in English language with a limit of 2 and an offset of 2
api.php?action=wbsearchentities&search=abc&language=en&limit=2&continue=2 [サンドボックスで開く]
Search for "alphabet" in English language for type property
api.php?action=wbsearchentities&search=alphabet&language=en&type=property [サンドボックスで開く]
Search for "alphabet" in English language omitting url parameter
api.php?action=wbsearchentities&search=alphabet&language=en&props= [サンドボックスで開く]
Search for "Q1234" in English language, to match the entity ID.
api.php?action=wbsearchentities&search=Q1234&language=en [サンドボックスで開く]