# POST /v1/live/steam/listings

Current Steam Community Market listings for one item or every wear of it, with float, paint seed, stickers, charms, and buyer prices in USD.

Returns the current Steam listings for one item, a group, or the whole market, each with the price a buyer pays and the item's float, paint seed, stickers, and charms. Each row has the listing's full detail, so Steam needs no `listing_detail` request.

Available on all plans, at [40 requests per minute on Developer and 240 on Scale](/docs/pricing#live-limits). Each request is for one item, a group, or the whole market, with up to 20 listings per page, or 30 without an item.

Prices are in USD and aren't converted. Data is real-time.

## Inputs

A request needs one of `market_hash_name`, `item_id`, `search`, or a sticker, patch, or charm filter.

| Field | Required | Meaning |
| --- | --- | --- |
| `market_hash_name` | No | The item, by its exact name with the wear. A skin name without a wear, such as `AK-47 \| Redline`, returns [every wear of the skin](/docs/live-steam#items-and-groups). A Doppler or Gamma Doppler phase in the name returns only that variant. |
| `item_id` | No | A [Steam group ID](/docs/live-steam#items-and-groups), such as `G1807209A023004`, for every wear of the item together. |
| `search` | No | Text that Steam matches against item names and descriptions across the whole market. Not with `market_hash_name` or `item_id`. |
| `filters` | No | See [Filters](#filters). |
| `sort` | No | See [Sorting](#sorting). |
| `raw_response` | No | `false` returns [structured rows](/docs/live-overview#raw-and-structured-responses) instead of Steam's JSON. |

```json
{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "filters": { "max_float": 0.2 },
  "sort": { "field": "float" }
}
```

Steam accepts `listing_type`, but `buy_now` is its only listing type.

## Filters

Every filter is optional, and a listing must match all of them.

| Filter | Type | Meaning |
| --- | --- | --- |
| `min_price`, `max_price` | `number` | The buyer's total in USD, inclusive. Needs an item. |
| `min_float`, `max_float` | `number` | The float, from 0 to 1, inclusive. Needs an item. |
| `paint_seeds` | `integer[]` | The paint seed to match. Steam takes exactly one per request. Needs an item. |
| `min_paint_seed`, `max_paint_seed` | `integer` | A paint seed range. Not with `paint_seeds`. Needs an item. |
| `paint_indexes` | `integer[]` | The paint index to match. Steam takes exactly one per request. Needs an item. |
| `min_charm_pattern`, `max_charm_pattern` | `integer` | Charm items only. A pattern range. |
| `stickers` | `object` | Stickers on the item. See [Stickers, patches, and charms](#stickers-patches-and-charms). |
| `patches` | `object` | Patches on the item. |
| `charms` | `object` | Charms attached to the item. |
| `weapon`, `wear`, `quality`, `rarity`, `collection`, `item_type` | `string` or `string[]` | Steam's item categories. Up to 50 values each. |
| `tournament`, `team`, `player` | `string` or `string[]` | A tournament, team, or pro player. `team` and `player` match the stickers on the item. |
| `charm_capsule`, `patch_capsule`, `patch_category`, `graffiti_capsule`, `graffiti_category`, `graffiti_color` | `string` or `string[]` | Steam's other categories. |

"Needs an item" means the request must have `market_hash_name` or `item_id`, or the filter returns `400`.

Category values are Steam's own labels, listed by the [options path](#post-v1livesteamlistingsoptions). With an item, `sticker_capsule` and `sticker_category` return `400`, because they describe stickers sold as items, not stickers on a weapon. They work on [search](/docs/live-steam-search).

Steam's own request parameters go in [`market_parameters`](/docs/live-overview#filters-and-sorting).

### Stickers, patches, and charms

`filters.stickers`, `filters.patches`, and `filters.charms` each take one of two forms:

| Form | Meaning |
| --- | --- |
| `entries` | Up to 50 names. The listing must have any one of them. |
| `presence` | `present` for at least one, `absent` for none. |

With two or more entries, you must send `"match": "any"`, because Steam can't require all of them. An entry has only a `name`, with no `count`, `slot`, or charm pattern range. Different kinds combine with AND.

```json
{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "filters": {
    "stickers": {
      "entries": [
        { "name": "Sticker | Crown (Foil)" },
        { "name": "Sticker | Howling Dawn" }
      ],
      "match": "any"
    }
  }
}
```

## Sorting

Every field is ascending by default, and `sort.direction` reverses it. Without `sort`, listings come in Steam's default order.

| Request | `sort.field` |
| --- | --- |
| With an item | `price`, `float`, `paint_seed`, `paint_index`, and `charm_pattern` for charm items |
| Without an item | `float`, `paint_seed`, `paint_index` |

## Request

`POST https://api.cs2.sh/v1/live/steam/listings`

**curl**

```bash
curl -X POST https://api.cs2.sh/v1/live/steam/listings \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "filters": {
    "max_float": 0.2
  },
  "sort": {
    "field": "float"
  },
  "raw_response": false
}'
```

**Python**

```python
import requests

headers = {
    "Authorization": "Bearer <<YOUR_API_KEY>>",
    "Accept-Encoding": "gzip",
    "Content-Type": "application/json",
}

payload = {
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "filters": {
        "max_float": 0.2,
    },
    "sort": {
        "field": "float",
    },
    "raw_response": False,
}

response = requests.post(
    "https://api.cs2.sh/v1/live/steam/listings",
    headers=headers,
    json=payload,
)

response.raise_for_status()
data = response.json()
```

**Node**

```javascript
const headers = {
  "Authorization": "Bearer <<YOUR_API_KEY>>",
  "Accept-Encoding": "gzip",
  "Content-Type": "application/json",
};

const response = await fetch("https://api.cs2.sh/v1/live/steam/listings", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "filters": {
      "max_float": 0.2
    },
    "sort": {
      "field": "float"
    },
    "raw_response": false
  }),
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
```

**Go**

```go
package main

import (
    "bytes"
    "compress/gzip"
    "encoding/json"
    "fmt"
    "io"
    "net/http"
)

func main() {
    payload := map[string]any{
        "market_hash_name": "AK-47 | Redline (Field-Tested)",
        "filters": map[string]any{
            "max_float": 0.2,
        },
        "sort": map[string]any{
            "field": "float",
        },
        "raw_response": false,
    }
    body, _ := json.Marshal(payload)
    req, _ := http.NewRequest("POST", "https://api.cs2.sh/v1/live/steam/listings", bytes.NewReader(body))
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <<YOUR_API_KEY>>")
    req.Header.Set("Accept-Encoding", "gzip")

    resp, err := http.DefaultClient.Do(req)
    if err != nil { panic(err) }
    defer resp.Body.Close()

    if resp.StatusCode < 200 || resp.StatusCode >= 300 {
        body, _ := io.ReadAll(resp.Body)
        panic(fmt.Sprintf("HTTP %d: %s", resp.StatusCode, body))
    }

    var reader io.Reader = resp.Body
    if resp.Header.Get("Content-Encoding") == "gzip" {
        gz, err := gzip.NewReader(resp.Body)
        if err != nil { panic(err) }
        defer gz.Close()
        reader = gz
    }

    var data any
    if err := json.NewDecoder(reader).Decode(&data); err != nil { panic(err) }
    fmt.Printf("%#v\n", data)
}
```

**R**

```r
library(httr2)

payload <- list(
  market_hash_name = "AK-47 | Redline (Field-Tested)",
  filters = list(
    max_float = 0.2
  ),
  sort = list(
    field = "float"
  ),
  raw_response = FALSE
)

resp <- request("https://api.cs2.sh/v1/live/steam/listings") |>
  req_headers(
    Authorization = "Bearer <<YOUR_API_KEY>>",
    `Accept-Encoding` = "gzip"
  ) |>
  req_body_json(payload) |>
  req_perform()

data <- resp_body_json(resp)
```

## Response

```json
{
  "market": "string",
  "operation": "string",
  "data": null,
  "page": {
    "page_size": 0,
    "has_next": false,
    "next_cursor": "string",
    "cursor_expires_at": "string",
    "total_count": 0,
    "total_exact": false
  },
  "warnings": [
    {
      "code": "string",
      "field": "string",
      "message": "string"
    }
  ],
  "response_time": "string"
}
```

## Response fields

[LiveResponse](/docs/objects#liveresponse) fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `market` | `string` | No | The marketplace: `youpin`, `csfloat`, or `steam`. |
| `operation` | `string` | No | The operation that ran, such as `listings`. |
| `data` | `object` | No | With `raw_response: true`, the default, the marketplace's own JSON, unchanged. With `raw_response: false`, the operation's structured object, which is one of `LiveListingsData`, `LiveListingDetailData`, `LiveBuyOrdersData`, `SteamBuyOrderBook`, `LiveFloatRankData`, or `LiveSearchData`. |
| `page` | [LivePage](/docs/objects#livepage) \| `null` | No | Paging for the next request. `null` on operations that aren't paged. |
| `warnings` | [LiveRequestWarning[]](/docs/objects#liverequestwarning) | No | Notes about the request itself. Absent when there are none. |
| `response_time` | `string (date-time)` | No | When cs2.sh sent the response (UTC). |

## Response data

By default, `data` is Steam's own JSON, with prices in cents and a listing's buyer total as `unPrice + unFee`. With `raw_response: false`, `data.listings[]` holds one [LiveListing](/docs/objects#livelisting) per listing:

| Field | Description |
| --- | --- |
| `id` | The Steam listing ID, as a string. |
| `listing_type` | Always `buy_now`. |
| `price`, `currency` | The buyer's total, with Steam's fee included. |
| `item` | The listed item, as a [LiveItem](/docs/objects#liveitem) with its `market_hash_name`, `variant`, `float`, `paint_seed`, `paint_index`, `stickers[]`, `charms[]`, `patches[]`, `name_tag`, and more. |
| `seller_id`, `created_at` | Always `null`, because Steam doesn't show the seller or when the listing was made. |
| `detail_query`, `store_query` | Always `null`, because Steam has no listing detail and no stores. |

## Requests without an item

A request with `search`, or with only sticker, patch, or charm filters, reads listings across the whole market. It differs from a request for an item in three ways:

- A page holds up to 30 listings.
- Rows can be priced in different currencies, each in its row's `currency`.
- The filters marked "Needs an item" and `sort.field` `price` return `400`.

To find items by name or category, use [search](/docs/live-steam-search) and send a row's `listings_query`.

## Notes

In structured rows, stickers carry a `wear` and charms carry a `pattern`. Their `slot` is always `null`, because Steam doesn't say where an accessory sits.

The options path's sticker choices are capped, and a sticker missing from them still works by its exact name.

## Errors

If Steam has no item with that exact name, the request returns `404` with `details.field` set to `market_hash_name`. Other errors are the [shared live errors](/docs/live-overview#errors-and-retries).

## POST /v1/live/steam/listings/options

Returns the valid [choices](/docs/live-overview#filter-options) for one field of a listings request. These fields have choices:

| `field` | Choices |
| --- | --- |
| `filters.weapon`, `filters.wear`, `filters.quality`, `filters.rarity`, `filters.collection`, `filters.item_type` | Steam's labels for that category |
| `filters.tournament`, `filters.team`, `filters.player` | Tournaments, teams, and pro players |
| The capsule and category filters | Steam's labels for that category |
| `filters.stickers.entries[].name` | Sticker names |
| `filters.patches.entries[].name` | Patch names |
| `filters.charms.entries[].name` | Charm names |
| `sort` | The sorts available |

Each option's `query` is a complete listings request with the choice applied, and a sticker choice is added to the stickers already in your request.

```json
{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "field": "filters.stickers.entries[].name",
  "contains": "Crown"
}
```

Sticker name choices are suggestions, so their `completeness` is `partial`.

### Request

`POST https://api.cs2.sh/v1/live/steam/listings/options`

**curl**

```bash
curl -X POST https://api.cs2.sh/v1/live/steam/listings/options \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "field": "filters.stickers.entries[].name",
  "contains": "Crown"
}'
```

**Python**

```python
import requests

headers = {
    "Authorization": "Bearer <<YOUR_API_KEY>>",
    "Accept-Encoding": "gzip",
    "Content-Type": "application/json",
}

payload = {
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "field": "filters.stickers.entries[].name",
    "contains": "Crown",
}

response = requests.post(
    "https://api.cs2.sh/v1/live/steam/listings/options",
    headers=headers,
    json=payload,
)

response.raise_for_status()
data = response.json()
```

**Node**

```javascript
const headers = {
  "Authorization": "Bearer <<YOUR_API_KEY>>",
  "Accept-Encoding": "gzip",
  "Content-Type": "application/json",
};

const response = await fetch("https://api.cs2.sh/v1/live/steam/listings/options", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "field": "filters.stickers.entries[].name",
    "contains": "Crown"
  }),
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
```

**Go**

```go
package main

import (
    "bytes"
    "compress/gzip"
    "encoding/json"
    "fmt"
    "io"
    "net/http"
)

func main() {
    payload := map[string]any{
        "market_hash_name": "AK-47 | Redline (Field-Tested)",
        "field": "filters.stickers.entries[].name",
        "contains": "Crown",
    }
    body, _ := json.Marshal(payload)
    req, _ := http.NewRequest("POST", "https://api.cs2.sh/v1/live/steam/listings/options", bytes.NewReader(body))
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <<YOUR_API_KEY>>")
    req.Header.Set("Accept-Encoding", "gzip")

    resp, err := http.DefaultClient.Do(req)
    if err != nil { panic(err) }
    defer resp.Body.Close()

    if resp.StatusCode < 200 || resp.StatusCode >= 300 {
        body, _ := io.ReadAll(resp.Body)
        panic(fmt.Sprintf("HTTP %d: %s", resp.StatusCode, body))
    }

    var reader io.Reader = resp.Body
    if resp.Header.Get("Content-Encoding") == "gzip" {
        gz, err := gzip.NewReader(resp.Body)
        if err != nil { panic(err) }
        defer gz.Close()
        reader = gz
    }

    var data any
    if err := json.NewDecoder(reader).Decode(&data); err != nil { panic(err) }
    fmt.Printf("%#v\n", data)
}
```

**R**

```r
library(httr2)

payload <- list(
  market_hash_name = "AK-47 | Redline (Field-Tested)",
  field = "filters.stickers.entries[].name",
  contains = "Crown"
)

resp <- request("https://api.cs2.sh/v1/live/steam/listings/options") |>
  req_headers(
    Authorization = "Bearer <<YOUR_API_KEY>>",
    `Accept-Encoding` = "gzip"
  ) |>
  req_body_json(payload) |>
  req_perform()

data <- resp_body_json(resp)
```

### Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `field` | `string` | Yes | The request field to list choices for, such as `filters.weapon` or `filters.stickers.entries[].name`. |
| `contains` | `string` | No | Text that a choice's label must contain, matched without regard to case. |
| `cursor` | `string` | No | The `page.next_cursor` from the previous page of choices, sent as the only field. |

### Response

```json
{
  "market": "string",
  "operation": "string",
  "field": "string",
  "availability": "string",
  "completeness": "string",
  "options": [
    {
      "label": "string",
      "query": {
        "path": "string",
        "body": null
      }
    }
  ],
  "metadata": null,
  "page": {
    "page_size": 0,
    "has_next": false,
    "next_cursor": "string",
    "cursor_expires_at": "string",
    "total_count": 0,
    "total_exact": false
  },
  "response_time": "string"
}
```

### Response fields

[LiveOptionsResponse](/docs/objects#liveoptionsresponse) fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `market` | `string` | No | The marketplace. |
| `operation` | `string` | No | The data operation the choices apply to. |
| `field` | `string` | No | The request field the choices are for. |
| `availability` | `string` | No | Whether choices could be loaded for this request. |
| `completeness` | `string` | No | `complete` when the list holds every accepted value. `partial` when it holds suggestions, and other values may also work. |
| `options` | [LiveOption[]](/docs/objects#liveoption) | No | The choices. |
| `metadata` | `object` | No | Information about the choice list, such as when it was fetched. |
| `page` | [LivePage](/docs/objects#livepage) | No | Paging for long choice lists. |
| `response_time` | `string (date-time)` | No | When cs2.sh sent the response (UTC). |
