Page content

Get list of media files used on a page.

Gets the list of media items (images, audio, and video) in the order in which they appear on a given wiki page.

Stability: unstable

Please follow wikitech-l or mediawiki-api-announce for announcements of breaking changes.

get/page/media-list/{title}

Request

  • Base URL: https://en.wikipedia.org/api/rest_v1
  • URL: https://en.wikipedia.org/api/rest_v1/page/media-list/{title}
  • Auth: none declared

Path parameters

titlestring required

Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page.

Query parameters

redirectboolean

Requests for redirect pages return HTTP 302 with a redirect target in Location header and content in the body. To get a 200 response instead, supply false to the redirect parameter.

Response

JSON containing metadata of media items appearing on the given page.

Changes

No recorded changes to this operation across all 1 revision of this API.