API Documentation
Fetch company logos by domain. Use your API key in query params or request headers.
Endpoint
GET https://api.logofetch.dev/api/v1/logo/:domain
Path parameter
domain: target domain (example:github.com)
Query parameters
api_key(required unless provided via header)size: 16-1024 (default128)format:png|svg|webp|jpggreyscale:true|falseretina:true|falsefallback:monogram
Headers
x-api-keyorAuthorization: Bearer <apiKey>
Examples
cURL
curl "https://api.logofetch.dev/api/v1/logo/github.com?api_key=$API_KEY&fallback=monogram" -o logo.pngJavaScript fetch
const res = await fetch("https://api.logofetch.dev/api/v1/logo/github.com?fallback=monogram", {
headers: { "x-api-key": process.env.LOGOFETCH_API_KEY! }
})
if (!res.ok) throw new Error("Failed to fetch logo")
const blob = await res.blob()Create Account And API Key
1) Create account
curl -X POST "https://api.logofetch.dev/api/v1/accounts" \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"your-password","name":"Your Name"}'2) Create API key with your account token
curl -X POST "https://api.logofetch.dev/api/v1/accounts/<accountId>/keys" \
-H "Authorization: Bearer <accountToken>" \
-H "Content-Type: application/json" \
-d '{"name":"production","allowed_origin":"*.example.com,example.com"}'Errors
401: missing or invalid API key403: origin blocked by API key origin rules404: no logo found for domain429: rate limit or monthly quota exceeded