API:Images
| Images | ||
|---|---|---|
| Returns all files contained on the given page(s). This module can be used as a Generator. |
||
| Prefix | im | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Gets a list of all embedded files (images, audio, video) on the provided pages. This module can be used as a generator.
Parameters[edit]
imlimit: How many files to return. 1.13+imcontinue: When more results are available, use this to continue. 1.13+imimages: Only list these files. Useful for checking whether a certain page has a certain Image. 1.18+imdir: The direction in which to list 1.19+
Example[edit]
Get a list of files on en:Albert Einstein's page
| Result |
|---|
<api>
<query>
<pages>
<page pageid="736" ns="0" title="Albert Einstein">
<images>
<im ns="6" title="File:1919 eclipse positive.jpg" />
<im ns="6" title="File:Albert Einstein Head.jpg" />
<im ns="6" title="File:Albert Einstein german.ogg" />
<im ns="6" title="File:Albert Einstein photo 1921.jpg" />
...
</images>
</page>
</pages>
</query>
</api>
|
Possible errors[edit]
None.