Find the favicon of any web site, the avatar of an email address the logo of a sports team, the icon of a currency, the flag of a country or the logo of a brand or an app. One URL, ready for <img src>.
icon, shortcut icon, apple-touch-icon),/favicon.svg, /favicon.png, /apple-touch-icon.png, /favicon.ico,EUR, GBP) or the icon of a crypto currency (BTC, tether), optionally with the icon of its network (Currency icons).DE, jpn, 840, germany) as an SVG (Flags).github, heineken) or the icon of a mobile app (calm) given by its name, from Simple Icons, Wikidata, the App Store or Google Play (Logos).<img> elements for you:
give it a domain name, any URL of a site (https://www.bbc.com/news) or an email address.
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/wikipedia.org'
| URL parameter | Description | Hints |
|---|---|---|
| id | Domain name of the web site, e.g. wikipedia.org or www.github.com, or an email address (see Get avatar). | Required. Without scheme, path and port; IP addresses are not accepted. International domain names are supported. |
| preferredSize | Query parameter: preferred icon size in pixels. | Optional, default 64. A number from 1 to 1024. When there is no icon of that size, the nearest larger one is returned, otherwise the largest one. |
| fallback | Query parameter: URL of an image to redirect to when the favicon cannot be determined. | Optional. Absolute http(s) URL, URL encoded. Ignored for email addresses. |
| 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). |
| 304 Not Modified | The If-None-Match request header matches the ETag of the redirect (301 and 302 have one). |
| 400 Bad Request | Invalid domain name, email address, preferred size, color or fallback URL. |
curl -L 'https://favicon.intami.pl/favicon/github.com' --output favicon
<img src="https://favicon.intami.pl/favicon/github.com?preferredSize=32" 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="">
curl 'https://favicon.intami.pl/avatar/john.smith@example.com' --output avatar
The avatar is available at /avatar/{email} and, the same, at /favicon/{email}.
_avatars-sec._tcp, _avatars._tcp), otherwise the central Libravatar,default._bimi TXT record).@ without a +tag is split at ., - and _;
the first letters of the first and the last part are used (john.smith, john-paul-smith, john_smith give JS),
otherwise the first two letters (jsmith gives JS), in upper case.
| URL parameter | Description | Hints |
|---|---|---|
| id | Email address, e.g. john.smith@example.com. | Required. Upper and lower case letters are the same address. |
| preferredSize | Query parameter: preferred avatar size in pixels. | Optional, default 64. A number from 1 to 1024 (Libravatar gives at most 512). Also the size of a generated image. |
| color | Query parameter: background of a generated image, color (a color chosen by the address) or mono (black). | Optional, default color. The letters are always white. |
| Status | Description |
|---|---|
| 200 OK | The avatar or the BIMI logo (image/png, image/jpeg, image/svg+xml, ...) or the generated image (image/svg+xml), with an ETag header. |
| 304 Not Modified | The If-None-Match request header matches the ETag of the image. |
| 400 Bad Request | Invalid email address, preferred size or color. |
<img src="https://favicon.intami.pl/avatar/john.smith@example.com?preferredSize=32&color=mono" width="32" height="32" alt="">
curl -I 'https://favicon.intami.pl/basketball/lakers'
basketball: NBA, WNBA,baseball: MLB,football (American football): NFL,soccer: top leagues of England (also the Championship), Spain, Germany, Italy, France, Netherlands, Portugal, Belgium, Turkey, Scotland, Austria, Switzerland, Greece, Denmark, Norway, Sweden, MLS, USL Championship, Brazil, Argentina, Mexico, Chile, Colombia, Uruguay, Peru, Ecuador, Paraguay, Venezuela, Bolivia,hockey: NHL,rugby: Premiership, United Rugby Championship, Super Rugby Pacific, Top 14, Six Nations, Rugby World Cup,volleyball, handball./soccer/legia, /volleyball/sir-safety-perugia, /handball/thw-kiel, /soccer/dinamo-zagreb.los-angeles-lakers, Los Angeles Lakers and los_angeles_lakers are the same.
The full name wins, then a short name (lakers), then the abbreviation (LAL); when names repeat, the earlier league in the list above wins.
Names are mostly in English, e.g. bayern-munich, dinamo-zagreb.
| URL parameter | Description | Hints |
|---|---|---|
| sport | Path: basketball, baseball, football, soccer, hockey, rugby, volleyball or handball. | Required. |
| team | Path: full name, short name or abbreviation of the team, e.g. real-madrid. | Required. At most 100 characters, URL encoded. |
| preferredSize | Query parameter: preferred logo size in pixels. | Optional, default 64. A number from 1 to 1024; the logo is scaled down or its nearest larger variant is used. |
| fallback | Query parameter: URL of an image to redirect to when the team cannot be found. | Optional. Absolute http(s) URL, URL encoded. |
| Status | Description |
|---|---|
| 301 Moved Permanently | The Location header contains the URL of the logo. |
| 302 Found | The team cannot be found and fallback is given: the Location header contains the fallback URL. |
| 404 Not Found | Unknown sport or the team cannot be found. |
| 304 Not Modified | The If-None-Match request header matches the ETag of the redirect. |
| 400 Bad Request | Invalid team name, preferred size or fallback URL. |
<img src="https://favicon.intami.pl/soccer/real-madrid?preferredSize=32" width="32" height="32" alt="">
curl 'https://favicon.intami.pl/currency/USDT?withNetwork=true'
<img src>.EUR, USD, GBP, ...) or English name (euro, us-dollar, pound-sterling, yen) and shown as their symbol (€, $, £; the code when there is none) in a colored circle with the small round flag of the country in the bottom-right corner (circle-flags, MIT), so USD and CAD can be told apart; EUR has the flag of the European Union, XAF of Cameroon, XOF of Côte d'Ivoire, XCD of Saint Kitts and Nevis. Fiat codes and names are checked first (sol is Solana, the Peruvian sol is Peruvian Sol).BTC), id (bitcoin, tether) or name (Wrapped Bitcoin), case-insensitive; icons from web3icons (MIT). When several tokens have the same symbol, the native coin of a network wins, then the one with the higher market cap.withNetwork=true adds the icon of the network of a crypto currency in the bottom-right corner: the network of a native coin (BTC - Bitcoin, ETH - Ethereum, BNB - BNB Smart Chain),
otherwise the first network the token is listed on (USDT - Ethereum). Without a known network the plain icon is returned; it is ignored for fiat currencies.
| URL parameter | Description | Hints |
|---|---|---|
| name | Path: ISO 4217 code or English name of a fiat currency or symbol, id or name of a crypto currency, e.g. EUR, euro, btc, tether. | Required. At most 64 characters, URL encoded. |
| preferredSize | Query parameter: width and height of the image in pixels. | Optional, default 64. A number from 1 to 1024. |
| withNetwork | Query parameter: true adds the icon of the network of a crypto currency. | Optional, default false. true or false. |
| fallback | Query parameter: URL of an image to redirect to when the currency cannot be found. | Optional. Absolute http(s) URL, URL encoded. |
| Status | Description |
|---|---|
| 200 OK | The SVG image of the currency (image/svg+xml) with an ETag. |
| 304 Not Modified | The If-None-Match request header matches the ETag of the image. |
| 302 Found | The currency cannot be found (or its icon cannot be fetched) and fallback is given: the Location header contains the fallback URL. |
| 404 Not Found | The currency cannot be found. |
| 400 Bad Request | Invalid currency name, preferred size, withNetwork or fallback URL. |
| 502 Bad Gateway | The icon cannot be fetched at the moment. |
<img src="https://favicon.intami.pl/currency/USDT?withNetwork=true&preferredSize=32" width="32" height="32" alt="">
curl 'https://favicon.intami.pl/flag/DE?preferredSize=32'
preferredSize wide and 3/4 of it high, ready for <img src>; flags from flag-icons (MIT).img.flag { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }.DE), alpha-3 (DEU) or numeric (276) code, case-insensitive; EU (European Union) and UN (United Nations) also work.germany, United States, usa, ivory-coast; england, scotland, wales and northern-ireland have their own flags.| URL parameter | Description | Hints |
|---|---|---|
| country | Path: ISO 3166-1 code or English name of the country, e.g. DE, jpn, 840, united-states. | Required. At most 64 characters, URL encoded. |
| preferredSize | Query parameter: width of the image in pixels, the height is 3/4 of it. | Optional, default 64. A number from 1 to 1024. |
| fallback | Query parameter: URL of an image to redirect to when the flag cannot be found. | Optional. Absolute http(s) URL, URL encoded. |
| Status | Description |
|---|---|
| 200 OK | The SVG image of the flag (image/svg+xml) with an ETag. |
| 304 Not Modified | The If-None-Match request header matches the ETag of the image. |
| 302 Found | The flag cannot be found (or fetched) and fallback is given: the Location header contains the fallback URL. |
| 404 Not Found | The code is not a country (e.g. a continent), the name is unknown or there is no flag of it. |
| 400 Bad Request | Empty or too long country, invalid preferred size or fallback URL. |
| 502 Bad Gateway | The flag cannot be fetched at the moment. |
<img src="https://favicon.intami.pl/flag/DE?preferredSize=32" width="32" height="24" alt="Germany">
curl -i 'https://favicon.intami.pl/logo/github?preferredSize=32'
duolingo - Duolingo: Learn Languages), of the requested size,github, GitHub and git-hub are the same.| URL parameter | Description | Hints |
|---|---|---|
| name | Path: name of a company, brand, product or mobile app, e.g. github, heineken, citymapper. | Required. At most 100 characters, URL encoded. |
| preferredSize | Query parameter: width and height of the image in pixels. | Optional, default 64. A number from 1 to 1024. |
| fallback | Query parameter: URL of an image to redirect to when nothing is found. | Optional. Absolute http(s) URL, URL encoded. |
| Status | Description |
|---|---|
| 200 OK | The Simple Icons SVG image of the brand (image/svg+xml) with an ETag. |
| 301 Moved Permanently | The Location header contains the URL of the logo (Wikimedia Commons), of the favicon of the official website or of the app icon. |
| 304 Not Modified | The If-None-Match request header matches the ETag of the image or the redirect. |
| 302 Found | Nothing is found (or the SVG cannot be fetched) and fallback is given: the Location header contains the fallback URL. |
| 404 Not Found | Nothing is found. |
| 400 Bad Request | Invalid name, preferred size or fallback URL. |
| 502 Bad Gateway | The SVG cannot be fetched at the moment. |
<img src="https://favicon.intami.pl/logo/spotify?preferredSize=32" width="32" height="32" alt="">
A small script (favicon.js, no dependencies) that shows favicons and avatars in your page without building the URLs yourself.
Mark images with the data-icon-id attribute and the script does the rest: it asks the API for the favicon of the site
or the avatar of the email address 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-icon-id="wikipedia.org" src="default-icon.png" width="32" height="32" alt="">
<img data-icon-id="https://github.com/golang/go" data-preferred-size="32" src="default-icon.png" width="32" height="32" alt="">
<img data-icon-id="john.smith@example.com" data-color="mono" src="default-icon.png" width="32" height="32" alt="">
| Name | Description | Hints |
|---|---|---|
| data-icon-id | The web site whose favicon is shown: a domain name (wikipedia.org) or any URL of the site (https://www.bbc.com/news?id=1); or the email address whose avatar is shown (john.smith@example.com, also mailto:john.smith@example.com). | Required. Only the host name of a URL is used; img elements only. |
| data-preferred-size | Preferred favicon size in pixels, passed to the API as preferredSize: that size, otherwise the nearest larger one, otherwise the largest one available. | Optional, default 64. A number from 1 to 1024; with an invalid value the favicon is missing. |
| data-color | Background of an image generated for an email address without an avatar, passed to the API as color: color or mono (black). | Optional, default color; with an invalid value the image is missing. |
| 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-icon-id 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-icon-id, data-preferred-size or data-color are handled automatically.
<style> img.favicon-missing { display: none; } </style>
<a href="https://github.com"><img data-icon-id="https://github.com" width="16" height="16" alt=""> GitHub</a>






This API has no request limit.
Found icons, avatars, currency icons, flags and logos are cached for 7 days, missing ones for 1 day, generated avatars for 90 days; responses can be cached by browsers for 1 day and used for another day while they are revalidated (stale-while-revalidate, ETag).
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.