Search code examples
urlgoogle-apisubdomainfavicon

Google s2 favicon retrieval doesn't work with subdomains


I'm using Google's favicon retrieval url which works well unless using subdomains.

This works: https://www.google.com/s2/favicons?domain=facebook.com

This doesn't https://www.google.com/s2/favicons?domain=fortawesome.github.io

Thoughts?


Solution

  • That domain doesn't have a favicon at its root.

    Since the s2 service does not support lookups for specific paths, there is nothing you can do.

    (also note that this URL is not a public API, and there are no guarantees that it will continue to exist)