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

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

Fetch data from and about MediaWiki.

All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites.

Parametri specifici:
Sono disponibili altri parametri generali.
prop

Which properties to get for the queried pages.

categories
Elenca tutte le categorie a cui appartengono le pagine.
categoryinfo
Restituisce informazioni su una categoria indicata.
contributors
Get the list of logged-in contributors and the count of anonymous contributors to a page.
coordinates
Returns coordinates of the given pages.
deletedrevisions
Get deleted revision information.
duplicatefiles
List all files that are duplicates of the given files based on hash values.
extlinks
Returns all external URLs (not interwikis) from the given pages.
extracts
Returns plain-text or limited HTML extracts of the given pages.
fileusage
Trova tutte le pagine che utilizzano il file specificato.
globalusage
Restituisce l'utilizzo globale di una certa immagine.
imageinfo
Restituisce informazione sul file sulla cronologia di caricamento.
images
Returns all files contained on the given pages.
info
Ottieni informazioni base sulla pagina.
iwlinks
Restituisce tutti i collegamenti interwiki dalle pagine indicate.
langlinks
Returns all interlanguage links from the given pages.
links
Returns all links from the given pages.
linkshere
Trova tutte le pagine che puntano a quelle specificate.
mmcontent
Get the description and targets of a spamlist
pageimages
Fornisce informazioni sulle immagini nella pagina, ad esempio le anteprime e la presenza di foto.
pageprops
Get various page properties defined in the page content.
pageterms
Ottieni i termini Wikibase (tipicamente etichette, descrizioni e alias) associati a una pagina tramite un collegamento al sito.
redirects
Restituisce tutti i reindirizzamenti alla data indicata.
revisions
Get revision information.
stashimageinfo
Returns file information for stashed files.
templates
Returns all pages transcluded on the given pages.
transcludedin
Trova tutte le pagine che incorporano quella specificata.
transcodestatus
Get transcode status for a given file page.
videoinfo
Extends imageinfo to include video source (derivatives) information
wbentityusage
Returns all entity IDs used in the given pages.
description
Internal. Get a short description a.k.a. subtitle explaining what the target page is about.
mapdata
Internal. Request all Kartographer map data for the given pages
Valori (separati da | o alternativa): categories, categoryinfo, contributors, coordinates, deletedrevisions, duplicatefiles, extlinks, extracts, fileusage, globalusage, imageinfo, images, info, iwlinks, langlinks, links, linkshere, mmcontent, pageimages, pageprops, pageterms, redirects, revisions, stashimageinfo, templates, transcludedin, transcodestatus, videoinfo, wbentityusage, description, mapdata
list

Quali elenchi ottenere.

