Find the favicon of any web site. One URL, ready for <img src>.
icon, shortcut icon, apple-touch-icon),/favicon.svg, /favicon.png, /apple-touch-icon.png, /favicon.ico.sizes attribute, SVG is the largest), formats other than ICO first.If you have found this API useful but feel that a feature is missing, please share your suggestions with us via email.
curl -I 'https://favicon.intami.pl/favicon/wp.pl'
| URL parameter | Description | Hints |
|---|---|---|
| domain | Domain name of the web site, e.g. wp.pl or www.github.com. | Required. Without scheme, path and port; IP addresses are not accepted. International domain names are supported. |
| fallback | Query parameter: URL of an image to redirect to when the favicon cannot be determined. | Optional. Absolute http(s) URL, URL encoded. |
| Status | Description |
|---|---|
| 301 Moved Permanently | The Location header contains the URL of the favicon. |
| 302 Found | The favicon cannot be determined and fallback is given: the Location header contains the fallback URL. |
| 404 Not Found | The favicon cannot be determined (no icon or the site cannot be reached). |
| 400 Bad Request | Invalid domain name or fallback URL. |
curl -L 'https://favicon.intami.pl/favicon/github.com' --output favicon
<img src="https://favicon.intami.pl/favicon/github.com" width="32" height="32" alt="">
<img src="https://favicon.intami.pl/favicon/github.com?fallback=https%3A%2F%2Fexample.com%2Fdefault-icon.png" width="32" height="32" alt="">
A small script (favicon.js, no dependencies) that shows favicons in your page without building the URLs yourself.
Mark images with the data-site-url attribute and the script does the rest: it asks the API for the favicon of the site
and, when there is one, puts it into src of the image. When there is no favicon, the image keeps its own src,
so it works as a placeholder.
<head>:
<script src="https://favicon.intami.pl/favicon.js" defer></script>
<img data-site-url="wp.pl" src="default-icon.png" width="32" height="32" alt="">
<img data-site-url="https://github.com/golang/go" src="default-icon.png" width="32" height="32" alt="">
| Name | Description | Hints |
|---|---|---|
| data-site-url | The web site whose favicon is shown: a domain name (wp.pl) or any URL of the site (https://www.wp.pl/news?id=1). | Required. Only the host name is used; img elements only. |
| src | Image shown while the favicon is loading and when there is none. | Optional. Use your default icon or a transparent image. |
| class favicon-found | Added when the favicon was found and set as src. | |
| class favicon-missing | Added when the site has no favicon or data-site-url is invalid; src is not changed. | E.g. img.favicon-missing { display: none; } hides such images. |
src is replaced only when it has loaded, so there are no broken image icons.data-site-url are handled automatically.
<style> img.favicon-missing { display: none; } </style>
<a href="https://github.com"><img data-site-url="https://github.com" width="16" height="16" alt=""> GitHub</a>




This API has no request limit.
Found icons are cached for 7 days, missing icons for 1 day; responses can be cached by browsers for 1 day.
Fetch basic address information based on zip code. Find zip codes for a city or district.
Extract and decode QRCodes and BarCodes from a document. Generate QRCodes and BarCodes.
Provides basic geographical data. Resolves location by IP.