CS2 Skin Images API
Fetch prerendered, transparent front and back AVIFs for renderable CS2 catalog variants. Each image depicts representative wear and paint for the variant. Use the Screenshot API for a specific inventory asset.
Retrieving hosted catalog links through the API or downloading the ZIP requires
an active SteamWebAPI package other than Free or Free+. Send your key in
X-Api-Key from your backend. The catalog must be enabled and have a published
release.
Get images with an item or item list
Add with_images=1 to GET /steam/api/item or GET /steam/api/items to include
hosted images in a CS2 response when the catalog is enabled. with_images
defaults to false. When using select, include images for the top-level
array and variants for phase images in variants[].images. Requesting these
images returns HTTP 402 if your package lacks catalog access. See the
API reference for endpoint parameters.
curl --fail-with-body --silent --show-error --get \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" \
--data-urlencode 'market_hash_name=AK-47 | Redline (Field-Tested)' \
--data-urlencode 'with_images=1' \
--data-urlencode 'select=markethashname,image,images' \
'https://www.steamwebapi.com/steam/api/item'
curl --fail-with-body --silent --show-error --get \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" \
--data-urlencode 'game=cs2' \
--data-urlencode 'max=20' \
--data-urlencode 'with_images=1' \
--data-urlencode 'select=markethashname,itemimage,images,variants' \
'https://www.steamwebapi.com/steam/api/items'
Each entry in images includes view (front or back), url, and
url_expires_at. When both sides are available, the front comes first.
For items with different Doppler phases, read the corresponding variant's
images array. The array is empty if no render meets the validity requirement
or the item image index is unavailable. In that case, use the original Steam
image from image on the single-item endpoint or itemimage on the item-list
endpoint.
For example, select=images can return these front and back views. The URLs
below are illustrative. The item-list endpoint returns an array of such rows.
{
"images": [
{
"view": "front",
"url": "https://cdn.steamwebapi.com/cs2/example-front.avif",
"url_expires_at": "2027-01-01T00:00:00+00:00"
},
{
"view": "back",
"url": "https://cdn.steamwebapi.com/cs2/example-back.avif",
"url_expires_at": "2027-01-01T00:00:00+00:00"
}
]
}
A hosted image URL returned by the item endpoints is valid for the rest of
the current UTC month and the entirety of the following UTC month. A URL
returned in July, for example, remains valid through August. Around a UTC
month boundary, the image array can be empty until the index includes links
that meet the new expiry requirement. Embed url directly and use
url_expires_at to schedule a refresh.
Read the manifest
curl --fail-with-body --silent --show-error \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" \
'https://www.steamwebapi.com/steam/api/items/images'
| Input | Meaning |
|---|---|
cursor |
Opaque next_cursor from the preceding response. Follow it until it is null. It pins the export to a published revision. |
since |
The last fully applied revision. Omit for a full import. |
mode |
links includes changes to hosted URLs, including monthly rotations. files selects content changes for self-hosting. Set this on the first request of a sync. |
The response includes the published revision, generated_at,
link_generation, count, pages, items and next_cursor. Each ready entry
provides catalog_id, market_hash_name, phase and paint_index. The fields
url, url_expires_at and sha256 describe the front image. back provides
its own url, url_expires_at and sha256 when a rear image is ready. It is
null while the rear view is unavailable. Treat the exact catalog_id as the
join key. Wear and Doppler phases can appear as distinct variants. If a delta
entry carries deleted: true, remove its catalog image association.
Embed hosted image URLs
Run a backend sync daily. Call the manifest with mode=links and, after the
first sync, since set to the last successfully applied revision. Fetch every
page before advancing that revision. Update links by catalog ID only after the
new snapshot has been applied. Refresh links before url_expires_at, and use
your normal Steam image when a catalog render or hosted URL is unavailable.
Hosted URLs can be embedded directly in an image tag. Anyone with the full URL can fetch it during its lifetime. The origin serves the current and preceding UTC month generations. Shared and browser caches can continue serving previously cached URLs until their normal TTL expires. Item grids can use the front view and load the back view when a visitor opens the product detail or selects the rear image.
To collect a complete hosted-link update, set LAST_REVISION to your last
applied revision or leave it unset for the initial import. Apply the resulting
items and revision together to your own catalog database.
set -euo pipefail
manifest='https://www.steamwebapi.com/steam/api/items/images'
pages=$(mktemp)
trap 'rm -f "$pages"' EXIT
params=(--data-urlencode 'mode=links')
if [[ -n ${LAST_REVISION:-} ]]; then
params+=(--data-urlencode "since=$LAST_REVISION")
fi
while :; do
page=$(curl --fail-with-body --silent --show-error --get \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" "${params[@]}" "$manifest")
printf '%s\n' "$page" >> "$pages"
cursor=$(jq -r '.next_cursor // empty' <<< "$page")
[[ -n $cursor ]] || break
params=(--data-urlencode "cursor=$cursor")
done
jq -s '{revision: .[0].revision, items: [.[].items[]]}' "$pages"
Download and self-host
The manifest includes download_url and zip_revision when a ZIP is ready.
zip_revision identifies the snapshot included in the archive and may be
older than the latest manifest revision.
The catalog CDN serves AVIFs and versioned ZIPs at
https://cdn.steamwebapi.com. Archive URLs use /cs2/{revision}.zip.
Send your SteamWebAPI key on every archive request, including range requests
that resume a transfer.
STEAMWEBAPI_CATALOG_DOWNLOAD_URL=$(curl --fail-with-body --silent --show-error \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" \
'https://www.steamwebapi.com/steam/api/items/images?mode=files' \
| jq -er '.download_url')
curl --fail --silent --show-error --continue-at - \
-H "X-Api-Key: $STEAMWEBAPI_API_KEY" \
--output cs2-catalog.zip "$STEAMWEBAPI_CATALOG_DOWNLOAD_URL"
To resume an interrupted transfer, reuse the same URL and local file. Import
the archive and then request
mode=files&since=<zip_revision> to catch up to the latest checkpoint.
Each ZIP manifest entry identifies the front with file and sha256.
When available, back.file and back.sha256 identify the rear asset.
Thereafter, sync using the last fully applied revision. Compare front and back
checksums independently. Download and verify only the views whose checksum
has changed, then serve them from your own permanent URLs. A link rotation
leaves the checksums of unchanged AVIFs intact.
Handle HTTP 401 for authentication failures, 402 for a package without
access, 403 for denied accounts, 410 for a revision outside the retained
history, 429 with bounded retries, and 503 for temporary unavailability.
For 410, start a new full manifest import.
SteamWebAPI MCP
Call search_endpoints with {"query":"CS2 skin images","kind":"endpoint"}
and pass each selected operation's path to get_endpoint. For example,
{"path":"/steam/api/items"} retrieves the item-list parameters and responses.
Set X-Api-Key or Authorization: Bearer ... on your MCP connection. The
connection supplies credentials to call_readonly_endpoint.
Call call_readonly_endpoint with the argument object for the route you need.
{
"path": "/steam/api/item",
"parameters": {
"market_hash_name": "AK-47 | Redline (Field-Tested)",
"with_images": true,
"select": "markethashname,image,images"
}
}
{
"path": "/steam/api/items",
"parameters": {
"game": "cs2",
"max": 20,
"with_images": true,
"select": "markethashname,itemimage,images,variants"
}
}
{
"path": "/steam/api/items/images",
"parameters": {"mode": "links"},
"maxResponseBytes": 200000
}
Read the API result from response.body. To page through the manifest, pass
response.body.next_cursor as parameters.cursor until the cursor is null,
including pages with zero items. If response.truncated is true at the tool's
response limit, read that page directly through HTTPS before advancing. Fetch
ZIP archives directly from the manifest's download_url with your API key in
X-Api-Key. The guide is also available as the
docs://markdown/cs2-catalog-images-api.md resource.