All Company Logo API
Returns the logo URL for every company, keyed by abbreviation.
| Method | GET |
| Path | /api/v1/company-image |
| Full URL | https://backend.4dnum.com/api/v1/company-image |
Request
No parameters.
Response
| Attribute | Type | Example | Description |
|---|---|---|---|
M | String | https://backend.4dnum.com/images/magnum.svg | Magnum logo |
PMP | String | https://backend.4dnum.com/images/damacai2.svg | Da Ma Cai logo |
ST | String | https://backend.4dnum.com/images/toto.svg | SportsToto logo |
SG | String | https://backend.4dnum.com/images/sg.svg | Singapore logo |
CS | String | https://backend.4dnum.com/images/ssc.svg | Special CashSweep logo |
STC | String | https://backend.4dnum.com/images/sandakan.svg | Sandakan logo |
EE | String | https://backend.4dnum.com/images/diriwan2.svg | Sabah 88 logo |
H | String | https://backend.4dnum.com/images/lhh.svg | Lucky Hari Hari logo |
GD | String | https://backend.4dnum.com/images/gd.svg | Grand Dragon logo |
P | String | https://backend.4dnum.com/images/Perdana svg.svg | Perdana logo |
caution
The P (Perdana) filename contains a space — Perdana 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.