Is there a service that provides apple-touch-icon from website like Google offers favicons?

1.1k Views Asked by At

For years I've used this neat little unpublished Google service for retrieving favicons from websites.

http://www.google.com/s2/u/0/favicons?domain=stackoverflow.com

This allows me to create icons for <li> tags and such when listing URLs. I was wondering if something existed for Apple touch icons that are becoming more prevalent, especially among major websites.

If not, what would be the most efficient way to retrieve this using PHP?

Here are some examples of icon tags:

<link rel="apple-touch-icon" href="apple-touch-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-iphone4.png" />
<link rel="apple-touch-icon" sizes="144x144" href="apple-touch-ipad-retina.png" />

Thanks in advance.

1

There are 1 best solutions below

1
On

Most websites (not all, but most) will hold apple-touch-iphone.png in the root.

A simpler alternative to parsing the HTML via PHP would be to just load domain.com/apple-touch-iphone.png