Follow these best practices to ensure your users have the best possible experience when viewing brand logos in your application.Documentation Index
Fetch the complete documentation index at: https://docs.brandsapi.com/llms.txt
Use this file to discover all available pages before exploring further.
1. Use the Client ID
Always include your Client ID (?c=...) in every request. This allows us to track your usage accurately and ensures that your requests are not throttled.
2. Set Alt Text
For accessibility and SEO, always provide descriptivealt text for images. If the logo is purely decorative, you can use an empty alt="", but typically identifying the brand is helpful.
3. Specify Dimensions
To prevent layout shifts (CLS), always specify thewidth and height of your images. Use our sizing parameters to get the exact size you need from the CDN.
4. Implement Smart Fallbacks
While BrandApi has 44M+ brands, occasionally a logo might not be found. Use our built-in fallback options or implement a custom React fallback.Built-in Fallback
5. Leverage Modern Formats
By default, we serve images in WebP, which provides excellent quality at a fraction of the file size of PNG or JPEG. Stick with the default unless you have specific compatibility requirements.6. Prefer SVG for Logos
When using thelogo type (the full company wordmark), requesting the svg format ensures the logo remains crisp at any zoom level or resolution.
