Skip to main content

All Company Logo API

Returns the logo URL for every company, keyed by abbreviation.

MethodGET
Path/api/v1/company-image
Full URLhttps://backend.4dnum.com/api/v1/company-image

Request

No parameters.

Response

AttributeTypeExampleDescription
MStringhttps://backend.4dnum.com/images/magnum.svgMagnum logo
PMPStringhttps://backend.4dnum.com/images/damacai2.svgDa Ma Cai logo
STStringhttps://backend.4dnum.com/images/toto.svgSportsToto logo
SGStringhttps://backend.4dnum.com/images/sg.svgSingapore logo
CSStringhttps://backend.4dnum.com/images/ssc.svgSpecial CashSweep logo
STCStringhttps://backend.4dnum.com/images/sandakan.svgSandakan logo
EEStringhttps://backend.4dnum.com/images/diriwan2.svgSabah 88 logo
HStringhttps://backend.4dnum.com/images/lhh.svgLucky Hari Hari logo
GDStringhttps://backend.4dnum.com/images/gd.svgGrand Dragon logo
PStringhttps://backend.4dnum.com/images/Perdana svg.svgPerdana logo
caution

The P (Perdana) filename contains a spacePerdana svg.svg. Use the URL exactly as returned, or URL-encode the space as %20. Do not reconstruct these paths by hand; read them from the response.

Example

curl https://backend.4dnum.com/api/v1/company-image
// Fetch once at app start and cache; the mapping rarely changes.
const logos = await get('/company-image');

function logoFor(companyCode) {
return logos[companyCode];
}

logoFor('M'); // https://backend.4dnum.com/images/magnum.svg

See Company Codes for the full abbreviation table.