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.

One of the oldest examples is [Gravatar](<https://en.gravatar.com/>), used by WordPress to show an icon/avatar for each person that writes/comments on blogs. Every imaginable email address automatically has a Gravatar profile pic, but by default it is [![](<https://www.gravatar.com/avatar/ebf3ff19e1c49eb15dd83d41d5856319>)](<https://www.gravatar.com/avatar/ebf3ff19e1c49eb15dd83d41d5856319>). Only when you can log in and verify your email, you can change your profile pic to whatever you want.

But, as I said, I see more and more of them, and I wanted to catalog them. I see 2 big categories: **static vs dynamic** IMGSRCAPIs.

## 1\. Static (deterministic) IMG SRC API

This means: a certain URL (with specific query parameters) will **ALWAYS give back the same image**. Let me give some examples:

### 1.a. Static placeholder pictures

These services are used to quickly generate random images of specific sizes to use in web design.

[![](<https://dummyimage.com/500x200/00066f/FFF.png&amp;text=dummyimage.com>)](<https://dummyimage.com/500x200/00066f/FFF.png&amp;text=dummyimage.com>) **[DUMMYIMAGE](<https://dummyimage.com/>)**: [[https://dummyimage.com/500×200/00066f/FFF.png&amp;text=dummyimage.com](<https://dummyimage.com/500×200/00066f/FFF.png&amp;text=dummyimage.com>)](<https://dummyimage.com/500x200/00066f/FFF.png&amp;text=dummyimage.com>)

[![](<https://fakeimg.pl/500x200/?text=fakeimg.pl&amp;font=lobster>)](<https://fakeimg.pl/500x200/?text=fakeimg.pl&amp;font=lobster>) [**FAKEIMAGE.PL**](<https://fakeimg.pl>): [[https://fakeimg.pl/500×200/?text=fakeimg.pl&amp;font=lobster](<https://fakeimg.pl/500×200/?text=fakeimg.pl&amp;font=lobster>)](<https://fakeimg.pl/500x200/?text=fakeimg.pl&amp;font=lobster>)

[![](<https://satyr.io/500x200/orange?delay=3g>)](<https://satyr.io/500x200/orange?delay=3g>) **[SATYR.IO](<https://satyr.io>)**: [[https://satyr.io/500×200/orange?delay=3g](<https://satyr.io/500×200/orange?delay=3g>)](<https://satyr.io/500x200/orange?delay=3g>) – simulates 3G network delay

[![](<https://placekitten.com/500/200>)](<https://placekitten.com/500/200>) [**PLACEKITTEN**](<https://placekitten.com/>): [[https://placekitten.com/500/200](<https://placekitten.com/500/200>)](<https://placekitten.com/500/200>), and similarly: [placebear.com](<https://placebear.com>), [fillmurray.com](<https://www.fillmurray.com>)

### 1.b. Image (scannable) representation of data

[![](<https://mk.forret.com/wp-content/uploads/2020/01/barcode.gif>)](</wp-content/uploads/2020/01/barcode.gif>) [**TEC-IT.COM**](<https://barcode.tec-it.com/>): static linear barcode (Code128)

([![](<https://mk.forret.com/wp-content/uploads/2020/01/qrcode.gif>)](</wp-content/uploads/2020/01/qrcode.gif>)) [**TEC-IT.COM**](<https://barcode.tec-it.com/>): Static vCard (address book) QR Code

A handy service like [qrcode-monkey.com](<https://www.qrcode-monkey.com/>) does not qualify as an IMGSRCAPI because it rather works like a regular API: with a JSON request body and a JSON response. You can’t just use it in a `<img>` tag.

Facebook also has scannable Messenger codes, but again, these cannot be created with a simple URL, so no IMGSRCAPI

### 1.c. Static avatars

These are service to turn a string into an image, in such a way that it’s easier to recognize them. This can be used for people, or for projects.

[![](<https://robohash.org/pforret>)](<https://robohash.org/pforret>) **ROBOHASH**: [https://robohash.org/pforret](<https://robohash.org/pforret>)

[![](<https://avatars.dicebear.com/v2/male/pforret.svg>)](<https://avatars.dicebear.com/v2/male/pforret.svg>) **[DICEBEAR AVATARS](<https://avatars.dicebear.com/>)**: [https://avatars.dicebear.com/v2/male/pforret.svg](<https://avatars.dicebear.com/v2/male/pforret.svg>)

### 1.d. Image modification API

There are actually a lot of these image-modification (mostly paid) SaaS services. The request URL includes the URL of an input image, and the response is, since it is a IMGSRCAPI, also an image. The service can compress, resize, crop intelligently, change colours, …

[![](<https://mk.forret.com/wp-content/uploads/2020/01/image.png>)](</wp-content/uploads/2020/01/image.png>) [[https://imageoptim.com/](<https://imageoptim.com/>)](<https://imageoptim.com/>) (paid service)

Some examples of these services are:

- [cloudinary.com](<https://cloudinary.com/>)
- [imageboss.me](<https://imageboss.me/>)
- [imageoptim.com](<https://imageoptim.com/>)
- [imagify.io](<https://imagify.io/>)
- [imgix.com](<https://www.imgix.com/>)
- [piio.co](<https://piio.co/>)

## 2\. Dynamic IMG SRC API

This means that 2 calls with the exact same URL might give back a different image. This could be because it’s random, or because of external data that has changed.

### 2.a. Dynamic placeholder pictures

Like their cousins in 1.a., these services give back an image of a certain size, but it’s a **random** image, changes upon each call.

[![](<https://picsum.photos/500/200>)](<https://picsum.photos/500/200>) **[LOREM PICSUM](<https://picsum.photos/>):** [[https://picsum.photos/500/200](<https://picsum.photos/500/200>)](<https://picsum.photos/500/200>)

[![](<https://placebeard.it/g/500/200>)](<https://placebeard.it/g/500/200>) [**PLACEBEARD**](<https://placebeard.it>): [[https://placebeard.it/g/500/200](<https://placebeard.it/g/500/200>)](<https://placebeard.it/g/500/200>)

[![](<https://placeimg.com/500/200/arch>)](<https://placeimg.com/500/200/arch>) **[PLACEIMG](<https://placeimg.com>)**: [[https://placeimg.com/500/200/arch](<https://placeimg.com/500/200/arch>)](<https://placeimg.com/500/200/arch>)

[![](<https://source.unsplash.com/500x200/?sunset>)](<https://source.unsplash.com/500x200/?sunset>) [**UNSPLASH**](<https://unsplash.com/>): [[https://source.unsplash.com/500×200/?sunset](<https://source.unsplash.com/500×200/?sunset>)](<https://source.unsplash.com/500x200/?sunset>)

### 2.b. Profile image API

The best example is obviously Gravatar.

[![](<https://www.gravatar.com/avatar/ebf3ff19e1c49eb15dd83d41d5858319?s=500>)](<https://www.gravatar.com/avatar/ebf3ff19e1c49eb15dd83d41d5858319?s=500>)

[Gravatar](<https://en.gravatar.com>): [https://www.gravatar.com/avatar/\<md5 hash of your email\>](<https://www.gravatar.com/avatar/ebf3ff19e1c49eb15dd83d41d5858319?s=500>) and an alternative: [libravatar.org](<https://www.libravatar.org>)

Image a IMGAPI service \<profilepic.idea\>, that would let you do the following:

- *\<profilepic.idea\>/facebook/\<username\>* =\> the FB profile pic of that user (if they exist and the profile pic was public)
- *\<profilepic.idea\>/instagram/\<username\>* =\> the IG profile pic of that user
- *\<profilepic.idea\>/twitter/\<handle\>* =\> the Twitter profile pic
- *\<profilepic.idea\>/google/\<username\>* =\> the Google profile pic
- *\<profilepic.idea\>/linkedin/\<username\>* =\> the Linkedin profile pic
- *\<profilepic.idea\>/favicon/\<domain name\>* =\> the favicon of that website.

This would be rather easy to create and super handy to use. I don’t know why I haven’t found any service like this.

I know that Google used to have a IMGSRCAPI service for profile pics (*`https://profiles.google.com/…/profile/<username>`*) but this has been discontinued.

### 2.c. Screenshot and preview IMG SRC API

Here the service will take a text or a URL and convert this into an image.

[![](<https://mk.forret.com/wp-content/uploads/2020/01/preview-thumbnail.png>)](</wp-content/uploads/2020/01/preview-thumbnail.png>) Social Preview images via [placid.app](<https://placid.app/>)

[![](<https://mk.forret.com/wp-content/uploads/2020/01/8ea39e9d7bfd14304ec719e6aa81c0047f9b36931a2beb6237a4aa544f215176.png>)](</wp-content/uploads/2020/01/8ea39e9d7bfd14304ec719e6aa81c0047f9b36931a2beb6237a4aa544f215176.png>) screenshot via [screengrab.io](<https://screengrab.io/>)

### 2.d. External status IMG SRC API

So this is an image whose content can change based on external information. For instance, in the developer’s world most *badges* and *shields*, often shown on Github README pages, fall under this group.

[![](<https://mk.forret.com/wp-content/uploads/2020/01/FireShot-Capture-004-Shields.io_-Quality-metadata-badges-for-open-source-projects-shields.io_.png>)](</wp-content/uploads/2020/01/FireShot-Capture-004-Shields.io_-Quality-metadata-badges-for-open-source-projects-shields.io_.png>) Auto-updated shields via [[https://shields.io/](<https://shields.io/>)](<https://shields.io/>)

[![](<https://mk.forret.com/wp-content/uploads/2020/01/FireShot-Capture-006-repostatus.org-www.repostatus.org_.png>)](</wp-content/uploads/2020/01/FireShot-Capture-006-repostatus.org-www.repostatus.org_.png>) Repository status via [[https://www.repostatus.org/](<https://www.repostatus.org/>)](<https://www.repostatus.org/>)

Also website monitoring services can provide an image API:

[![](<https://statuspage.freshping.io/badge/6bccd618-0fad-48ab-ac60-4bd10e1f5a56?0.11786404005694817>)](<https://statuspage.freshping.io/badge/6bccd618-0fad-48ab-ac60-4bd10e1f5a56?0.11786404005694817>) [Freshping badge](<https://app.freshping.io/>)

[![](<https://mk.forret.com/wp-content/uploads/2020/01/FireShot-Capture-007-Shields.io_-Quality-metadata-badges-for-open-source-projects-shields.io_.png>)](</wp-content/uploads/2020/01/FireShot-Capture-007-Shields.io_-Quality-metadata-badges-for-open-source-projects-shields.io_.png>) also via [[https://shields.io/category/monitoring](<https://shields.io/category/monitoring>)](<https://shields.io/category/monitoring>)

And how about weather services?

[![](<https://www.theweather.com/wimages/fotoa1baf663eddd0648c35715c710962e8c.png>)](<https://www.theweather.com/wimages/fotoa1baf663eddd0648c35715c710962e8c.png>) via [[https://www.theweather.com/widget/](<https://www.theweather.com/widget/>)](<https://www.theweather.com/widget/>)

[![](<https://www.meteo.be/services/web2016/getObservationBelgiumMap.php?type=D1&amp;language=nl>)](<https://www.meteo.be/services/web2016/getObservationBelgiumMap.php?type=D1&amp;language=nl>) tomorrow’s weather in Belgium via [[https://www.meteo.be](<https://www.meteo.be>)](<https://www.meteo.be/services/web2016/getObservationBelgiumMap.php?type=D1&amp;language=nl>)

[![](<https://s.w-x.co/staticmaps/wu/wu/wxtype1200_cur/conus/current.png>)](<https://s.w-x.co/staticmaps/wu/wu/wxtype1200_cur/conus/current.png>) Latest weather via [wunderground.com](<https://www.wunderground.com/>)

> I probably forgot some types of IMGSRCAPI services, feel free to let me know in the comments, and I will add them!

Hat tips to [johanbostrom.se](<https://johanbostrom.se/blog/the-best-image-placeholder-services-on-the-web>) \* [sharptools.io](<https://community.sharptools.io/t/weather-image-sources/203/5>)
