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.
How to use the DuckDuckGo Favicon API
Add the domain and.ico to the path, and put the URL in an <img> tag:
.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 a404 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.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 withw and h:
DuckDuckGo Favicon API
iconis the square brand icon and the closest match to a favicon.logogives you the horizontal logo, andsymbolgives you the mark.fallback/404returns an empty404on a miss, so you can show your own placeholder.fallback/lettermarkreturns the brand’s initial on a square.
FAQ
Is the DuckDuckGo Favicon API free?
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.
Can I choose the size?
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.Can the DuckDuckGo Favicon API return a company logo?
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.
Get started
Logo API overview
Show any company’s logo with an image URL.
Get your client ID
Free account, no credit card required.