Map photo gallery
Put the photos of any CS 1.6 map on your site or forum: a slideshow that switches on its own, with the map name and a Download button. Free, no key needed.
Overview #
Every map page on Counter-Strike Boost has photos we took in the game. You can show them on your own site:
the gallery switches photos on its own, pauses under the pointer, and shows the map name, a Download button and
the Counter-Strike-Boost.com logo. Here it is for de_dust2:
Every map page has a Put these photos on your site box that writes the code for you. This page is the full list of options.
| GET | /embed/gallery.js | The embed script: one tag per page, one div per gallery |
| GET | /map/{name}/gallery | The gallery as a page, for an iframe |
| GET | /map/{name}/photos.json | The photos as JSON, to build your own |
The embed script #
Put a div where the gallery goes and the script once on the page. The gallery takes the width of
the box it is in and keeps a 16:9 shape.
<div data-csb-map="de_dust2"></div>
<script async src="https://banners.counter-strike-boost.com/embed/gallery.js"></script>
Several galleries on one page need the script only once. Galleries added to the page later are picked up with
window.CSBGallery.scan().
Options
| Attribute | iframe address | Values | Default |
|---|---|---|---|
data-size | ?size= | wide (fills the box), compact (up to 340 px), mini (220 px), tiny (140 px) | Picked from the width |
data-autoplay | ?autoplay=0 | false keeps the photo until the visitor changes it | On |
data-every | ?every= | Seconds per photo, 3 to 30 | 5 |
data-credit | ?credit= | text (logo and "Offered by counter-strike-boost.com") or icon (the logo alone) | Text on the wide size, logo on smaller ones |
data-download | ?download=0 | false hides the Download button | Shown when the map can be downloaded |
The mini and tiny sizes are for map lists and server rows: they show the map name, the logo and a Download icon, and a click on the photo moves to the next one.
The photos are ours, and the Counter-Strike-Boost.com logo is part of the gallery. It cannot be turned off. If it is hidden, faded or covered by something on your page, the gallery stops and shows only a link to the map on Counter-Strike-Boost.com.
The Download button and the logo open the map on Counter-Strike-Boost.com in a new tab. Visitors download from there with a free account.
As an iframe #
Where scripts are not allowed (many forums), use the gallery page itself. The options go in the address, the same as the table above.
<iframe src="https://banners.counter-strike-boost.com/map/de_dust2/gallery?size=compact&autoplay=0"
width="340" height="192" loading="lazy" style="border:0"
title="de_dust2 photos by Counter-Strike-Boost.com"></iframe>
Give the frame a 16:9 shape (for example style="width:100%;aspect-ratio:16/9;border:0"). A map
that is not on Counter-Strike Boost answers 404 with a short note; a map without photos yet shows a
link to its page.
The photos as JSON #
/map/{name}/photos.json
No key needed
The photos of a map, its page and its download, to draw your own gallery. If you do,
show the credit with the photos and link it to page.
Parameters
name
string
path
required
The map name as on its page, for example de_dust2.
Response fields
| Field | Type | Notes |
|---|---|---|
map |
string | The map name as Counter-Strike Boost spells it. |
page |
string | The map's page. Link the credit here. |
download |
string|null | Where visitors download the map. null when we have no file for it. |
credit |
string | The credit to show with the photos. |
photos[] |
string | The photo at full size (1280 px wide for our own captures). |
photos[] |
string | The same photo 640 px wide. |
photos[] |
string | The same photo 320 px wide. |
An empty photos list means we have no photos of that map yet.
The photos are AVIF, which every current browser shows.
curl "https://banners.counter-strike-boost.com/map/de_dust2/photos.json"const res = await fetch('https://banners.counter-strike-boost.com/map/de_dust2/photos.json');
if (res.ok) {
const { photos, page, credit } = await res.json();
// photos[i].w640 for a card, .full for a big view; always show `credit`, linked to `page`
}<?php
$json = file_get_contents('https://banners.counter-strike-boost.com/map/de_dust2/photos.json');
$map = json_decode($json, true);
foreach ($map['photos'] as $photo) {
echo '<img src="' . htmlspecialchars($photo['w640']) . '" alt="">';
}Two of the five photos shown.
{
"map": "de_dust2",
"page": "https://counter-strike-boost.com/map/de_dust2",
"download": "https://counter-strike-boost.com/map/de_dust2/download",
"credit": "Photos by Counter-Strike-Boost.com",
"photos": [
{
"full": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/3cc86d672572a8b0ad6b143a5a6e14f6f4b97e7d.avif",
"w640": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/3cc86d672572a8b0ad6b143a5a6e14f6f4b97e7d-w640.avif",
"w320": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/3cc86d672572a8b0ad6b143a5a6e14f6f4b97e7d-w320.avif"
},
{
"full": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/157677a7337f3df213bc0ecc3a7989b7035e92ae.avif",
"w640": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/157677a7337f3df213bc0ecc3a7989b7035e92ae-w640.avif",
"w320": "https://cdn.counter-strike-boost.com/cache/maps/shots/de_dust2/157677a7337f3df213bc0ecc3a7989b7035e92ae-w320.avif"
}
]
}{
"error": "map_not_found"
}








