API:Propriedades
| Esta página faz parte da documentação da API de Ação do MediaWiki. |
Requisição GET para listar as propriedades de páginas selecionadas.
Documentação da API
Propriedades são dados sobre uma página (como categorias) ou sobre o conteúdo de uma página (como imagens ou ligações).
Para requisitar uma propriedade, deve ser passado ao parâmetro prop da sua consulta um submódulo de propriedade válido, correspondente às informações necessárias.
A página ou as páginas cujos dados estão sendo solicitados são especificadas pelos parâmetros titles, pageids ou revids da consulta, ou por meio de um gerador.
As consultas a propriedades são escritas da seguinte forma: action=query&titles=title1&prop=property1|property2.
Property queries always have a limit on the number of items returned.
To view more items, append the values inside the result's continue element to the original request.
Please see individual property API pages for more concrete examples of how to use properties:
Notas adicionais
- Most property submodules can be used as generators, unless otherwise noted.
- Property query limits:
- Results for property queries always have a limit; the default limit is 10. The results limit can be set as high as 500 for regular users, or 5000 for users with the
apihighlimitsright (typically bots and sysops). Some modules impose stricter limits under certain conditions. - If you are not sure which limit applies to you and just want as many results as possible, set the limit to
max. In that case, alimitselement will be returned, specifying the limits used. - The limit parameter for a given module consists of the module prefix followed by the word
limit. For example,imlimitis the maximum number ofimagesreturned.
- Results for property queries always have a limit; the default limit is 10. The results limit can be set as high as 500 for regular users, or 5000 for users with the
Ver também
- Documentação no módulo de consulta – contains a brief description of all property submodules, their corresponding parameters, and values.
- API: Campo da base de dados e associações da propriedade da API – contains a table describing how query properties are associated with the fields in a MediaWiki database.
- API: Listas – a similar API, for accessing lists of information, such as
allusers, orrecentchanges. Unlike property queries, which append data to thepageselement, lists return a separate branch in thequeryelement.
- Maintained by MediaWiki Interfaces Team.
- Live chat (IRC): #mediawiki-core connect
- Issue tracker: Phabricator MediaWiki-Action-API (Report an issue)