---
name: steam-api
description: Steam API skill for SteamWebAPI. Build integrations for Steam inventories, profiles, item catalogs, market prices, price history and CS2 skin images. Use when choosing SteamWebAPI endpoints, implementing a client or interpreting response fields.
---

# Steam Skill for SteamWebAPI

Use the current API contract to implement the user's requested integration. This
skill supplies integration guidance; it does not authorize account changes,
trades, purchases, deployments or other external writes.

SteamWebAPI is an independent service with its own APIs, keys and plans. It is
not affiliated with Valve. See the [Steam Skill overview](https://www.steamwebapi.com/steam-skill)
for installation and setup.

| Use case | Starting endpoints |
| --- | --- |
| Read and value Steam inventories | `/steam/api/inventory`, `/steam/api/inventory/batch` |
| Read Steam profiles and autocomplete names | `/steam/api/profile`, `/autocomplete/profile` |
| Look up items, marketplace prices and price history | `/steam/api/item`, `/markets/prices`, `/steam/api/history` |
| Browse the CS2 item catalog and skin images | `/steam/api/items`, `/steam/api/items/images` |

## Discover the contract

- Connect the hosted SteamWebAPI MCP at `https://mcp.steamwebapi.com/mcp` using
  Streamable HTTP. See [MCP setup](https://www.steamwebapi.com/mcp) for your client.
- With MCP connected, use `search_endpoints`, then `get_endpoint`
  for the selected route. Check required inputs, response schemas and examples
  before generating code. Use `list_games` for game identifiers and `list_markets`
  for current marketplace identifiers.
- Search with a short task such as `CS2 skin images` or paste an exact path such
  as `GET /steam/api/item`. With zero hits, remove filters, shorten the query, or use
  `list_endpoints`. `get_endpoint` links to a guide and includes `exampleCall`
  arguments for supported read-only requests when they match the live contract.
- Without MCP, use the public [OpenAPI specification](https://www.steamwebapi.com/api/doc.json)
  and [endpoint documentation](https://www.steamwebapi.com/api/steam/documentation).
  Verify routes and parameters before generating requests.
- Treat live endpoint documentation as authoritative when it differs from this
  installed skill. Report unsupported capabilities explicitly.

## Credentials and request behavior

- Keep the SteamWebAPI API key on the backend in environment configuration.
  Do not embed it in browser bundles or print credential-bearing request URLs.
- MCP discovery is available without a key. The optional
  `call_readonly_endpoint` tool uses the connection's configured credentials;
  it only executes allowed documented GET routes. Do not pass Steam cookies,
  Steam Guard secrets or full trade URLs into MCP tools.
- Check HTTP status and parse errors. On HTTP 429 or 503, use
  `response.retryAfterSeconds` when present and retry with bounded backoff.
  Match refresh intervals and caching to the product's freshness requirements
  and endpoint quotas.
- Use `select` and documented pagination for the required data. Do not silently
  return only the first page when the user needs a complete catalog or inventory.
- When `response.truncated` is true, follow `response.guidance` and reduce
  `max`, `limit`, or `select` where supported. Oversized JSON has a null
  `response.body`. For full, binary, or compressed output, use `request.url`
  directly over HTTPS with the API key in the `X-Api-Key` header.
- If the MCP server reports an expired session with HTTP 404 and
  `X-MCP-Session-Expired: true`, reconnect. A custom client sends a new
  `initialize` request without the old `Mcp-Session-Id`.

## Profile autocomplete

- `GET /autocomplete/profile?search=shro` returns ranked profile suggestions for
  form inputs. It requires the same API key as `/steam/api/profile`. Each
  admitted request consumes one Profile credit and shares the account's Profile
  limits, regardless of the number of suggestions. Empty results, short searches
  and invalid searches also consume that credit once admitted.
- `search` is a trimmed, valid UTF-8 string. Searches need 3–64 characters;
  missing or shorter input returns `[]`, and invalid input or more than 64
  characters returns HTTP 400. Match names by case-insensitive literal prefix;
  `%` and `_` are ordinary characters, not wildcards. Wait for at least three
  characters before sending a form search.
- The response is a direct array of at most five distinct profiles. All six fields
  are always present: `steamid`, `personaname`, `accountname`, `displayname`,
  `profiletype` and `avatarmedium`. `steamid` and `accountname` are strings; the
  other fields are nullable strings. Preserve Steam IDs as strings and use
  `steamid` as the form value. `accountname` is the public custom URL name, with
  the Steam ID as fallback; it is not a private Steam login name.
- Ranking prefers exact account names, then exact persona or display names,
  followed by matching prefixes across all three name fields. The suggestions
  are not guaranteed to be the globally shortest or alphabetically first matches.
  Preserve the returned order.
- Honor `Cache-Control: no-store`. Treat a failure response as an error and
  reserve an empty suggestion list for a successful empty response. This endpoint
  has no pagination or `select` parameter.

## Interpret item and price data

- Use `get_concept` for price and identity fields before calculations. Steam
  listing prices, completed-sale prices and third-party prices are different
  observations. `pricereal` is a third-party market price, not a Steam sale.
- Preserve unknown/null values. Do not turn unavailable prices into zero-value
  items or equate missing metadata with a confirmed negative fact.
- An item catalog entry identifies a market item; it is not a unique inventory
  asset. Use the documented inventory identifiers for asset-specific operations.
- `variants` on items describes phase variants, such as Doppler phases. It is
  not an enumeration of wear conditions or StatTrak/Souvenir versions. Variant
  `pricereal` may be null.

## Discover newly released CS2 items

- `/steam/api/items?game=cs2&only_new_items=1` (also `true`) returns preview items
  from the skin collections sharing the latest known release date.
- `with_preview_items=1` returns regular items plus those same preview items.
  Preview rows have `preview: true`, a catalog item ID, collection name in
  `tag7`, and limited metadata. Do not assume all normal price fields exist on
  preview rows. `select` retains the preview marker automatically.
- `releasedat` contains the earliest known base-skin collection release date as a
  UTC date object, or null. Midnight is a presentation convention.
  It does not establish the release date of a specific Souvenir/StatTrak variant
  or its first Steam listing. Do not substitute it for a first-seen timestamp.
- Verify the availability of a `steamlisting` on preview rows separately. A
  preview `inspectlink` can represent example wear for a catalog item.
- Discovery depends on the upstream catalog and its release dates. An empty
  response is not proof that Valve has released no new content.

## Integrate the CS2 Skin Images API

- Search with `search_endpoints` using `{"query":"CS2 skin images","kind":"endpoint"}`.
  Inspect `/steam/api/item`, `/steam/api/items`, and `/steam/api/items/images`
  with `get_endpoint`, passing each route as `path`.
- Catalog access requires an active package other than Free or Free+. See the
  [Skin Images API guide](https://www.steamwebapi.com/docs/raw/cs2-catalog-images-api.md).
  Configure the client's SteamWebAPI key in the MCP connection's `X-Api-Key`
  or `Authorization: Bearer ...` header. Keep credentials out of tool arguments.

Pass these argument objects in separate `call_readonly_endpoint` calls.

```json
{
  "path": "/steam/api/item",
  "parameters": {
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "with_images": true,
    "select": "markethashname,image,images"
  }
}
```

```json
{
  "path": "/steam/api/items",
  "parameters": {
    "game": "cs2",
    "max": 10,
    "with_images": true,
    "select": "markethashname,itemimage,images,variants"
  }
}
```

- `with_images` defaults to false. With it enabled, include `images` in
  `select` for item views and `variants` for `variants[].images` on Doppler
  phases. Each view has `view` (`front` or `back`), `url`, and `url_expires_at`.
  Use `image` on a single item and `itemimage` on item lists as Steam-image
  fallbacks when renders are unavailable. These renders represent catalog
  variants. Use an asset's Inspect link with the Screenshot API for actual wear,
  paint seed or attachments. The Screenshot API guide is available at
  `docs://markdown/screenshot-api.md`.
- Refresh image links before each view's `url_expires_at`.
- To read the manifest, call `call_readonly_endpoint` with
  `{"path":"/steam/api/items/images","parameters":{"mode":"links"},"maxResponseBytes":200000}`.
  Use the exact `catalog_id` for joins, including Doppler phases. For each
  following page, pass `response.body.next_cursor` as `parameters.cursor`.
  Continue until the cursor is null, even when a page contains zero items.
  If `response.truncated` is true at the tool's response limit, fetch the same
  manifest page directly through HTTPS before advancing.
- The manifest's top-level image fields describe the front view, and `back`
  contains the rear when it is ready. Self-hosted integrations can compare
  front and back `sha256` independently. Fetch the ZIP from the manifest's
  `download_url` directly over HTTPS, using `X-Api-Key` on every request
  including resumed downloads. See the
  [CS2 Skin Images API guide](https://www.steamwebapi.com/docs/raw/cs2-catalog-images-api.md).

## Verify the integration

Use a small representative read to verify fields, types, filters and pagination
before increasing volume. Distinguish verified API output from example data
and untested assumptions.

Use `get_pricing` to size a plan from the current public catalog. Pass the
documented `endpointPath`, peak `expectedRequestsPerMinute`, peak
`expectedRequestsPerDay`, and billing-period `expectedRequestsPerMonth`.
Without a monthly estimate, a daily estimate projects over 31 days. Provide
`creditsPerRequest` when the documented cost varies with options or batch size.
Set `includePlanCatalog` to false for guidance without the full plan list.

```json
{
  "endpointPath": "/steam/api/item",
  "expectedRequestsPerMinute": 20,
  "expectedRequestsPerDay": 2000,
  "expectedRequestsPerMonth": 40000,
  "creditsPerRequest": 1,
  "includePlanCatalog": false
}
```
