# Get collection (/api-reference/cs2/items/get-collection)

`GET /v1/cs2/collections/{slug}`

One CS2 collection with every item in it. Costs 1 credit. Every plan includes it.

```json
{
  "servers": [
    {
      "url": "https://api.steambuff.app"
    }
  ],
  "paths": {
    "/v1/cs2/collections/{slug}": {
      "get": {
        "tags": [
          "CS2 items"
        ],
        "operationId": "get-collection",
        "summary": "Get collection",
        "description": "One CS2 collection with every item in it.",
        "x-usage": {
          "credits": 1,
          "per": "call",
          "plan": "free",
          "planName": "Free"
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "The collection's slug, as `/v1/cs2/collections` and an item's `collections` give it",
              "example": "the-2021-train-collection"
            },
            "required": true,
            "description": "The collection's slug, as `/v1/cs2/collections` and an item's `collections` give it",
            "name": "slug",
            "in": "path",
            "example": "{slug}"
          }
        ],
        "responses": {
          "200": {
            "description": "The collection",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "X-Credits-Limit": {
                "schema": {
                  "type": "integer",
                  "description": "The plan's monthly credits"
                },
                "required": true,
                "description": "The plan's monthly credits"
              },
              "X-Credits-Remaining": {
                "schema": {
                  "type": "integer",
                  "description": "Credits left in the current monthly window"
                },
                "required": true,
                "description": "Credits left in the current monthly window"
              },
              "X-Credits-Reset": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds until the credits reset"
                },
                "required": true,
                "description": "Seconds until the credits reset"
              },
              "X-Credits-Cost": {
                "schema": {
                  "type": "integer",
                  "description": "Credits this request cost; 0 when it didn't succeed"
                },
                "required": true,
                "description": "Credits this request cost; 0 when it didn't succeed"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "slug": "the-2021-train-collection",
                  "name": "The 2021 Train Collection",
                  "image": "https://cdn.steamstatic.com/apps/730/icons/econ/set_icons/set_train_2021.a000b6d4ae1978aeced8ec31aa8ef5a0014dae29.png",
                  "releaseDate": "2021-09-22",
                  "itemCount": 21,
                  "minPrice": 97,
                  "maxPrice": 748723,
                  "listings": 32782,
                  "change7d": 2.41,
                  "rarities": [
                    {
                      "name": "Covert",
                      "color": "#eb4b4b",
                      "count": 6
                    },
                    {
                      "name": "Classified",
                      "color": "#d32ce6",
                      "count": 3
                    },
                    {
                      "name": "Restricted",
                      "color": "#8847ff",
                      "count": 5
                    },
                    {
                      "name": "Mil-Spec Grade",
                      "color": "#4b69ff",
                      "count": 7
                    }
                  ],
                  "crates": [],
                  "items": [
                    {
                      "slug": "glock-18-gamma-doppler-emerald",
                      "name": "Glock-18 | Gamma Doppler",
                      "type": "skin",
                      "category": "pistol",
                      "weapon": "Glock-18",
                      "image": "https://community.akamai.steamstatic.com/economy/image/i0CoZ81Ui0m-9KwlBY1L_18myuGuq1wfhWSaZgMttyVfPaERSR0Wqmu7LAocGIGz3UqlXOLrxM-vMGmW8VNxu5Dx60noTyL2kpnj9h1a4s2rZaF_IfyXMWqR0-x6tehzSi2MkhEosDa6lob-KT-JPwZzA5J4F-8Mt0a-ktTvNeyws1PfjIsQyiX9h3gYvSpr5bwFWash-7qX0V9IgS2WPw",
                      "rarity": {
                        "name": "Covert",
                        "color": "#eb4b4b"
                      },
                      "phase": "Emerald",
                      "inspectLink": "steam://run/730//+csgo_econ_action_preview%2000180420DF0828063004380005D378D4",
                      "minPrice": 12806,
                      "maxPrice": 748723,
                      "qualities": [
                        {
                          "quality": "normal",
                          "minPrice": 12806,
                          "maxPrice": 25500
                        },
                        {
                          "quality": "souvenir",
                          "minPrice": 74872,
                          "maxPrice": 748723
                        }
                      ],
                      "listings": 793,
                      "variantCount": 10,
                      "collections": [
                        {
                          "slug": "the-2021-train-collection",
                          "name": "The 2021 Train Collection"
                        }
                      ],
                      "crates": []
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/CollectionDetail"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, invalid or revoked",
            "content": {
              "application/json": {
                "examples": {
                  "API_KEY_MISSING": {
                    "summary": "No API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_MISSING",
                      "message": "Send your API key in the x-api-key header or as Authorization: Bearer <key>.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "API_KEY_INVALID": {
                    "summary": "An invalid or revoked API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_INVALID",
                      "message": "The API key is invalid or has been revoked.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No collection has that slug",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "NOT_FOUND",
                  "message": "No collection has that slug.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "A parameter is invalid; `details` lists each failure",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "VALIDATION_ERROR",
                  "message": "Request validation failed",
                  "details": [
                    {
                      "path": "slug",
                      "message": "Too big: expected string to have <=200 characters"
                    }
                  ],
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests this minute, or this month's credits are used up",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds to wait before retrying"
                },
                "required": true,
                "description": "Seconds to wait before retrying"
              }
            },
            "content": {
              "application/json": {
                "examples": {
                  "RATE_LIMITED": {
                    "summary": "Too many requests this minute",
                    "value": {
                      "error": true,
                      "code": "RATE_LIMITED",
                      "message": "The Free plan allows 10 requests per minute.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "MONTHLY_QUOTA_EXCEEDED": {
                    "summary": "This month's credits are used up",
                    "value": {
                      "error": true,
                      "code": "MONTHLY_QUOTA_EXCEEDED",
                      "message": "The Free plan's 1,000 monthly credits are used up. They reset at 2026-12-01T00:00:00.000Z. A bigger plan has more: https://steambuff.app/api.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CollectionDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Collection"
          },
          {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GroupedItem"
                },
                "description": "Every item in it that trades, as `/v1/cs2/grouped-items` lists it, the rarest first, then by name"
              }
            },
            "required": [
              "items"
            ]
          }
        ]
      },
      "Collection": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Its id here, as `/v1/cs2/collections/{slug}`, an item's `collections` and the `collection` filter of `/v1/cs2/items` take it",
            "example": "the-2021-train-collection"
          },
          "name": {
            "type": "string",
            "example": "The 2021 Train Collection"
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "releaseDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Release day, YYYY-MM-DD"
          },
          "itemCount": {
            "type": "integer",
            "description": "Items in the collection"
          },
          "minPrice": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest offer outside Steam across its items, integer USD cents; null when nothing is listed"
          },
          "maxPrice": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest offer outside Steam of its dearest item's dearest version, integer USD cents; null when nothing is listed"
          },
          "listings": {
            "type": "integer",
            "description": "Offers on sale outside Steam across its items"
          },
          "change7d": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent move of its items' lowest offers over 7 days, each weighted by its listings; null without a baseline"
          },
          "rarities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionRarity"
            },
            "description": "Items per grade, the rarest first. Items with no grade are left out, so the counts can add up to less than `itemCount`"
          },
          "crates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrateRef"
            },
            "description": "The crates that drop its items, by name; empty when none does"
          }
        },
        "required": [
          "slug",
          "name",
          "image",
          "releaseDate",
          "itemCount",
          "minPrice",
          "maxPrice",
          "listings",
          "change7d",
          "rarities",
          "crates"
        ]
      },
      "CollectionRarity": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Covert"
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "The grade's hex colour"
          },
          "count": {
            "type": "integer",
            "description": "Items of this grade in the collection"
          }
        },
        "required": [
          "name",
          "color",
          "count"
        ]
      },
      "CrateRef": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "example": "operation-phoenix-weapon-case"
          },
          "name": {
            "type": "string",
            "example": "Operation Phoenix Weapon Case"
          }
        },
        "required": [
          "slug",
          "name"
        ]
      },
      "GroupedItem": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Its id here, as `/v1/cs2/grouped-items/{slug}` and `itemSlug` in `/v1/cs2/items` give it",
            "example": "ak-47-redline"
          },
          "name": {
            "type": "string",
            "example": "AK-47 | Redline"
          },
          "type": {
            "type": "string",
            "description": "The catalog's kind: \"skin\", \"sticker\", \"crate\", \"keychain\", \"agent\", …"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "knife",
              "gloves",
              "pistol",
              "rifle",
              "sniper-rifle",
              "smg",
              "shotgun",
              "machinegun",
              "sticker",
              "container",
              "charm",
              "agent",
              "music-kit",
              "equipment",
              null
            ],
            "description": "Its category, as the `category` filter names it; null for one in none",
            "example": "rifle"
          },
          "weapon": {
            "type": [
              "string",
              "null"
            ],
            "example": "AK-47"
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "rarity": {
            "$ref": "#/components/schemas/Rarity"
          },
          "phase": {
            "type": [
              "string",
              "null"
            ],
            "description": "A Doppler's phase (\"Phase 4\", \"Ruby\"…); each phase is an item of its own"
          },
          "inspectLink": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its `steam://` Inspect in Game link; null for kinds CS2 can't preview"
          },
          "minPrice": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest offer outside Steam across every exterior and quality, integer USD cents; null when nothing is listed"
          },
          "maxPrice": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest offer outside Steam of its dearest version, integer USD cents; null when nothing is listed"
          },
          "qualities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupedItemQuality"
            },
            "description": "The price range of each quality it's listed in"
          },
          "listings": {
            "type": "integer",
            "description": "Offers on sale outside Steam across every version"
          },
          "variantCount": {
            "type": "integer",
            "description": "Its tradable versions: each exterior, StatTrak™ and Souvenir counted apart"
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionRef"
            }
          },
          "crates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrateRef"
            },
            "description": "What it drops from"
          }
        },
        "required": [
          "slug",
          "name",
          "type",
          "category",
          "weapon",
          "image",
          "rarity",
          "phase",
          "inspectLink",
          "minPrice",
          "maxPrice",
          "qualities",
          "listings",
          "variantCount",
          "collections",
          "crates"
        ]
      },
      "Rarity": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Classified"
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "The grade's hex colour"
          }
        },
        "required": [
          "name",
          "color"
        ]
      },
      "GroupedItemQuality": {
        "type": "object",
        "properties": {
          "quality": {
            "type": "string",
            "enum": [
              "normal",
              "stattrak",
              "souvenir"
            ]
          },
          "minPrice": {
            "type": "integer",
            "description": "The lowest offer outside Steam across this quality's exteriors, integer USD cents"
          },
          "maxPrice": {
            "type": "integer",
            "description": "The lowest offer outside Steam of this quality's dearest exterior, integer USD cents"
          }
        },
        "required": [
          "quality",
          "minPrice",
          "maxPrice"
        ]
      },
      "CollectionRef": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "example": "the-phoenix-collection"
          },
          "name": {
            "type": "string",
            "example": "The Phoenix Collection"
          }
        },
        "required": [
          "slug",
          "name"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {},
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code",
          "message"
        ]
      }
    }
  }
}
```