Skip to content

Company Logo API: Fetch Logos by Domain (With Examples)

How a company logo API works, with HTML, JavaScript and CSV examples for fetching logos by domain, and what to do when a logo is missing.

Nov 16, 2026 4 min read 960 words
Company Logo API: Fetch Logos by Domain (With Examples)
Company logo API: fetch logos by domain with examples
Company logo API: fetch logos by domain with examples

A company logo API turns a domain into an image. You send stripe.com and you get back the logo, ready to drop into a page. It is a small feature with a big effect on a product. A CRM list with logos is easier to scan. A dashboard of accounts looks finished. A comparison page looks professional.

This guide explains how a company logo API works, shows examples you can paste, and covers the traps: missing logos, slow loads and trademark rules.

What a company logo API does#

The idea is simple. The input is a domain. The output is an image, most often a PNG. The service holds a store of logos, or finds them from public sources, and answers your request with the right file.

Teams use it in four places:

  • CRM and account lists. Logos help reps spot accounts at a glance.
  • Enrichment. Each row of a lead list gets a logo next to its company name.
  • Comparison and review pages. Tool-versus-tool pages need clean logos for each side.
  • Dashboards and reports. Customer and partner tables look better with images.

The benefit over a manual approach is scale. Nobody wants to download and crop 500 logos by hand.

The basic pattern#

Tomba runs a logo service at logo.tomba.io. The pattern is the domain followed by .png:

https://logo.tomba.io/stripe.com.png

Use that address as an image source and the browser shows the logo. The same pattern works from code, spreadsheets and email tools that can load an image from a link.

For a one-off lookup with a preview and an embed snippet, try the free company to logo tool. It takes a company name or a domain and returns the image link, a PNG download and ready-made HTML. Tomba's page says it needs no signup or API key.

Example 1: HTML#

<img
  src="https://logo.tomba.io/stripe.com.png"
  alt="Stripe logo"
  width="48"
  height="48"
  loading="lazy"
/>

Set width and height so the page does not jump while the image loads, and write real alt text. The MDN guide to the img element covers both attributes.

Example 2: JavaScript#

const logoUrl = (domain) =>
  `https://logo.tomba.io/${encodeURIComponent(domain.trim().toLowerCase())}.png`

const accounts = ['stripe.com', 'notion.so', 'tomba.io']
const rows = accounts.map((domain) => ({ domain, logo: logoUrl(domain) }))

Clean the domain first. Strip https://, www. and any path, or you will build a broken address.

Example 3: Spreadsheet#

If your list lives in Google Sheets, build the link with a formula. Assuming the domain is in column A:

=IMAGE("https://logo.tomba.io/" & A2 & ".png")

The logo shows inside the cell. For a bigger list, run a bulk task or the bulk logo finder to export links as a CSV, then load that into your CRM.

What to do when a logo is missing#

No logo service has every company. Plan for a miss.

  • Test an unknown domain and see what comes back. Some services return a placeholder with a normal 200 status, so do not rely on the status code alone.
  • Show a neutral fallback. A grey tile with the company's first letter is clean and honest.
  • Set an onerror handler on the image so a failed load swaps in the fallback.
  • Log misses. A list of domains with no logo shows you where your data is thin.
<img src="https://logo.tomba.io/example.com.png" alt="Example logo"
     width="48" height="48"
     onerror="this.replaceWith(Object.assign(document.createElement('span'),{textContent:'E',className:'logo-fallback'}))" />

Performance and caching#

Logos are small, but a page with 200 of them adds up. A few habits help:

  • Use loading="lazy" for images below the fold.
  • Cache logos on your own storage for accounts you show often, if the terms of the service allow it.
  • Use one size for all logos, so the layout stays tidy.
  • Keep a record of when you last fetched each logo, and refresh it now and then. Companies rebrand.

Using logos fairly#

A logo is a trademark. Showing it to identify a company, such as in a customer list or a comparison, is a common use. Implying a partnership you do not have is not. Some rules of thumb:

  • Do not alter a logo or put it in a misleading context.
  • Do not claim customers, partners or endorsements you cannot show.
  • Show a logo only where it helps the reader identify the company.
  • Follow the brand rules a company publishes, where they exist.

If you are unsure, ask your legal team before you publish a customer logo wall.

From logo to full company data#

A logo is the lightest piece of company data. Often you want more: a website, a size, a social profile or a contact. Tomba's data enrichment adds fields to a list you already have, and the Tomba API lets you pull company and contact data from your own code. For a quick look at who stands behind a site, use the website to company tool.

FAQ#

What is a company logo API?#

It is a service that returns a company's logo image when you send its domain or name.

Is a logo API free?#

Some are. Tomba's company to logo page describes a free tool with no signup. Check the terms of any service for volume limits.

What image format do logo APIs return?#

Most return PNG. Tomba's logo tool describes its logos as PNG files. If you need SVG or several sizes, check what your chosen service offers.

Can I use any logo I fetch on my website?#

A logo is a trademark. Showing it to identify a company is common, but you must not imply a partnership or endorsement. When in doubt, ask for permission.

Plan a fallback, such as a letter tile, and log the misses so you can fill gaps by hand.

// start free

See who Tomba finds at any company

Type a company's domain to see its people, their roles and verified work emails, each with the pages it was found on. Free account, no card.

Free plan · No credit card required · GDPR & CCPA

Share
0 clapsEnjoyed it? Give a clap.
AU

// about the author

Tomba Editorial Team

Was this helpful?