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=wbgetentities

(main | wbgetentities)
  • Questo modulo richiede i diritti di lettura.
  • Fonte: WikibaseRepository
  • Licenza: GPL-2.0-or-later

Ottiene i dati per più entità Wikibase.

Parametri specifici:
Sono disponibili altri parametri generali.
ids

Gli ID delle entità da cui ottenere i dati

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
sites

Identifier for the site on which the corresponding page resides. Use together with title, but only give one site for several titles or several sites for one title.

Valori (separati da | o alternativa):
Maximum number of values is 50 (500 for clients that are allowed higher limits).
titles

The title of the corresponding page. Use together with sites, but only give one site for several titles or several sites for one title.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
redirects

Whether redirects shall be resolved. If set to "no", redirects will be treated like deleted entities.

Uno dei seguenti valori: no, yes
Predefinito: yes
props

The names of the properties to get back from each entity. Will be further filtered by any languages given.

Valori (separati da | o alternativa): aliases, claims, datatype, descriptions, info, labels, sitelinks, sitelinks/urls
Predefinito: info|sitelinks|aliases|labels|descriptions|claims|datatype
languages

By default the internationalized values are returned in all available languages. This parameter allows filtering these down to one or more languages by providing one or more language codes.

Valori (separati da | o alternativa): aa, aae, ab, abs, ace, acf, acm, ady, ady-cyrl, aeb, aeb-arab, aeb-latn, af, agq, aln, als, alt, am, ami, an, ang, ann, anp, apc, 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, bdr, be, be-tarask, be-x-old, bew, bfd, bg, bgc, 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, cal, cbk-zam, ccp, cdo, ce, ceb, ch, chn, cho, chr, chy, ckb, cnh, co, cps, cpx, cpx-hans, cpx-hant, cpx-latn, cr, crh, crh-cyrl, crh-latn, crh-ro, cs, csb, cu, cv, cy, da, dag, de, de-at, de-ch, de-formal, dga, din, diq, dsb, dtp, dty, dua, dv, dz, ee, efi, 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, gcf, gcr, gd, gl, gld, glk, gn, gom, gom-deva, gom-latn, gor, got, gpe, grc, gsw, gu, guc, gur, guw, gv, gya, ha, hak, hak-hans, hak-hant, hak-latn, haw, he, hi, hif, hif-latn, hil, hno, ho, hr, hrx, hsb, hsn, ht, hu, hu-formal, hy, hyw, hz, ia, iba, ibb, id, ie, ig, igl, ii, ik, ike-cans, ike-latn, ilo, inh, io, is, isu, isv-cyrl, isv-latn, it, iu, ja, jam, jbo, jut, jv, ka, kaa, kab, kai, kbd, kbd-cyrl, kbp, kcg, kea, ker, kg, kge, khw, ki, kiu, kj, kjh, kjp, kk, kk-arab, kk-cn, kk-cyrl, kk-kz, kk-latn, kk-tr, kl, km, kn, knc, ko, ko-kp, koi, kr, krc, kri, krj, krl, ks, ks-arab, ks-deva, ksf, ksh, ksw, ku, ku-arab, ku-latn, kum, kus, kv, kw, ky, la, lad, lb, lbe, lem, lez, lfn, lg, li, lij, liv, lki, lld, lmo, ln, lns, lo, loz, lrc, lt, ltg, lua, lus, luz, lv, lzh, lzz, mad, mag, mai, map-bms, mcn, mcp, mdf, mg, mh, mhr, mi, min, mk, ml, mn, mnc, mnc-latn, mnc-mong, mni, mnw, mo, mos, mr, mrh, mrj, ms, ms-arab, mt, mua, mui, mus, mwl, my, myv, mzn, na, nah, nan, nan-hani, nan-hant, nan-latn-pehoeji, nan-latn-tailo, nap, nb, nds, nds-nl, ne, new, ng, nge, nia, nit, niu, nl, nl-informal, nla, nmg, nmz, nn, nnh, nnz, no, nod, nog, nov, nqo, nr, nrm, nso, nup, nv, ny, nyn, nyo, 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, rki, rm, rmc, rmf, rmy, rn, ro, roa-rup, roa-tara, rsk, ru, rue, rup, ruq, ruq-cyrl, ruq-latn, rut, rw, rwr, ryu, sa, sah, sat, sc, scn, sco, sd, sdc, sdh, se, se-fi, se-no, se-se, sei, ses, sg, sgs, sh, sh-cyrl, sh-latn, 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, tig, tk, tl, tly, tly-cyrl, tn, to, tok, tpi, tpv, tr, tru, trv, ts, tt, tt-cyrl, tt-latn, ttj, 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, wal, war, wes, wls, wo, wuu, wuu-hans, wuu-hant, wya, xal, xh, xmf, xsy, yas, yat, yav, ybb, yi, yo, yrl, yue, yue-hans, yue-hant, za, zea, zgh, zgh-latn, 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
Maximum number of values is 50 (500 for clients that are allowed higher limits).
languagefallback