abusefilters
Mostra dettagli sui filtri anti abusi.
abuselog
Mostra eventi che hanno attivate un filtro anti abusi.
allcategories
Enumera tutte le categorie.
alldeletedrevisions
Elenca tutte le versioni cancellate da un utente o in un namespace.
allfileusages
List all file usages, including non-existing.
allimages
Enumerate all images sequentially.
alllinks
Elenca tutti i collegamenti che puntano ad un namespace indicato.
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
Elenca tutti i rimpalli a un namespace.
allrevisions
Elenco di tutte le versioni.
alltransclusions
Elenca tutte le inclusioni (pagine incorporate utilizzando {{x}}), comprese le non esistenti.
allusers
Enumerate all registered users.
backlinks
Trova tutte le pagine che puntano a quella specificata.
betafeatures
Elenca tutte le funzionalità sperimentali
blocks
List all blocked users and IP addresses.
categorymembers
Elenca tutte le pagine in una categoria indicata.
centralnoticeactivecampaigns
Get a list of currently active campaigns with start and end dates and associated banners.
centralnoticelogs
Get a log of campaign configuration changes.
checkuser
Controlla quali indirizzi IP vengono usati da un determinato nome utente o quali nomi utente vengono usati da un dato indirizzo IP.
checkuserlog
Ottieni i risultati dal registro CheckUser.
embeddedin
Trova tutte le pagine che incorporano (transclusione) il titolo specificato.
exturlusage
Enumerate pages that contain a given URL.
filearchive
Enumerate all deleted files sequentially.
gadgetcategories
Restituisce un elenco di categorie di accessori.
gadgets
Returns a list of gadgets used on this wiki.
geosearch
Returns pages having coordinates that are located in a certain area.
globalallusers
Enumerate all global users.
globalblocks
Elenca tutti gli indirizzi IP bloccati globalmente
globalgroups
Enumerate all global groups.
imageusage
Trova tutte le pagine che utilizzano il titolo dell'immagine specificato.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
Find all pages that link to the given language link.
linterrors
Ottieni lista di errori di Lint
logevents
Get events from logs.
mystashedfiles
Get a list of files in the current user's upload stash.
pagepropnames
List all page property names in use on the wiki.
pageswithprop
List all pages using a given page property.
prefixsearch
Perform a prefix search for page titles.
protectedtitles
Elenca tutti i titoli protetti dalla creazione.
querypage
Get a list provided by a QueryPage-based special page.
random
Get a set of random pages.
recentchanges
Elenca le modifiche recenti.
search
Eseguire una ricerca di testo completa.
tags
List change tags.
usercontribs
Get all edits by a user.
users
Ottieni informazioni su un elenco di utenti.
watchlist
Ottieni le ultime modifiche alle pagine tra gli osservati speciali dell'utente attuale.
watchlistraw
Get all pages on the current user's watchlist.
wblistentityusage
Restituisce tutte le pagine che utilizzano gli ID entità indicati.
wikiconfig
Vedere nome sito, inattivo, inattivo-esentato, chiuso, privato, estensioni, specifiche e permessi per la Wiki specificata.
wikisets
Enumerate all wiki sets.
deletedrevs
Deprecato. List deleted revisions.
Valori (separati da | o alternativa): abusefilters, abuselog, allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, allusers, backlinks, betafeatures, blocks, categorymembers, centralnoticeactivecampaigns, centralnoticelogs, checkuser, checkuserlog, embeddedin, exturlusage, filearchive, gadgetcategories, gadgets, geosearch, globalallusers, globalblocks, globalgroups, imageusage, iwbacklinks, langbacklinks, linterrors, logevents, mystashedfiles, pagepropnames, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, search, tags, usercontribs, users, watchlist, watchlistraw, wblistentityusage, wikiconfig, wikisets, deletedrevs
Maximum number of values is 50 (500 for clients that are allowed higher limits).
meta

Quali metadati ottenere.

allmessages
Restituisce messaggi da questo sito.
authmanagerinfo
Recupera informazioni circa l'attuale stato di autenticazione.
babel
Ottieni informazioni su quali lingue l'utente conosce
filerepoinfo
Return meta information about image repositories configured on the wiki.
globalpreferences
Retrieve global preferences for the current user.
globalrenamestatus
Mostra le informazioni sulle ridenominazioni globali in corso.
globaluserinfo
Show information about a global user.
languageinfo
Restituisce informazioni sulle lingue disponibili.
linterstats
Ottieni il numero di errori di Lint in ciascuna categoria
notifications
Ottieni le notifiche in attesa per l'utente attuale.
siteinfo
Return general information about the site.
tokens
Gets tokens for data-modifying actions.
unreadnotificationpages
Ottieni le pagine per le quali ci sono notifiche non lette per l'utente attuale.
userinfo
Ottieni informazioni sull'utente attuale.
wikibase
Get information about the Wikibase client and the associated Wikibase repository.
oath
Internal. Check to see if two-factor authentication (OATH) is enabled for a user.
Valori (separati da | o alternativa): allmessages, authmanagerinfo, babel, filerepoinfo, globalpreferences, globalrenamestatus, globaluserinfo, languageinfo, linterstats, notifications, siteinfo, tokens, unreadnotificationpages, userinfo, wikibase, oath
indexpageids

Include an additional pageids section listing all returned page IDs.

Tipo: booleano (dettagli)
export

Esporta la versione attuale di tutte le pagine ottenute o generate.

Tipo: booleano (dettagli)
exportnowrap

Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with query+export.

Tipo: booleano (dettagli)
exportschema

