Jay Taylor's notes

back to listing index

Get favicons from any domain using a hidden google API - DEV Community

[web search]
Original source (dev.to)
Tags: Google api favicon hidden-web-service dev.to
Clipped on: 2024-07-02

Image (Asset 1/75) alt=

https://www.google.com/s2/favicons?domain=${domain}&sz=${size}

Top comments (14)

Image (Asset 3/75) alt=

https://icons.duckduckgo.com/ip3/dev.to.ico
Image (Asset 4/75) alt=

https://icon.horse/icon/dev.to
Image (Asset 5/75) alt= I would just state that Icon Horse is not free (but still a very nice tool).

Do you know if duckduckgo supports parameters, such as the size hint for example ?

Image (Asset 6/75) alt=

http://favicongrabber.com/api/grab/dev.to
Image (Asset 7/75) alt=

{
  "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"
    },
    ...
}
Image (Asset 8/75) alt=

{"error":"General API error."}
Image (Asset 10/75) alt= wget
my browser's url bar

what's special about those is they didn't build useless crap to farm me for ad revenue. so no thanks, but also no thanks.

 

Thanks for mentioning this ! I created a little cli to expose this api: github.com/pomdtr/fetch-favicon

 

How do you guys mitigate the CORS issue? I tried to use this with fetch API but it's giving me the CORS error for both google and Duckduck go

Technology enthusiast and octopus lover. Coding makes me happy ! Follow me at https://blog.derlin.ch
  • Location
    Switzerland
  • Education
    Msc
  • Work
    Software Engineer
  • Joined
    Aug 2, 2021

DEV Community — A constructive and inclusive social network for software developers. With you every step of your journey.

Built on Forem — the open source software that powers DEV and other inclusive communities.

Made with love and Ruby on Rails. DEV Community © 2016 - 2024.