Apply language fallback for languages defined in the languages parameter, with the current context of API call.

Tipo: booleano (dettagli)
normalize

Try to normalize the page title against the client site. This only works if exactly one site and one page have been given.

Tipo: booleano (dettagli)
sitefilter

Filter sitelinks in entities to those with these site IDs.

Valori (separati da | o alternativa):
Maximum number of values is 50 (500 for clients that are allowed higher limits).
Esempi:
Ottieni entità con ID Q42 con tutti gli attributi disponibili in tutte le lingue disponibili
api.php?action=wbgetentities&ids=Q42 [apri in una sandbox]
Ottieni entità con ID P17 con tutti gli attributi disponibili in tutte le lingue disponibili
api.php?action=wbgetentities&ids=P17 [apri in una sandbox]
Ottieni entità con ID Q42 e P17 con tutti gli attributi disponibili in tutte le lingue disponibili
api.php?action=wbgetentities&ids=Q42|P17 [apri in una sandbox]
Ottieni entità con ID Q42 con tutti gli attributi disponibili in lingua inglese
api.php?action=wbgetentities&ids=Q42&languages=en [apri in una sandbox]
Ottieni entità con ID Q42 con tutti gli attributi disponibili in tutte le lingue di riserva disponibili per la lingua ii
api.php?action=wbgetentities&ids=Q42&languages=ii&languagefallback= [apri in una sandbox]
Ottieni entità con ID Q42 mostrando tutte le etichette in tutte le lingue disponibili
api.php?action=wbgetentities&ids=Q42&props=labels [apri in una sandbox]
Get entities with IDs P17 and P3 showing only datatypes
api.php?action=wbgetentities&ids=P17|P3&props=datatype [apri in una sandbox]
Get entities with ID Q42 showing all aliases in English language
api.php?action=wbgetentities&ids=Q42&props=aliases&languages=en [apri in una sandbox]
Get entities with IDs Q1 and Q42 showing descriptions in English, German and French languages
api.php?action=wbgetentities&ids=Q1|Q42&props=descriptions&languages=en|de|fr [apri in una sandbox]
Get the item for page "Berlin" on the site "enwiki", with language attributes in English language
api.php?action=wbgetentities&sites=enwiki&titles=Berlin&languages=en [apri in una sandbox]
Get the item for page "Berlin" on the site "enwiki" after normalizing the title from "berlin"
api.php?action=wbgetentities&sites=enwiki&titles=berlin&normalize= [apri in una sandbox]
Get the sitelinks for item Q42
api.php?action=wbgetentities&ids=Q42&props=sitelinks [apri in una sandbox]
Get entities with ID Q42 showing only sitelinks from "enwiki"
api.php?action=wbgetentities&ids=Q42&sitefilter=enwiki [apri in una sandbox]