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 (default 128)
  • format: png | svg | webp | jpg
  • greyscale: true | false
  • retina: true | false
  • fallback: monogram

Headers

  • x-api-key or Authorization: Bearer <apiKey>

Examples

cURL

curl "https://api.logofetch.dev/api/v1/logo/github.com?api_key=$API_KEY&fallback=monogram" -o logo.png

JavaScript 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 key
  • 403: origin blocked by API key origin rules
  • 404: no logo found for domain
  • 429: rate limit or monthly quota exceeded