Extract Inline Images API
inline_images lists the page's images, up to 200,
with the best available source, including lazy-loaded images, the alt text as title,
and width and height when present.
API Examples
Inline images
{
...
"inline_images": [
...
{
"position": 5,
"source": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Latte_and_dark_coffee.jpg/500px-Latte_and_dark_coffee.jpg",
"width": 250,
"height": 156
},
{
"position": 6,
"source": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Coffee_beans_unroasted.jpg/500px-Coffee_beans_unroasted.jpg",
"width": 250,
"height": 170
}
]
}
JSON Structure Overview
{
...
"inline_images": [
{
"position": "Integer - Position of the image",
"title": "String - Alt text of the image",
"source": "String - Best available source of the image, including lazy-loaded sources",
"original": "String - Full-size source from the data-original or data-full-src attribute",
"width": "Integer - Width attribute of the image. String if it isn't a whole number (e.g. '100%')",
"height": "Integer - Height attribute of the image. String if it isn't a whole number (e.g. '100%')"
},
...
],
...
}