Looking for a reliable way to get stock logos using ISIN codes? This guide shows you how to use the Elbstream Logo API to fetch high-quality logos for any stock, ETF, or fund using their International Securities Identification Number (ISIN).
An ISIN (International Securities Identification Number) is a 12-character alphanumeric code that uniquely identifies a specific securities issue. It's the global standard for identifying stocks, bonds, ETFs, and other financial instruments.
ISIN Structure:
Examples:
US0378331005 - Apple Inc.DE0007164600 - SAP SEIE00B4L5Y983 - iShares Core MSCI World ETFGetting a stock logo by ISIN is as simple as constructing a URL:
<img src="https://api.elbstream.com/logos/isin/US0378331005" alt="Apple logo" />
This returns the Apple Inc. logo because US0378331005 is Apple's ISIN.
The Logo API supports multiple image formats to fit your needs:
| Format | Use Case | Example |
|---|---|---|
| SVG (default) | Responsive designs, vector graphics | /logos/isin/US0378331005 |
| PNG | Fixed-size implementations | /logos/isin/US0378331005?format=png |
| JPG | Backgrounds, thumbnails | /logos/isin/US0378331005?format=jpg |
| WebP | Modern browsers, best compression | /logos/isin/US0378331005?format=webp |
For PNG, JPG, and WebP formats, you can specify the size in pixels:
<img src="https://api.elbstream.com/logos/isin/US0378331005?format=png&size=200" alt="Apple logo" />
Display logos next to each holding in a user's portfolio:
<div class="portfolio-item">
<img src="https://api.elbstream.com/logos/isin/US0378331005" alt="Apple" />
<span>Apple Inc.</span>
<span>150 shares</span>
</div>
Enhance stock watchlists with visual recognition:
const watchlist = ['US0378331005', 'US88160R1014', 'DE0007164600'];
watchlist.forEach(isin => {
const img = document.createElement('img');
img.src = `https://api.elbstream.com/logos/isin/${isin}`;
img.alt = `Stock logo for ${isin}`;
container.appendChild(img);
});
Show logos in order confirmations and trade history:
<div class="trade-confirmation">
<img src="https://api.elbstream.com/logos/isin/US88160R1014" alt="Tesla" />
<p>You bought 10 shares of Tesla (TSLA)</p>
</div>
The Elbstream Logo API covers over 400,000 assets including:
If an ISIN is not found, the API returns a placeholder image. You can detect this and handle it gracefully:
const img = new Image();
img.onload = () => {
// Logo loaded successfully
container.appendChild(img);
};
img.onerror = () => {
// ISIN not found, use fallback
img.src = '/fallback-logo.png';
};
img.src = `https://api.elbstream.com/logos/isin/${isin}`;
The Logo API is free to use with attribution. Add a visible link back to Elbstream on any page displaying logos:
<a href="https://elbstream.com">Logos provided by Elbstream</a>
For usage without attribution, check out the Enterprise plan.