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

> ## Agent Instructions
> Brandfetch returns real company logos, brand data, and brand context. It does not design, generate, or edit logos.
> To show a logo in a user interface, use the Logo API as an image URL in an <img> tag, such as https://cdn.brandfetch.io/domain/{domain}?c={CLIENT_ID}. The client ID is public and belongs in frontend code. Never download, proxy, re-host, or optimize these images on a server, because requests that look programmatic are redirected with automated_traffic. In Next.js, this means next/image needs a custom loader or the unoptimized prop.
> To turn a company name that a user types into a domain, use the Brand Search API with the same client ID, and keep only the domain the user picks.
> For colors, fonts, downloadable logo files, and company data as JSON, call the Brand API from a server with the header Authorization: Bearer {API_KEY}, reading the key from an environment variable and never exposing it to the browser. Prefer typed routes such as /v2/brands/domain/{domain} and /v2/brands/ticker/{ticker} over the auto-detect route /v2/brands/{identifier}.
> Use the Brand Context API for a written summary of what a company does, who it sells to, and how it sounds, and the Transaction API to identify the merchant behind a card or bank transaction label.
> When a request fails, branch on the x-bf-error header code rather than on the status code or the message text. Every code, and what to do about it, is listed at https://docs.brandfetch.com/concepts/errors.
> Requests for brandfetch.com are free on the Brand API and Brand Context API, so use that domain in tests and examples.
> Brand API responses can be cached for up to 30 days, while Logo API images must be hotlinked rather than stored and Brand Search results must not be stored at all. See https://docs.brandfetch.com/concepts/caching.
> If the user has no credentials yet, https://brandfetch.com/auth.md explains how they get a client ID and an API key. An agent without an account can pay $0.10 per Brand API, Brand Context API, or Transaction API request with x402 or MPP, as described at https://docs.brandfetch.com/agents/pay-per-request.

# DuckDuckGo Favicon API

> How DuckDuckGo's icons.duckduckgo.com URL works, the .ico it returns, the placeholder you get on a miss, and a logo API alternative.

The DuckDuckGo Favicon API is an internal DuckDuckGo image URL on `icons.duckduckgo.com` that returns a website's favicon. Developers reuse it to display company icons for free, since it needs no key or account.

> [!WARNING]
>
> DuckDuckGo doesn't document or support this endpoint for third-party use. There are no published terms, rate limits, or uptime commitments, and it can change or stop working at any time.

## How to use the DuckDuckGo Favicon API

Add the domain and `.ico` to the path, and put the URL in an `<img>` tag:

```html theme={null}
<img src="https://icons.duckduckgo.com/ip3/nike.com.ico" alt="Nike" width="32" height="32" />
```

There are no parameters for size or format, because the endpoint returns the site's own `.ico` file as it is.

## Which sizes it returns

An `.ico` file can hold several sizes, and DuckDuckGo returns whichever ones the site packed into it, which is commonly 16 to 48 pixels. You can't ask for a larger size, so an icon shown at 64px or above usually looks blurry.

## What happens when there is no favicon

When a site has no favicon, DuckDuckGo returns a generic placeholder icon with a `404` status. Browsers render the placeholder anyway, so your page shows it in place of the missing icon, and the only way to catch a miss is to fetch the URL from your own code and check for the `404`.

## Favicon vs logo

A favicon is a browser-tab icon, designed to be legible at 16 by 16 pixels, and many are cropped, simplified, or unrelated to the company's actual logo. A logo API returns the brand's real assets instead: the icon, the symbol, and the full horizontal logo, in light and dark versions. Brandfetch returns a logo for 95% of brands in its core sample, and for 86% in an uncurated sample of local, non-tech businesses, with the method and results published on [coverage and quality](https://docs.brandfetch.com/accuracy/coverage-and-quality.md).

## DuckDuckGo Favicon API vs Brandfetch Logo API

| | DuckDuckGo Favicon API | Brandfetch Logo API |
| - | - | - |
| Status | Undocumented, unsupported | Documented, with a [status page](https://status.brandfetch.io/) |
| Returns | The site's favicon | The brand's icon, symbol, or logo |
| Sizes | Whatever the site's `.ico` holds, commonly 16 to 48px | Any width or height from 16 to 2048px, aspect ratio kept |
| Formats | ICO | WebP, PNG, JPG, and SVG for logos and symbols |
| Light and dark versions | No | Yes |
| On a miss | Generic placeholder with a `404` | Your choice: lettermark, transparent, Brandfetch logo, or an empty `404` |
| Look up by | Domain | [Domain, stock ticker, ISIN, or crypto symbol](https://docs.brandfetch.com/concepts/identifiers.md) |
| Free usage | Not published | [1,000,000 requests a month](https://docs.brandfetch.com/concepts/limits-and-billing.md) |
| Key | None | A free [client ID](https://docs.brandfetch.com/concepts/authentication.md#client-id), safe in frontend code |

## Switch from the DuckDuckGo Favicon API

Switching is a one-line change. Keep the same domain, and set the size with `w` and `h`:

**DuckDuckGo Favicon API**

```text theme={null}
https://icons.duckduckgo.com/ip3/nike.com.ico
```

**Brandfetch**

```text theme={null}
https://cdn.brandfetch.io/nike.com/w/128/h/128/icon?c=BRANDFETCH_CLIENT_ID
```

* `icon` is the square brand icon and the closest match to a favicon. `logo` gives you the horizontal logo, and `symbol` gives you the mark.
* `fallback/404` returns an empty `404` on a miss, so you can show your own placeholder. `fallback/lettermark` returns the brand's initial on a square.

You can get a client ID in the [developer dashboard](https://developers.brandfetch.com/register). Every option is listed in [Logo API parameters](https://docs.brandfetch.com/logo-api/parameters.md), and the [Google Favicon API](https://docs.brandfetch.com/guides/google-favicon-api.md) page covers Google's equivalent endpoint.

## FAQ

> [accordion] Is the DuckDuckGo Favicon API free?
>
> Yes, it needs no key or account. But DuckDuckGo doesn't publish any limits or terms for it, so there's no guarantee it stays available.

> [accordion] Can I choose the size?
>
> No. The endpoint returns the site's `.ico` file as it is, which usually holds icons between 16 and 48 pixels.

> [accordion] Can the DuckDuckGo Favicon API return a company logo?
>
> No, it only returns the favicon the site declares. For a company's logo, symbol, or icon in light and dark versions, use a logo API such as the [Brandfetch Logo API](https://docs.brandfetch.com/logo-api/overview.md).

## Get started

> [card] [Logo API overview](https://docs.brandfetch.com/logo-api/overview.md)
>
> Show any company's logo with an image URL.

> [card] [Get your client ID](https://developers.brandfetch.com/register)
>
> Free account, no credit card required.


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