Guide
Google favicon API: how it works, limits, alternatives
What the s2/favicons URL does, where it falls short, and two no-key alternatives.
Alon Harpaz7 min read
Migration
Clearbit shut its Logo API down in December 2025. Swap every URL form in one line.
The best free alternative to the Clearbit Logo API is LogoAPI.sh: swap logo.clearbit.com/{domain} for logoapi.sh/{domain}.svg. No key, no signup, no attribution, 2M requests a month per site.
Clearbit’s Logo API shut down in December 2025. LogoAPI.sh is a free Clearbit Logo API alternative with the same shape: one image URL, the company domain, no key, no signup. The file is SVG by default, and PNG is one extension away. Migrate in one line.
Live files from logoapi.sh, unedited.
stripe.comlogoapi.sh/stripe.com.svgsharp at any size, no keyEvery Clearbit URL form, and what to use instead. Clearbit parameters are as documented by Clearbit before shutdown (archived copy of clearbit.com/docs).
| Clearbit | LogoAPI.sh | Note |
|---|---|---|
logo.clearbit.com/stripe.com | logoapi.sh/stripe.com.svg | The bare form logoapi.sh/stripe.com gives the same answer, without the extension. Use .svg so the file type is clear. |
?size=128 (any integer, default 128) | Not supported | SVG has no pixel size. Set height or width on the <img> and it stays sharp. |
?format=png or jpg (default png) | Not supported | SVG has no pixel size. For a raster file add .png: logoapi.sh/stripe.com.png is PNG at 128 to 1024 px (?size=128|256|512|1024, ?bg=white for a white background). JPG and WebP are not available; WebP is listed as coming soon. |
?greyscale=true (boolean) | logoapi.sh/grey/stripe.com.svg | Grey removes the colour. Also available: white, black and dark (for dark backgrounds), e.g. /white/stripe.com.svg. |
| Square logo in an avatar | logoapi.sh/icon/github.com.svg | The square mark, for avatars and lists. Here you choose the wordmark or the icon. |
| Company name to domain | logoapi.sh/search?q=stripe | Matches an exact brand name, an exact domain or a close typo. Up to 8 JSON results with logo and icon URLs. |
| Notice before the free tier is reduced or removed: About 6 months, then ended Dec 2025 | 12 months | Clearbit: HubSpot’s sunset notice, June 2025. LogoAPI.sh: our terms. |
The table maps Clearbit’s URL forms. LogoAPI.sh has more routes, such as favicons, colour variants, search and brand pages. All of them are on the docs page.
Every valid domain returns an image: the live favicon, then a wordmark tile with the brand name (.svg URLs skip the favicon and always return an SVG). To run your own onerror fallback, add ?fallback=404 and an unknown domain returns a 404. Without it, the bare URL always returns an image, so onerror never fires.
<img src="https://logoapi.sh/stripe.com.svg" alt="Stripe" height="24"
onerror="this.onerror=null;this.src='/img/generic-company.svg'">
Every response sends Access-Control-Allow-Origin: *, so this works from any site.
async function logoUrl(domain) {
const url = `https://logoapi.sh/${domain}.svg?fallback=404`;
const res = await fetch(url);
return res.ok ? url : '/img/generic-company.svg'; // 404 = not in the catalog
}
logoUrl('stripe.com').then(src => { img.src = src; });
import { useState } from 'react';
export function CompanyLogo({ domain, name, height = 24 }) {
const [failed, setFailed] = useState(false);
const src = failed
? '/img/generic-company.svg'
: `https://logoapi.sh/${domain}.svg?fallback=404`;
return (
<img src={src} alt={name} height={height}
onError={() => setFailed(true)} />
);
}
Keep your own fallback image. The snippets use /img/generic-company.svg as in the docs example; point it at a file you host.
An SVG is drawn from shapes, so it stays crisp when you zoom in or set a larger height. A raster file has a fixed grid of pixels.
Illustration: any 32px raster scaled up. Both images come from the same LogoAPI.sh file.
This covers the Logo API only. It does not replace Clearbit’s enrichment products. Rival terms come from each service’s own pricing and docs pages, checked on the best free logo API comparison.
| API | Free tier | Key needed | Attribution | SVG |
|---|---|---|---|---|
| LogoAPI.sh | 2M requests a month per site. Free. | No key. No signup. | None | Yes |
| Logo.dev | 500K Logo CDN requests a month, plus $5 in API credits | Publishable key (pk_) in the token parameter | Link back for commercial projects on the free plan | No. “The CDN does not serve SVG.” |
| Brandfetch | 1,000,000 requests a month, fair use (soft limit) | Client ID on every request | Not required | Logo and symbol types only |
| LogoKit | 5,000 requests a day, 64x64 | API key, sign up | Required on the Free plan | No |
More APIs, sources and when another one wins: best free logo API.
Files are vector and sharp at any size. There is no format parameter, and SVG needs no size. For a raster file add .png (128 to 1024 px). WebP is listed as coming soon.
2M requests a month per site. Free, no key, no attribution. Logo updates go live everywhere within a day.
LogoAPI.sh serves a curated catalog of 5,031 brands, not every domain on the web. If you looked up long-tail domains with Clearbit, some will return a name tile (or the site's favicon on the bare URL) instead of a logo. Add ?fallback=404 to get a 404. The Logo Finder shows what is covered.
A domain we do not have returns the site's live favicon, then a wordmark tile with the brand name (.svg URLs skip the favicon and always return an SVG). Add ?fallback=404 for a plain-text 404 and your own fallback. Missing a brand? Email hello@logoapi.sh.
Trademark owners can claim or correct a logo on the Claim page. Takedown requests go through Remove. Contacts: claim@logoapi.sh and takedown@logoapi.sh.
Looking up lots of unknown domains in a loop? Cache the result in your app. Need bulk? Email hello@logoapi.sh.
The best free alternative to the Clearbit Logo API is LogoAPI.sh: swap logo.clearbit.com/{domain} for logoapi.sh/{domain}.svg. No key, no signup, no attribution, 2M requests a month per site.
LogoAPI.sh works the same way Clearbit did: one image URL with the company domain, https://logoapi.sh/<domain>.svg. No API key, no account, no attribution link. It is free: 2M requests a month per site. The trade-off: files are SVG, and the catalog is curated, not every domain. Comparing other services? See LogoAPI.sh as a free Logo.dev alternative.
No. Clearbit shut its Logo API down in December 2025, so logo.clearbit.com URLs no longer serve logos. Replace the host and add .svg: logoapi.sh/<domain>.svg.
Yes. Add .png to a logo URL, for example https://logoapi.sh/stripe.com.png: a transparent PNG at 128 to 1024 px (?size=128|256|512|1024, ?bg=white for a white background). Use it for email, where Gmail and Outlook block SVG, and for older tools. WebP is listed as coming soon. Most <img> tags and CSS backgrounds accept SVG.
You get the site's live favicon, then a wordmark tile with the brand name (.svg URLs skip the favicon and always return an SVG). Add ?fallback=404 to get a 404, so your onerror or fetch fallback runs. Search by name to see if the brand lives on another domain; some brands answer on several domains.