Skip to content

2020

When the API returns an image

I see more and more Image-Response GET APIs. With this term I mean: the API is called with a GET URL, and the response is a (JPG/PNG/GIF/WEBP/SVG) image, either directly or after a redirect. So the API can be used through a simple <img src="[IMAGE GENERATING URL"> HTML tag. Let’s call these IMGSRCAPI‘s.