DEV Community

Discussion on: Get favicons from any domain using a hidden google API

Collapse
 
derlin profile image
Lucy Linder

Here is yet another service: favicongrabber.com

The call looks like:

http://favicongrabber.com/api/grab/dev.to
Enter fullscreen mode Exit fullscreen mode

The response is a JSON with all the available icons (use ?pretty=true for nice json formatting):

{
  "domain": "dev.to",
  "icons": [
    {
      "sizes": "192x192",
      "src": "https://res.cloudinary.com/practicaldev/image/fetch/s--t7tVouP9--/c_limit,f_png,fl_progressive,q_80,w_192/https:/practicaldev-herokuapp-com.freetls.fastly.net/assets/devlogo-pwa-512.png"
    },
    ...
}
Enter fullscreen mode Exit fullscreen mode

However, I got some gateway timeouts and trying favicongrabber.com/api/grab/stacko... currently returns:

{"error":"General API error."}
Enter fullscreen mode Exit fullscreen mode