Target the given version of the XML dump format when exporting. Can only be used with query+export.

Uno dei seguenti valori: 0.10, 0.11
Default: 0.11
iwurl

Whether to get the full URL if the title is an interwiki link.

Tipo: booleano (dettagli)
continue

Quando più risultati sono disponibili, usa questo per continuare. Informazioni più dettagliate su come continuare le query possono essere trovate su mediawiki.org.

rawcontinue

Return raw query-continue data for continuation.

Tipo: booleano (dettagli)
titles

Un elenco di titoli su cui lavorare.

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

Un elenco di ID pagina su cui lavorare.

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

Un elenco di ID versioni su cui lavorare. Tieni presente che quasi tutti i moduli per le interrogazioni convertiranno gli ID versione nell'ID pagina corrispondente e lavoreranno quindi sull'ultima versione. Solo prop=revisions usa le versioni esatte per la sua risposta.

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

Get the list of pages to work on by executing the specified query module.

Note: Generator parameter names must be prefixed with a "g", see examples.

allcategories
Enumera tutte le categorie.
alldeletedrevisions
Elenca tutte le versioni cancellate da un utente o in un namespace.
allfileusages
List all file usages, including non-existing.
allimages
Enumerate all images sequentially.
alllinks
Elenca tutti i collegamenti che puntano ad un namespace indicato.
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
Elenca tutti i rimpalli a un namespace.
allrevisions
Elenco di tutte le versioni.
alltransclusions
Elenca tutte le inclusioni (pagine incorporate utilizzando {{x}}), comprese le non esistenti.
backlinks
Trova tutte le pagine che puntano a quella specificata.
categories
Elenca tutte le categorie a cui appartengono le pagine.
categorymembers
Elenca tutte le pagine in una categoria indicata.
deletedrevisions
Get deleted revision information.
duplicatefiles
List all files that are duplicates of the given files based on hash values.
embeddedin
Trova tutte le pagine che incorporano (transclusione) il titolo specificato.
exturlusage
Enumerate pages that contain a given URL.
fileusage
Trova tutte le pagine che utilizzano il file specificato.
geosearch
Returns pages having coordinates that are located in a certain area.
images
Returns all files contained on the given pages.
imageusage
Trova tutte le pagine che utilizzano il titolo dell'immagine specificato.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
Find all pages that link to the given language link.
links
Returns all links from the given pages.
linkshere
Trova tutte le pagine che puntano a quelle specificate.
pageswithprop
List all pages using a given page property.
prefixsearch
Perform a prefix search for page titles.
protectedtitles
Elenca tutti i titoli protetti dalla creazione.
querypage
Get a list provided by a QueryPage-based special page.
random
Get a set of random pages.
recentchanges
Elenca le modifiche recenti.
redirects
Restituisce tutti i reindirizzamenti alla data indicata.
revisions
Get revision information.
search
Eseguire una ricerca di testo completa.
templates
Returns all pages transcluded on the given pages.
transcludedin
Trova tutte le pagine che incorporano quella specificata.
watchlist
Ottieni le ultime modifiche alle pagine tra gli osservati speciali dell'utente attuale.
watchlistraw
Get all pages on the current user's watchlist.
wblistentityusage
Restituisce tutte le pagine che utilizzano gli ID entità indicati.
Uno dei seguenti valori: allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, backlinks, categories, categorymembers, deletedrevisions, duplicatefiles, embeddedin, exturlusage, fileusage, geosearch, images, imageusage, iwbacklinks, langbacklinks, links, linkshere, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, redirects, revisions, search, templates, transcludedin, watchlist, watchlistraw, wblistentityusage
redirects

Risolvi automaticamente redirect in query+titles, query+pageids, e query+revids, e nelle pagine restituite da query+generator.

Tipo: booleano (dettagli)
converttitles

Converte i titoli in altre varianti, se necessario. Funziona solo se la lingua del contenuto del wiki supporta la conversione in varianti. Le lingue che supportano la conversione in varianti includono ban, en, crh, gan, iu, kk, ku, sh, shi, sr, tg, tly, uz, wuu e zh

Tipo: booleano (dettagli)