Articles on: API

Why am I not seeing images when using the API in my browser?

If you try to put an API URL (`https://app.scrapingbee.com/api/v1/...) in your browser, the website might look a bit weird:



DuckDuckGo.com rendered in a browser through ScrapingBee API
The website renders weirdly in your browser because ScrapingBee API will only returns you the HTML of the page, it won't return you all the other assets loaded by the page.

And while those assets (images, JavaScript, CSS, fonts) are correctly loaded on the ScrapingBee side, the API will only return the HTML to the end-user, in this case, your browser.

Here is a small diagram to understand this a bit better:



This is also why loading a website relying on a lot of JavaScript (Single Page Application) using ScrapingBee API in the browser can results in weird behaviours.

Updated on: 15/09/2021

Was this article helpful?

Share your feedback

Cancel

Thank you!