Logo.dev API
img.logo.dev · Developer Tools
Company logo API — get high-quality logos for any company by domain. Direct replacement for the discontinued Clearbit logo API. Free tier available.
Authentication
API Key
Free API key from logo.dev. Pass as ?token= query parameter.
Sample Requests
GET
Get company logo
Get Stripe's company logo at 128px.
https://img.logo.dev/stripe.com?size=128&token=YOUR_TOKEN
Hover any highlighted part to learn what it does
curl -X GET "https://img.logo.dev/stripe.com?size=128&token=YOUR_TOKEN"
import requests
params = {
"size": "128",
"token": "YOUR_TOKEN"
}
response = requests.get(
"https://img.logo.dev/stripe.com",
params=params,
)
print(response.json())const url = new URL('https://img.logo.dev/stripe.com');
url.searchParams.set('size', '128');
url.searchParams.set('token', 'YOUR_TOKEN');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://img.logo.dev/stripe.com")
q := baseURL.Query()
q.Set("size", "128")
q.Set("token", "YOUR_TOKEN")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://img.logo.dev/stripe.com")
uri.query = URI.encode_www_form({
"size" => "128",
"token" => "YOUR_TOKEN"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://img.logo.dev/stripe.com?" . http_build_query([
"size" => "128",
"token" => "YOUR_TOKEN"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Get a free token at logo.dev
- Use in HTML: <img src="https://img.logo.dev/{domain}?token=TOKEN">
- Try: https://img.logo.dev/apple.com?token=YOUR_TOKEN
- Size options: 32, 64, 128, 256, 512
- Returns PNG image directly