Introduction
Logo.dev Demo
Parameters
Name | Type | Optional | Default |
---|---|---|---|
🔑 token | string | false | n/a |
↔️ size | integer | true | 128 |
🖼️ format | string | true | jpg |
⚫️ greyscale | boolean | true | false |
⛓️💥 fallback | string | true | monogram |
Standard
Logos returned without any parameters will be 1:1 aspect ratio, 128px tall and wide, and jpg
formatted.
https://img.logo.dev/shopify.com
Rate-limiting
In order to avoid the limits, you’ll need an API key or to upgrade your account.
Need an API key? Sign up for a free account
By signing up for a free account and registering your site, you’ll have enough requests to manage most projects.
Your API token is required when using the endpoint publicly.
PNG instead of JPG
In some cases, PNGs with limited color palettes will result in smaller image files with less compression. Using PNGs allows for transparency, although not all logo images will be compatible.
https://img.logo.dev/shopify.com?format=png
Desaturated
Desaturated logos are most useful for landing pages when you want to normalize colors across the set.
https://img.logo.dev/shopify.com?greyscale=true
Resizing images
Our image CDN will resize to any valid integer, but we recommend staying under 600px when using raster images like jpg
and png
.
https://img.logo.dev/shopify.com?size=80
Retina images
The retina=true
parameter doubles the source image resolution (160px) while displaying at the specified size (80px), creating sharp images on high-density displays. Without this parameter, logos may appear blurry.
Fallback images
In the case where no image is found for a given domain, the API will return a black and white monogram of the first letter of the domain with HTTP Status Code 200 OK
.
https://img.logo.dev/shopify.com
If you want to suppress these monograms use the parameter fallback=404
to recieve an empty response and HTTP Status Code 404 Not Found
.
Was this page helpful?