# Prints the status code and image type. The logo itself is not saved.
curl --silent --output /dev/null \
--write-out "%{http_code} %{content_type}\n" \
"https://img.logo.dev/stripe.com?token=LOGO_DEV_PUBLISHABLE_KEY&size=128&format=png""<string>"Get a logo
Get a logo image by domain, brand name, stock ticker, ISIN, crypto symbol, stock exchange, or market index.
# Prints the status code and image type. The logo itself is not saved.
curl --silent --output /dev/null \
--write-out "%{http_code} %{content_type}\n" \
"https://img.logo.dev/stripe.com?token=LOGO_DEV_PUBLISHABLE_KEY&size=128&format=png""<string>"Get your API keys
| Lookup | Path |
|---|---|
| Domain | /stripe.com |
| Brand name | /name/Stripe |
| Stock ticker | /ticker/AAPL |
| ISIN | /isin/US0378331005 |
| Crypto symbol | /crypto/BTC |
| Stock exchange | /exchange/NYSE |
| Market index | /index/SPX |
- For a ticker outside the US, add the exchange suffix, such as
7203.T. - URL-encode a name that has spaces or special characters.
/namealso takesstrategy:match(the default) for the closest name, orsuggestfor the most popular prefix match. - A lookup with no logo returns a generated monogram, unless you set
fallback=404. A malformed ticker, crypto symbol, exchange, or index returns400.
Authorizations
Your publishable key (pk_). Safe in client-side code. Works only with the Logo CDN.
Path Parameters
The company's domain, such as stripe.com. For another lookup, replace /{domain} with a path from the table.
"stripe.com"
Query Parameters
Width and height in pixels. Aspect ratio is preserved. Max 800: a larger value is clipped to 800. retina=true doubles the result after the clip. Keep raster formats at or below 600.
x >= 1Height in pixels (short form: h). Overrides the height taken from size when set; the image is fit within width × height with aspect ratio preserved. Max 800 (larger is clipped).
1 <= x <= 800Width in pixels (short form: w). Overrides the width taken from size when set; the image is fit within width × height with aspect ratio preserved. Max 800 (larger is clipped).
1 <= x <= 800Image format.
jpg, png, webp Adjusts logo colors for a light or a dark background. auto is the same as light. Works on logos with transparency, so set format=png or format=webp with it. Do not send theme=dark with jpg, the default format: the request can return 404.
auto, light, dark Return a black-and-white version of the logo. The American spelling grayscale is also accepted.
Render at 2x the requested size for high-density displays.
Behavior when no logo is found. monogram returns a generated monogram with HTTP 200; 404 returns HTTP 404 instead.
monogram, 404 What to return when the domain reaches a brand only through a redirect to another domain, such as an old domain that now points to a new company. follow returns the logo of the domain it redirects to. 404 returns 404 instead, whatever fallback is set to. See skip domains that redirect.
follow, 404 Response
The logo image. When no logo exists and fallback is monogram (the default), a generated monogram is returned with this same 200 status.
The response is of type file.
Was this page helpful?