/
v3.0.11Get access

Statistics Team Logo

sportsbook-v2 · dev

Team logos, competition logos and shirts are served as static images from the statistics image host. There are two URL shapes — one for logos and one for shirts. This page documents both, part by part.

Team and competition logos

Logos are static images on the statistics image host, bucketed into numbered folders.

.sh
{path}/{type}/{size}/{folderIndex}/{id}.png

Every part

PartExampleRequiredDescription
{path}https://statistics.bcapps.org/imagesYesBase image path, from config.preferences.teamLogo.path.
{type}e or cYesEntity type. e for a team, c for a competition.
{size}s, m, bYesImage size: s small, m medium (the default), b big.
{folderIndex}0, 1, 2 …YesBucket folder, Math.floor(teamId / 2000).
{id}.png239.pngYesTeam or competition id. Always .png.

Shirt images

Shirts live in their own folder, with a different bucket size and no size segment.

.sh
{path}/sh/{shirtFolderIndex}/{shirtNumber}-{teamId}.png

Every part

PartExampleRequiredDescription
{path}https://statistics.bcapps.org/imagesYesThe same base image path.
shshYesFixed shirts folder. A shirt URL carries no size segment.
{shirtFolderIndex}0, 1, 2 …YesBucket folder, Math.floor(teamId / 500) — not / 2000 as for logos.
{shirtNumber}-{teamId}.png1-239.pngYesKit variant and team id. 1 is the home kit and the default, 2 the away kit.
The bucket divisor differsLogos bucket on Math.floor(teamId / 2000), shirts on Math.floor(teamId / 500). The same team lands in different folders in the two shapes.
Was this page helpful?