# Favicon API
> Free HTTP API that turns a name into an image URL ready for `
`: the favicon of a web site, the avatar of an email address, the logo of a sports team, the icon of a fiat or crypto currency, the flag of a country, or the logo of a company, brand or mobile app. No API key, no sign-up, plain GET requests.
Base URL: `https://favicon.intami.pl`. Every endpoint is a GET (HEAD also works) that returns either an image (`200`) or a redirect to one (`301`), so the URL itself can be used as an image source. Common query parameters: `preferredSize` (pixels, 1-1024, default 64) and `fallback` (absolute http(s) URL of your own image, returned as a `302` when nothing is found). Unknown names give `404`, invalid parameters `400`. Responses have an `ETag` and `Cache-Control: public, max-age=86400`.
## Endpoints
- `GET /favicon/{domain}` - favicon of a web site, e.g. `https://favicon.intami.pl/favicon/github.com?preferredSize=32` (`301` to the icon; domain only, no scheme or path).
- `GET /avatar/{email}` - avatar of an email address (Gravatar, Libravatar, BIMI logo of the domain, otherwise generated initials; always `200`), e.g. `https://favicon.intami.pl/avatar/john.smith@example.com?color=mono`. `/favicon/{email}` is the same.
- `GET /{sport}/{team}` - logo of a sports team; sport is `basketball`, `baseball`, `football` (American), `soccer`, `hockey`, `rugby`, `volleyball` or `handball`, e.g. `https://favicon.intami.pl/basketball/lakers`, `https://favicon.intami.pl/soccer/real-madrid`.
- `GET /currency/{name}` - SVG icon of a fiat currency (ISO 4217 code or English name, its symbol with a small flag of its country) or a crypto currency (symbol, id or name); `withNetwork=true` adds the icon of its network, e.g. `https://favicon.intami.pl/currency/EUR`, `https://favicon.intami.pl/currency/usdt?withNetwork=true`.
- `GET /flag/{country}` - SVG rectangular (4:3) flag of a country (ISO 3166-1 alpha-2, alpha-3 or numeric code or English name), e.g. `https://favicon.intami.pl/flag/DE`, `https://favicon.intami.pl/flag/jpn`, `https://favicon.intami.pl/flag/united-states`.
- `GET /logo/{name}` - logo of a company, brand or product, otherwise the icon of a mobile app (App Store, Google Play), e.g. `https://favicon.intami.pl/logo/github`, `https://favicon.intami.pl/logo/heineken`.
Names are compared without case, accents and punctuation: `los-angeles-lakers`, `Los Angeles Lakers` and `los_angeles_lakers` are the same. URL-encode names with spaces.
## Docs
- [Full description for LLMs](https://favicon.intami.pl/llms-full.txt): every endpoint with parameters, responses, matching rules and limits.
- [OpenAPI 3 specification](https://favicon.intami.pl/open-api.yaml): machine-readable description of all endpoints.
- [Home page](https://favicon.intami.pl/index.html): human documentation with live examples.
## Optional
- [JavaScript library](https://favicon.intami.pl/favicon.js): fills `
` elements with favicons and avatars.