Instantly insert logos to your tool
The same API powering an “insert logo” dialog, like a presentation or design editor where users search a brand and drop its logo into the document. This is the pattern behind the Pitch integration.- Preview
- Code
Want a Pitch-style 'insert brand logo' picker? This prompt gives your AI coding tool everything it needs to build it in your framework.
Implementation
1
Debounce the search
Fire a search after a short pause in typing (~250 ms). Requests can go straight from the browser, the API is free and authenticates with your client ID as a query parameter.
2
Render the results
Each match carries the brand’s
name, domain, and icon. Lay the results out as selectable rows and hotlink the returned icon URLs as-is, don’t cache them, they expire after 24 hours.3
Show all available logos
On selection, fetch the full brand record with the Brand API (server-side, so the API key stays secret) using the picked
domain. Its logos array carries every variant the brand has, type (logo, symbol, icon), theme (light, dark), and formats (SVG, PNG, WebP), so you can display them all and let the user pick the exact asset to insert.4
Insert the logo
Place the chosen variant’s
src into the document. For a lighter setup without the Brand API call, you can also render a single asset straight from the Logo API, choosing the size, type, and theme that fit the canvas.Pricing
The Brand Search API is free, and the Logo API is free with a client ID. Create one on the Developer Portal, no attribution required. Listing every available logo variant costs one Brand API brand fetch per selected brand, and domain-level caching means each brand is fetched once. See plans for quotas.Going further
Brand Search API
Match brand names to their domain and logo.
Brand API reference
The
logos array: every variant, theme, and format.Get started
Create a free account and start building.