Skip to main content
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.
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:
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. 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.

DuckDuckGo Favicon API vs Brandfetch Logo API

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
Brandfetch
  • 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. Every option is listed in Logo API parameters, and the Google Favicon API page covers Google’s equivalent endpoint.

FAQ

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.
No. The endpoint returns the site’s .ico file as it is, which usually holds icons between 16 and 48 pixels.
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.

Get started

Logo API overview

Show any company’s logo with an image URL.

Get your client ID

Free account, no credit card required.