Show NSE and BSE company logos in your app
Put a listed company's logo in an img tag by ticker or ISIN, as SVG or sized PNG, with an initials tile when no logo exists.
A watchlist or portfolio screen reads much faster with logos. The logo endpoint returns the image itself, so the URL goes straight into an <img> tag.
By ticker
<img src="https://api.dharun.dev/v1/logos/TCS?utm_medium=guide" alt="TCS" width="32" height="32">
A symbol can be a bare ticker (TCS, NSE is preferred), an exchange-qualified ticker (NSE:TCS), a Yahoo Finance symbol (TCS.NS) or an ISIN (INE467B01029). The set covers every company listed on NSE, those listed only on BSE, and REITs and InvITs.
Renamed and delisted companies
When a company changes its ticker, the old one keeps working, so a watchlist saved years ago still shows the right logo. A delisted company keeps its logo too; /v1/companies/{symbol} says "listed": false with the date it was first missed, and search leaves it out unless you add delisted=true.
PNG at a set size
SVG is the default. For PNG, give format=png and a size from 16 to 512 pixels:
<img src="https://api.dharun.dev/v1/logos/TCS?format=png&size=128&utm_medium=guide" alt="TCS" width="64" height="64">
Asking for twice the size you display keeps it sharp on high-density screens.
When there is no logo
A listed company that has no published logo yet, often a recent IPO, always gets a tile of its initials, with the X-Logo-Fallback: monogram header. /v1/companies/{symbol} shows this as "hasLogo": false.
An unknown symbol gets the same tile, so an <img> tag never shows a broken image. It answers 200 with X-Logo-Fallback: monogram and X-Logo-Known: false, and is cached for one day only, so a logo added later replaces it soon. Names that match nothing are counted (the name, never who asked) and their logos added.
To tell a tile from a real logo, read the headers:
curl -sI "https://api.dharun.dev/v1/logos/NEWCO?utm_medium=guide" | grep -i '^x-logo'
To detect a miss with the status code instead, add fallback=none to the address: an unknown symbol then answers 404.
A React component
export function CompanyLogo({ symbol, size = 32 }) {
const src = `https://api.dharun.dev/v1/logos/${encodeURIComponent(symbol)}?format=png&size=${size * 2}`;
return <img src={src} alt={symbol} width={size} height={size} loading="lazy" style={{ borderRadius: 6 }} />;
}
Details and search
/v1/companies/{symbol} returns the name, sector, industry, ISIN, market capitalisation, index memberships and the logo URLs:
curl https://api.dharun.dev/v1/companies/RELIANCE?utm_medium=guide
curl "https://api.dharun.dev/v1/companies?q=tata&limit=5&utm_medium=guide"
Logos are trademarks of their companies. Use them to identify the company, as a stock app does, not to suggest endorsement.
The code in this guide is MIT-0: copy it into anything, no credit needed. Updated 2026-10-14.
APIs used: Company logos.