API reference

One endpoint, three knobs, two auth modes.

Endpoint

GET https://dev-api.clearlogo.dev/logo/:domain

:domain is a bare hostname (no scheme, no path), e.g. github.com. Returns image/png.

Query parameters

NameTypeDefaultNotes
sizenumber256Output dimension in px. Square. Min 16, max 1024.
contentnumber80Logo footprint inside the canvas (50–100, step 5).
bgwhite | black | transparentwhiteFallback only. Original background wins when present.transparent is beta.
tokenpk_live_…Public key for browser usage. Origin/Referer must match an allowed domain on the key.

Authentication

Anonymous use is allowed at low rates. For production, attach a key:

Browser (pk_live)

<img
  src="https://dev-api.clearlogo.dev/logo/example.com
    ?token=pk_live_xxxxxxxx"
  alt="" />

Server (sk_live)

curl \
  -H "Authorization: Bearer sk_live_xxx" \
  "https://dev-api.clearlogo.dev/logo/example.com"

Rate limits

Per-key limits are returned in X-RateLimit-* headers. When exceeded the API responds with 429 and a Retry-After hint.