The Clearbit alternative
for logos from any URL
logo.clearbit.com stopped answering on December 8, 2025. Microlink reads the logo from the site itself and returns it with brand colors and metadata in one call.
The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://www.cloudflare.com' URL with 'palette' API parameter:
CLI Microlink API example
microlink https://www.cloudflare.com --palettecURL Microlink API example
curl -G "https://api.microlink.io" \
-d "url=https://www.cloudflare.com" \
-d "palette=true"JavaScript Microlink API example
import createClient from 'microlink.io'
const microlink = createClient()
const data = await microlink.metadata('https://www.cloudflare.com', {
palette: true
})Python Microlink API example
import requests
url = "https://api.microlink.io/"
querystring = {
"url": "https://www.cloudflare.com",
"palette": "true"
}
response = requests.get(url, params=querystring)
print(response.json())Ruby Microlink API example
require 'uri'
require 'net/http'
base_url = "https://api.microlink.io/"
params = {
url: "https://www.cloudflare.com",
palette: "true"
}
uri = URI(base_url)
uri.query = URI.encode_www_form(params)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
response = http.request(request)
puts response.bodyPHP Microlink API example
<?php
$baseUrl = "https://api.microlink.io/";
$params = [
"url" => "https://www.cloudflare.com",
"palette" => "true"
];
$query = http_build_query($params);
$url = $baseUrl . '?' . $query;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET"
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #: " . $err;
} else {
echo $response;
}Golang Microlink API example
package main
import (
"fmt"
"net/http"
"net/url"
"io"
)
func main() {
baseURL := "https://api.microlink.io"
u, err := url.Parse(baseURL)
if err != nil {
panic(err)
}
q := u.Query()
q.Set("url", "https://www.cloudflare.com")
q.Set("palette", "true")
u.RawQuery = q.Encode()
req, err := http.NewRequest("GET", u.String(), nil)
if err != nil {
panic(err)
}
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}import createClient from 'microlink.io'
const microlink = createClient()
const data = await microlink.metadata('https://www.cloudflare.com', {
palette: true
})Resolve it once, serve it from your side.
embed=logo.url turns the response into the image itself, so an <img> tag works for a quick test. In production every logo on a page is one request, and without a key a visitor gets 5 a day, so a page with more logos than that breaks on its first view. Resolve the logo on your server with your key, store the file, and serve it yourself. For an image URL with no server, use unavatar.io/{domain}, built by the Microlink team, with a publishable key as ?token=pk_….<img src="https://logo.clearbit.com/cloudflare.com" alt="Cloudflare"><img src="https://api.microlink.io/?url=https%3A%2F%2Fwww.cloudflare.com&embed=logo.url" alt="Cloudflare">import { mkdir, writeFile } from 'node:fs/promises'
import createClient from 'microlink.io'
const microlink = createClient({
apiKey: process.env.MICROLINK_API_KEY
})
const logo = await microlink.logo('https://www.cloudflare.com')
if (!logo) throw new Error('No logo found')
const image = await fetch(logo.url)
if (!image.ok) throw new Error(`Logo download failed: ${image.status}`)
await mkdir('logos', { recursive: true })
await writeFile(
`logos/cloudflare.com.${logo.type}`,
Buffer.from(await image.arrayBuffer())
)| What you need | Clearbit Logo API | Microlink |
|---|---|---|
| The logo as an image URL | logo.clearbit.com/{domain} | Resolve on your server and store the file; embed=logo.url to test |
| What you look up | A company domain | Any URL: a domain, a subdomain, a single page |
| Where the logo comes from | Clearbit company data | The page markup, the DNS BIMI record, then the favicon, at request time |
| Brand colors | Not offered | palette=true, same call |
| Width, height, format, file size | Not in the response | data.logo.width, height, type, size |
| Title, description, preview image | Not offered | Same response |
| Size and format | size and format parameters | Not offered: size in CSS, format as published |
| A greyscale logo | greyscale=true | Not offered, apply a CSS filter |
| Access | No key | 5 requests a day without a key, then a key in the x-api-key header |
www.cloudflare.com returns a 200 by 91 SVG with a palette led by #FF5F08. Microlink returns the file the site publishes, so format and proportions vary by site; size it in CSS. A key travels in a header, so for a public page, resolve the logo on your server and store the image file, or put the key behind the authentication proxy.Send the URL Get the logo back
Start free, scale when ready
Free
Pro
- Everything in Free
- Automatic proxy resolution
- Configurable TTL
- Custom HTTP headers
- Custom cache key
- Priority email support
Business & Enterprise
- Everything in Pro, plus:
- Card or invoice, PO number, net 30
- NDA, DPA & service agreement
- Vendor assessments on request
- Same named contact
- Annual billing, 10% discount
Microlink and Logo.dev, side by side.
| Capability | Microlink | Logo.dev |
|---|---|---|
| Lookup input Microlink renders the URL you pass, so a product page, a subdomain or a personal site resolves to the logo it publishes. Logo.dev looks brands up by domain or by identifier. | Any URL | Domain, name, ticker, crypto, ISIN |
| Image URL for an img tag | embed=logo.url | img.logo.dev/{domain} |
| Key in the image URL Microlink answers 5 requests a day without a key and reads keys from the x-api-key header. Logo.dev requires a token on every request, and its pk_ key is meant for client-side code. | - | Publishable pk_ token |
| Brand colors Microlink adds palette, background_color, color and alternative_color to the logo it returns. Logo.dev lists colors in its brand profile at api.logo.dev/v2/brands, which needs a secret key. | palette=true, same call | Brand API, secret key |
| Page metadata in the same call Title, description, image, author, date and publisher come back with the logo. | - | |
| Screenshot, PDF or Markdown in the same call | - | |
| Original file format Logo.dev does not serve SVG. Microlink returns the file the site serves. | As published, SVG included | JPG, PNG, WebP |
| Resize, retina, greyscale, dark theme Logo.dev takes size, width, height, retina, greyscale and theme as query parameters. Microlink returns the logo as the site publishes it. | - | |
| When no logo exists Logo.dev generates a monogram by default, and fallback=404 turns that off. | Favicon, then null | Monogram, or 404 |
| Free tier The free Microlink API key covers 25 requests every day, 2 at a time, with no card. Logo.dev Community covers 500,000 logo CDN requests a month and needs a link back to Logo.dev on commercial projects. | 25/day | 500,000 images a month |
| First paid plan Microlink bills one request per call at $1.07 per 1,000, and a cache hit is free. Logo.dev Startup is $33 a month for 1,000,000 logo CDN requests. | $49 for 46,000 | $33 for 1,000,000 |
When a logo CDN is the better pick.
A key that lives in the image URL
Logo.dev puts a publishable pk_ token in the img src, safe in client code, and its free plan covers 500,000 images a month. Brandfetch takes a client ID in the URL. Microlink reads keys from a header, so a public page either stays within 5 keyless requests a day or resolves logos on a server.Logos by name, ticker or ISIN
Logo.dev resolves a brand name, a stock ticker, a crypto symbol or an ISIN. Brandfetch takes tickers, ISINs and crypto symbols too. Microlink needs a URL to render.Uniform images in a grid
Logo.dev resizes, adds retina, greyscale and a dark theme from query parameters. Brandfetch serves icon, symbol and logo variants with light and dark themes. Microlink returns whatever file the site publishes, in its own proportions.Millions of impressions a month
Logo.dev Startup is $33 a month for 1,000,000 images, and Brandfetch publishes a fair use limit of 1,000,000 requests a month on its free plan, for logos hotlinked from an img tag. Microlink starts at $49 for 46,000 requests, priced for work that reads the page.
Product Information
What happened to logo.clearbit.com, and what replaces the image tag that broke.
When did the Clearbit Logo API shut down?
What replaces logo.clearbit.com in an img tag?
img at unavatar.io/{domain} with a publishable token. To test, point the src at api.microlink.io with the site URL encoded in url and embed=logo.url added, for example https://api.microlink.io/?url=https%3A%2F%2Fwww.cloudflare.com&embed=logo.url. That URL returns the logo file itself, but without a key it answers 5 requests a day per visitor.Is Logo.dev the official Clearbit replacement?
Can I get the brand colors with the logo?
Do I need an API key?
What happens when a site has no logo?
data.logo is null and you render your own placeholder. Logo.dev generates a monogram instead unless fallback=404 is set.Is there a Microlink option that keeps a plain image URL?
pk_ token in img tags. Anonymous requests get a small daily allowance per IP, and free plans need an attribution link.Start building
Clearbit, HubSpot, Logo.dev and Brandfetch are trademarks of their respective owners. Microlink is not affiliated with or endorsed by them. Competitor details come from their public pages and may have changed since they were checked.