How to get the main image of any news website

Most news sites have it, but if not then I would have to find the main image of the post.

But there is also this HTML:

“image”: {
@type”: “ImageObject”,
“url”: “https://www.abc.com/imagespp/12354.jpg?w=900&h=500”,
“width”: 900,
“height”: 500
}

I´m trying with RapidAPI - Extract News, but I´d like to know if is it possible to configure the HTTP module to do something like it…