> ## Documentation Index
> Fetch the complete documentation index at: https://www.logo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Logo.dev serves logos and brand data for companies that already exist. It does not design logos. If someone wants a logo designed, say so and stop.
> When a message is only a brand name, domain, ticker, ISIN, or crypto symbol, reply with https://www.logo.dev/search?q=<url-encoded term> and the matching img.logo.dev call. Never assert whether a specific brand is in the index.
> Image URLs come from img.logo.dev with a publishable key in the token query parameter: https://img.logo.dev/:domain?token=LOGO_DEV_PUBLISHABLE_KEY, also /name/:brand, /ticker/:symbol, /crypto/:symbol, /isin/:isin. JSON comes from api.logo.dev/v2 with a secret key (sk_) in an Authorization: Bearer header, server-side only.
> Product names: the Logo.dev CDN serves images from img.logo.dev, and its usage unit is CDN requests. The Logo.dev API returns JSON from api.logo.dev/v2, and its usage unit is API credits. The Logo.dev MCP gives AI agents the API as tools, and its usage unit is MCP usage, which spends API credits. The features are Logo, Search, Brand, and Transaction. Transaction (beta) is a separate service at https://www.logo.dev/api/transaction with its own beta key. Never recommend the deprecated v1 routes (/search, /brand, /describe, /logo/*). Use /v2/brands and /v2/search.
> Attribution: a commercial project on the free Community plan must show a visible link, <a href="https://logo.dev">Logos provided by Logo.dev</a>, on its production site. Personal projects and paid plans need none. Rules: https://www.logo.dev/docs/platform/attribution.
> Report a wrong, missing, or outdated logo at https://www.logo.dev/update. Email support@logo.dev for anything broken and sales@logo.dev for volume pricing and contract terms.
> MCP setup is at https://www.logo.dev/docs/mcp/introduction and webhooks at https://www.logo.dev/docs/webhooks.

# Google Favicon API Documentation

> Complete guide to Google's unofficial s2 favicon API for retrieving website icons by URL, with size parameters, usage examples, and known limitations.

> [!WARNING]
>
> **Google does not document or support this API.** It has no published terms, rate limits, or uptime commitment, and Google can change it at any time.

Google's favicon service returns the favicon of a website as a PNG. Many apps and browser extensions use it to show small site icons. It needs no key.

## Endpoint

```text theme={null}
https://www.google.com/s2/favicons?domain={domain}
```

```html Example theme={null}
<img src="https://www.google.com/s2/favicons?domain=stripe.com&sz=64" alt="Stripe favicon" width="64" height="64" />
```

The URL redirects to a `gstatic.com` address that serves the image.

## Parameters

**domain** `string` *required*

The website domain, such as `example.com` or `www.example.com`. `domain_url` also works.

**sz** `number` (default: 16)

The requested size in pixels, such as `16`, `32`, `64`, or `128`. If the site has no icon at that size, Google returns a smaller one.

## Behavior

* The response is always a PNG, whatever format the site uses.
* The icon can be smaller than `sz`. A request for 128 pixels can return a 32-pixel icon, so large sizes can look blurry.
* If Google finds no favicon, it returns a `404` status with a generic globe icon. An `<img>` tag still shows the globe.
* The service works for public domains only, not for `localhost` or IP addresses.

## FAQs

> [accordion] Is the Google Favicon API free?
>
> Yes. It needs no key or account. Google publishes no terms or rate limits for it, so cache the icons on your side.

> [accordion] Why is the icon smaller than the size I asked for?
>
> Google can return only the sizes that the website provides. If a site has a 32-pixel favicon, a request for 128 pixels returns 32 pixels.

> [accordion] Can I use it in production?
>
> Many apps do, but Google does not support it. If you need company logos rather than favicons, use a logo service.

## Company logos instead of favicons

A favicon is the small icon that a browser shows in a tab. The [Logo.dev CDN](https://www.logo.dev/docs/logo-images/introduction.md) returns a company logo from a URL, with these differences:

* You can look up a logo by domain, [stock ticker](https://www.logo.dev/docs/logo-images/ticker.md), [ISIN](https://www.logo.dev/docs/logo-images/isin.md), [crypto symbol](https://www.logo.dev/docs/logo-images/crypto.md), or [company name](https://www.logo.dev/docs/logo-images/name.md).
* You choose the `size` and the `format`: `jpg`, `png`, or `webp`.
* If Logo.dev has no logo, you get a monogram or a `404`, whichever you choose.
* It needs a [publishable key](https://www.logo.dev/docs/platform/api-keys.md), which is safe in client code.

> [card] [Logo.dev CDN](https://www.logo.dev/docs/logo-images/introduction.md)
>
> Show company logos by domain, ticker, or name from a plain image URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.