### Get All Marketplace Listings (JSON Response Example)
Source: https://context7.com/csfloat/docs/llms.txt
An example JSON response for the 'Get All Marketplace Listings' endpoint. It includes details about each listed item, its seller, pricing, and associated stickers. This is a sample output and may vary.
```json
[
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/97/974f0a94f47f50a1a6a769fc8ff093cb93a49066_full.jpg",
"flags": 435,
"online": true,
"stall_public": true,
"statistics": {
"median_trade_time": 236,
"total_failed_trades": 0,
"total_trades": 24,
"total_verified_trades": 24
},
"steam_id": "76561198084749846",
"username": "Step7750"
},
"item": {
"asset_id": "22547095285",
"def_index": 16,
"paint_index": 449,
"paint_seed": 700,
"float_value": 0.02796577662229538,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"stickers": [
{
"stickerId": 1060,
"slot": 3,
"name": "Sticker | Team EnVyUs (Holo) | MLG Columbus 2016",
"scm": {"price": 736, "volume": 1}
}
],
"tradable": 0,
"inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A22547095285D17054198177995786400",
"has_screenshot": true,
"item_name": "M4A4 | Poseidon",
"wear_name": "Factory New",
"collection": "The Gods and Monsters Collection"
},
"min_offer_price": 221000,
"max_offer_discount": 1500,
"watchers": 0
}
]
```
--------------------------------
### Create New Listing (JSON Response Example)
Source: https://context7.com/csfloat/docs/llms.txt
An example JSON response for the 'Create New Listing' endpoint. It confirms the creation of a new listing and returns details of the created listing, including item information, seller data, and its initial state.
```json
{
"id": "292312870132253796",
"created_at": "2021-03-17T15:06:59.155367Z",
"type": "buy_now",
"price": 8900,
"description": "Factory New M4A1-S with 4x Katowice 2014 stickers",
"state": "listed",
"seller": {
"obfuscated_id": "9169061817522033479",
"online": false,
"statistics": {
"median_trade_time": 305,
"total_trades": 13
}
},
"item": {
"asset_id": "21078095468",
"float_value": 0.26253828406333923,
"market_hash_name": "M4A1-S | Boreal Forest (Field-Tested)",
"stickers": [
{
"stickerId": 55,
"slot": 0,
"name": "Sticker | Fnatic | Katowice 2014"
}
]
}
}
```
--------------------------------
### Start Middleman Development Server
Source: https://context7.com/csfloat/docs/llms.txt
Launches the Middleman development server using a provided script. This command enables live reloading for documentation development, automatically updating the browser on file changes. It's configured to use forced polling, which is beneficial in containerized environments.
```bash
./slate.sh serve
# Server runs at http://localhost:4567
# File changes trigger automatic page reloads
# Uses forced polling for container environments
```
--------------------------------
### Example JSON Response for a Specific Listing
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
This is an example of the JSON structure returned when querying a specific listing via the CSFloat API. It includes details such as the listing ID, creation timestamp, type, price, state, seller information, and comprehensive item attributes including stickers and inspect links. This structure helps in understanding the data format for processed listings.
```json
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/97/974f0a94f47f50a1a6a769fc8ff093cb93a49066_full.jpg",
"flags": 435,
"online": true,
"stall_public": true,
"statistics": {
"median_trade_time": 236,
"total_failed_trades": 0,
"total_trades": 24,
"total_verified_trades": 24
},
"steam_id": "76561198084749846",
"username": "Step7750"
},
"item": {
"asset_id": "22547095285",
"def_index": 16,
"paint_index": 449,
"paint_seed": 700,
"float_value": 0.02796577662229538,
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpou-6kejhjxszYfi5H5di5mr-HnvD8J_WCkmkEvp0pi7zDodv3jAHj-UM5ZGr7INfHJAc9MlzV-FK_kO281pa_ot2XnrA-A3kA",
"d_param": "17054198177995786400",
"is_stattrak": false,
"is_souvenir": false,
"rarity": 5,
"quality": 4,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"stickers": [
{
"stickerId": 1060,
"slot": 3,
"icon_url": "columbus2016/nv_holo.fbbf7dc3ef16ade69ac294589fbe97f0a3169003.png",
"name": "Sticker | Team EnVyUs (Holo) | MLG Columbus 2016",
"scm": {
"price": 736,
"volume": 1
}
}
],
"tradable": 0,
"inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A22547095285D17054198177995786400",
"has_screenshot": true,
"scm": {
"price": 175076,
"volume": 0
},
"item_name": "M4A4 | Poseidon",
"wear_name": "Factory New",
"description": "It has been custom painted with a depiction of a battle between Pisces and Poseidon.\n\nThree can keep a secret if two of them are dead",
"collection": "The Gods and Monsters Collection",
"badges": []
},
"is_seller": false,
"min_offer_price": 221000,
"max_offer_discount": 1500,
"is_watchlisted": false,
"watchers": 0
}
```
--------------------------------
### Get Specific Listing by ID (JSON Response Example)
Source: https://context7.com/csfloat/docs/llms.txt
An example JSON response for the 'Get Specific Listing by ID' endpoint. It includes core details of a CSFloat listing, such as item identifier, price, seller information, and limited item metadata.
```json
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"steam_id": "76561198084749846",
"username": "Step7750",
"online": true,
"statistics": {
"median_trade_time": 236,
"total_trades": 24,
"total_verified_trades": 24
}
},
"item": {
"asset_id": "22547095285",
"float_value": 0.02796577662229538,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"paint_seed": 700,
"rarity": 5,
"quality": 4,
"stickers": []
}
}
```
--------------------------------
### Get All Listings
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
Retrieves all active listings on CSFloat Market. Requires API key authentication.
```APIDOC
## GET /api/v1/listings
### Description
This endpoint retrieves all active listings on CSFloat Market.
### Method
GET
### Endpoint
`https://csfloat.com/api/v1/listings`
### Parameters
#### Query Parameters
- **Authorization** (string) - Required - Your API key in the format `Authorization: `
### Request Example
```http
GET /api/v1/listings HTTP/1.1
Host: csfloat.com
Authorization: YOUR_API_KEY
```
### Response
#### Success Response (200)
- **listings** (array) - An array of listing objects.
- **id** (string) - The unique identifier for the listing.
- **created_at** (string) - The timestamp when the listing was created.
- **type** (string) - The type of listing (e.g., "buy_now").
- **price** (integer) - The price of the item in the smallest currency unit.
- **state** (string) - The current state of the listing (e.g., "listed").
- **seller** (object) - Information about the seller.
- **item** (object) - Information about the item being listed.
- **is_seller** (boolean) - Indicates if the authenticated user is the seller.
- **min_offer_price** (integer) - The minimum offer price accepted.
- **max_offer_discount** (integer) - The maximum discount allowed for offers.
- **is_watchlisted** (boolean) - Indicates if the listing is on the user's watchlist.
- **watchers** (integer) - The number of users watching the listing.
#### Response Example
```json
[
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/97/974f0a94f47f50a1a6a769fc8ff093cb93a49066_full.jpg",
"flags": 435,
"online": true,
"stall_public": true,
"statistics": {
"median_trade_time": 236,
"total_failed_trades": 0,
"total_trades": 24,
"total_verified_trades": 24
},
"steam_id": "76561198084749846",
"username": "Step7750"
},
"item": {
"asset_id": "22547095285",
"def_index": 16,
"paint_index": 449,
"paint_seed": 700,
"float_value": 0.02796577662229538,
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpou-6kejhjxszYfi5H5di5mr-HnvD8J_WCkmkEvp0pi7zDodv3jAHj-UM5ZGr7INfHJAc9MlzV-FK_kO281pa_ot2XnrA-A3kA",
"d_param": "17054198177995786400",
"is_stattrak": false,
"is_souvenir": false,
"rarity": 5,
"quality": 4,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"stickers": [
{
"stickerId": 1060,
"slot": 3,
"icon_url": "columbus2016/nv_holo.fbbf7dc3ef16ade69ac294589fbe97f0a3169003.png",
"name": "Sticker | Team EnVyUs (Holo) | MLG Columbus 2016",
"scm": {
"price": 736,
"volume": 1
}
}
],
"tradable": 0,
"inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A22547095285D17054198177995786400",
"has_screenshot": true,
"scm": {
"price": 175076,
"volume": 0
},
"item_name": "M4A4 | Poseidon",
"wear_name": "Factory New",
"description": "It has been custom painted with a depiction of a battle between Pisces and Poseidon.\n\nThree can keep a secret if two of them are dead",
"collection": "The Gods and Monsters Collection",
"badges": []
},
"is_seller": false,
"min_offer_price": 221000,
"max_offer_discount": 1500,
"is_watchlisted": false,
"watchers": 0
}
...
]
```
#### Error Response (401)
- **error** (string) - Description of the error (e.g., "Invalid API Key")
```
--------------------------------
### Get All Listings (Shell)
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
Retrieves all active listings from the CSFloat Market. This endpoint requires no special parameters beyond the base URL. The response is a JSON array of listing objects.
```shell
curl "https://csfloat.com/api/v1/listings"
```
--------------------------------
### Get All Marketplace Listings (Shell)
Source: https://context7.com/csfloat/docs/llms.txt
Retrieves a paginated list of active CSFloat marketplace listings. Supports filtering by float value, price range, category, and sorting preferences. Requires no authentication.
```shell
curl "https://csfloat.com/api/v1/listings?limit=10&sort_by=lowest_price&min_float=0.00&max_float=0.01&category=2&min_price=100000&max_price=500000"
```
--------------------------------
### Get a Specific Listing
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
Retrieves the details for a specific CS:GO item listing using its unique ID. This endpoint works for both active and inactive listings.
```APIDOC
## GET /api/v1/listings/{ID}
### Description
Retrieves the details for a specific listing, regardless of whether it is "active" or "in-active" (ie. `state` != `listed`).
### Method
GET
### Endpoint
`https://csfloat.com/api/v1/listings/`
### Parameters
#### Path Parameters
- **ID** (string) - Required - The ID of the listing to retrieve
### Response
#### Success Response (200)
- **id** (string) - The unique identifier for the listing.
- **created_at** (string) - The timestamp when the listing was created.
- **type** (string) - The type of listing (e.g., `buy_now`, `auction`).
- **price** (integer) - The price of the listing in cents.
- **state** (string) - The current state of the listing (e.g., `listed`, `sold`).
- **seller** (object) - Information about the seller.
- **avatar** (string) - URL to the seller's avatar.
- **flags** (integer) - Seller's flags.
- **online** (boolean) - Whether the seller is currently online.
- **stall_public** (boolean) - Whether the seller's stall is public.
- **statistics** (object) - Seller's trading statistics.
- **median_trade_time** (integer) - Median trade time in seconds.
- **total_failed_trades** (integer) - Total number of failed trades.
- **total_trades** (integer) - Total number of trades.
- **total_verified_trades** (integer) - Total number of verified trades.
- **steam_id** (string) - The seller's SteamID64.
- **username** (string) - The seller's username.
- **item** (object) - Information about the item listed.
- **asset_id** (string) - The asset ID of the item.
- **def_index** (integer) - The item's definition index.
- **paint_index** (integer) - The item's paint index.
- **paint_seed** (integer) - The item's paint seed.
- **float_value** (number) - The wear float value of the item.
- **icon_url** (string) - URL to the item's icon.
- **d_param** (string) - The `d` parameter for inspecting the item.
- **is_stattrak** (boolean) - Whether the item is StatTrak.
- **is_souvenir** (boolean) - Whether the item is Souvenir.
- **rarity** (integer) - The item's rarity level.
- **quality** (integer) - The item's quality level.
- **market_hash_name** (string) - The item's market hash name.
- **stickers** (array) - An array of sticker objects.
- **stickerId** (integer) - The ID of the sticker.
- **slot** (integer) - The slot where the sticker is applied.
- **icon_url** (string) - URL to the sticker's icon.
- **name** (string) - The name of the sticker.
- **scm** (object) - Sticker's Steam Community Market data.
- **price** (integer) - The price of the sticker.
- **volume** (integer) - The trading volume of the sticker.
- **tradable** (integer) - Indicates if the item is tradable (0 for tradable, 1 for not tradable).
- **inspect_link** (string) - A link to inspect the item in-game.
- **has_screenshot** (boolean) - Whether a screenshot is available for the item.
- **scm** (object) - Item's Steam Community Market data.
- **price** (integer) - The price of the item.
- **volume** (integer) - The trading volume of the item.
- **item_name** (string) - The base name of the item.
- **wear_name** (string) - The wear name of the item (e.g., "Factory New").
- **description** (string) - The item's description.
- **collection** (string) - The collection the item belongs to.
- **badges** (array) - Any badges associated with the item.
- **is_seller** (boolean) - Whether the authenticated user is the seller.
- **min_offer_price** (integer) - The minimum offer price for the listing.
- **max_offer_discount** (integer) - The maximum discount allowed for offers.
- **is_watchlisted** (boolean) - Whether the listing is on the user's watchlist.
- **watchers** (integer) - The number of users watching the listing.
#### Response Example
```json
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/97/974f0a94f47f50a1a6a769fc8ff093cb93a49066_full.jpg",
"flags": 435,
"online": true,
"stall_public": true,
"statistics": {
"median_trade_time": 236,
"total_failed_trades": 0,
"total_trades": 24,
"total_verified_trades": 24
},
"steam_id": "76561198084749846",
"username": "Step7750"
},
"item": {
"asset_id": "22547095285",
"def_index": 16,
"paint_index": 449,
"paint_seed": 700,
"float_value": 0.02796577662229538,
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpou-6kejhjxszYfi5H5di5mr-HnvD8J_WCkmkEvp0pi7zDodv3jAHj-UM5ZGr7INfHJAc9MlzV-FK_kO281pa_ot2XnrA-A3kA",
"d_param": "17054198177995786400",
"is_stattrak": false,
"is_souvenir": false,
"rarity": 5,
"quality": 4,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"stickers": [
{
"stickerId": 1060,
"slot": 3,
"icon_url": "columbus2016/nv_holo.fbbf7dc3ef16ade69ac294589fbe97f0a3169003.png",
"name": "Sticker | Team EnVyUs (Holo) | MLG Columbus 2016",
"scm": {
"price": 736,
"volume": 1
}
}
],
"tradable": 0,
"inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A22547095285D17054198177995786400",
"has_screenshot": true,
"scm": {
"price": 175076,
"volume": 0
},
"item_name": "M4A4 | Poseidon",
"wear_name": "Factory New",
"description": "It has been custom painted with a depiction of a battle between Pisces and Poseidon.\n\nThree can keep a secret if two of them are dead",
"collection": "The Gods and Monsters Collection",
"badges": []
},
"is_seller": false,
"min_offer_price": 221000,
"max_offer_discount": 1500,
"is_watchlisted": false,
"watchers": 0
}
```
### Request Example
```shell
curl "https://csfloat.com/api/v1/listings/324288155723370196"
```
```
--------------------------------
### Get Specific Listing by ID
Source: https://context7.com/csfloat/docs/llms.txt
Fetches detailed information for a single listing including full item metadata, seller statistics, pricing details, and current state regardless of whether the listing is active or completed.
```APIDOC
## GET /api/v1/listings/{id}
### Description
Fetches detailed information for a single listing by its ID.
### Method
GET
### Endpoint
/api/v1/listings/{id}
### Path Parameters
- **id** (string) - Required - The unique identifier of the listing.
### Response
#### Success Response (200)
- **Listing object** - Contains detailed information about the specified listing.
### Response Example
```json
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"steam_id": "76561198084749846",
"username": "Step7750",
"online": true,
"statistics": {
"median_trade_time": 236,
"total_trades": 24,
"total_verified_trades": 24
}
},
"item": {
"asset_id": "22547095285",
"float_value": 0.02796577662229538,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"paint_seed": 700,
"rarity": 5,
"quality": 4,
"stickers": []
}
}
```
```
--------------------------------
### Get Specific Listing by ID (Shell)
Source: https://context7.com/csfloat/docs/llms.txt
Fetches detailed information for a single CSFloat listing using its unique ID. This endpoint provides comprehensive metadata about the item, seller, and pricing, regardless of the listing's current state.
```shell
curl "https://csfloat.com/api/v1/listings/324288155723370196"
```
--------------------------------
### CSFloat API Response Structure for Listed Item
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
This is an example of the JSON response received after successfully listing an item using the CSFloat API. It includes details about the listing itself (ID, type, price, state) and comprehensive information about the item being listed, including its properties, stickers, and seller statistics.
```json
{
"id": "292312870132253796",
"created_at": "2021-03-17T15:06:59.155367Z",
"type": "buy_now",
"price": 8900,
"description": "Just for show",
"state": "listed",
"seller": {
"flags": 48,
"obfuscated_id": "9169061817522033479",
"online": false,
"stall_public": false,
"statistics": {
"median_trade_time": 305,
"total_failed_trades": 0,
"total_trades": 13,
"total_verified_trades": 13
}
},
"item": {
"asset_id": "21078095468",
"def_index": 60,
"paint_index": 77,
"paint_seed": 346,
"float_value": 0.26253828406333923,
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpou-6kejhz2v_Nfz5H_uO-jb-NmOXxIK_ulGRD7cR9teTE8YXghRrhrRBrMWD7coCQegU6aQyE_gC6xOi6gJC5tJTMn3BqvyNztH_VnRS-n1gSOeVXeHpm",
"d_param": "721253437254664138",
"is_stattrak": false,
"is_souvenir": false,
"rarity": 2,
"quality": 4,
"market_hash_name": "M4A1-S | Boreal Forest (Field-Tested)",
"stickers": [
{
"stickerId": 55,
"slot": 0,
"icon_url": "emskatowice2014/fnatic.7f37dae42f8afbd799b89f77334be023368ba27a.png",
"name": "Sticker | Fnatic | Katowice 2014",
"scm": {
"price": 41000,
"volume": 0
}
},
{
"stickerId": 55,
"slot": 1,
"wear": 0.09002881,
"icon_url": "emskatowice2014/fnatic.7f37dae42f8afbd799b89f77334be023368ba27a.png",
"name": "Sticker | Fnatic | Katowice 2014",
"scm": {
"price": 41000,
"volume": 0
}
},
{
"stickerId": 73,
"slot": 2,
"wear": 0.21217501,
"icon_url": "emskatowice2014/reason.d48f01f2758c2852ef32a68c49f7039ce211500a.png",
"name": "Sticker | Reason Gaming | Katowice 2014",
"scm": {
"price": 118625,
"volume": 0
}
},
{
"stickerId": 73,
"slot": 3,
"icon_url": "emskatowice2014/reason.d48f01f2758c2852ef32a68c49f7039ce211500a.png",
"name": "Sticker | Reason Gaming | Katowice 2014",
"scm": {
"price": 118625,
"volume": 0
}
}
],
"tradable": 0,
"has_screenshot": true,
"scm": {
"price": 11,
"volume": 0
},
"item_name": "M4A1-S | Boreal Forest",
"wear_name": "Field-Tested",
"description": "It has been painted using a forest camouflage hydrographic.\n\nThe woods can be a dangerous place... never travel alone",
"collection": "The Italy Collection",
"badges": []
},
"is_seller": false,
"min_offer_price": 7565,
"max_offer_discount": 1500,
"is_watchlisted": false,
"watchers": 0
}
```
--------------------------------
### Get All Marketplace Listings
Source: https://context7.com/csfloat/docs/llms.txt
Retrieves paginated active listings from the CSFloat marketplace with extensive filtering options including float value ranges, price ranges, weapon types, sticker combinations, and sorting preferences.
```APIDOC
## GET /api/v1/listings
### Description
Retrieves paginated active listings from the CSFloat marketplace with extensive filtering options.
### Method
GET
### Endpoint
/api/v1/listings
### Query Parameters
- **limit** (integer) - Optional - The number of listings to return per page.
- **sort_by** (string) - Optional - The field to sort listings by (e.g., "lowest_price").
- **min_float** (float) - Optional - The minimum float value for listings.
- **max_float** (float) - Optional - The maximum float value for listings.
- **category** (integer) - Optional - The category ID for filtering listings.
- **min_price** (integer) - Optional - The minimum price for listings.
- **max_price** (integer) - Optional - The maximum price for listings.
### Response
#### Success Response (200)
- **Array of listing objects** - Each object contains details about a marketplace listing including item, seller, and pricing information.
### Response Example
```json
[
{
"id": "324288155723370196",
"created_at": "2021-06-13T20:45:21.311794Z",
"type": "buy_now",
"price": 260000,
"state": "listed",
"seller": {
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/97/974f0a94f47f50a1a6a769fc8ff093cb93a49066_full.jpg",
"flags": 435,
"online": true,
"stall_public": true,
"statistics": {
"median_trade_time": 236,
"total_failed_trades": 0,
"total_trades": 24,
"total_verified_trades": 24
},
"steam_id": "76561198084749846",
"username": "Step7750"
},
"item": {
"asset_id": "22547095285",
"def_index": 16,
"paint_index": 449,
"paint_seed": 700,
"float_value": 0.02796577662229538,
"market_hash_name": "M4A4 | Poseidon (Factory New)",
"stickers": [
{
"stickerId": 1060,
"slot": 3,
"name": "Sticker | Team EnVyUs (Holo) | MLG Columbus 2016",
"scm": {"price": 736, "volume": 1}
}
],
"tradable": 0,
"inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A22547095285D17054198177995786400",
"has_screenshot": true,
"item_name": "M4A4 | Poseidon",
"wear_name": "Factory New",
"collection": "The Gods and Monsters Collection"
},
"min_offer_price": 221000,
"max_offer_discount": 1500,
"watchers": 0
}
]
```
```
--------------------------------
### Build Documentation with Slate
Source: https://context7.com/csfloat/docs/llms.txt
Compiles the project's markdown documentation into static HTML files using the Slate build process. This command optimizes assets, applies syntax highlighting, and includes full-text search capabilities, outputting the results to a designated directory.
```bash
./slate.sh build
# Output directory: ./build/
# Minified CSS and JavaScript
# Asset hashing for cache busting
# Relative links for GitHub Pages compatibility
```
--------------------------------
### Deploy Documentation to GitHub Pages
Source: https://context7.com/csfloat/docs/llms.txt
Automates the process of building and deploying documentation to the 'gh-pages' branch. This script supports custom commit messages, incremental deployments, and options to skip the build process or allow empty deployments. Verbose output is available for debugging.
```bash
./slate.sh deploy
# With custom commit message
./slate.sh deploy -m "Update API endpoints documentation"
# Build only without deploying
./slate.sh deploy --no-build
# Allow empty deployment
./slate.sh deploy --allow-empty
# Verbose output for debugging
./slate.sh deploy -v
```
--------------------------------
### Create New Listing (Shell)
Source: https://context7.com/csfloat/docs/llms.txt
Creates a new item listing on the CSFloat marketplace. Requires an API key for authentication and specifies item details like asset ID, type, price, and an optional description. Supports buy-now and auction types.
```shell
curl -X POST "https://csfloat.com/api/v1/listings" \
-H "Authorization: YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"asset_id": "21078095468",
"type": "buy_now",
"price": 8900,
"description": "Factory New M4A1-S with 4x Katowice 2014 stickers",
"private": false,
"max_offer_discount": 1500
}'
```
--------------------------------
### Create New Listing
Source: https://context7.com/csfloat/docs/llms.txt
Posts a new item listing to the CSFloat marketplace with support for both instant buy-now sales and auction-style listings, including optional privacy settings and custom descriptions.
```APIDOC
## POST /api/v1/listings
### Description
Creates a new item listing on the CSFloat marketplace.
### Method
POST
### Endpoint
/api/v1/listings
### Parameters
#### Request Body
- **asset_id** (string) - Required - The asset ID of the item to list.
- **type** (string) - Required - The type of listing (e.g., "buy_now").
- **price** (integer) - Required - The price of the listing in cents.
- **description** (string) - Optional - A custom description for the listing.
- **private** (boolean) - Optional - Whether the listing should be private.
- **max_offer_discount** (integer) - Optional - The maximum allowed discount for offers.
### Request Example
```json
{
"asset_id": "21078095468",
"type": "buy_now",
"price": 8900,
"description": "Factory New M4A1-S with 4x Katowice 2014 stickers",
"private": false,
"max_offer_discount": 1500
}
```
### Response
#### Success Response (200)
- **Listing object** - Contains details of the newly created listing.
#### Response Example
```json
{
"id": "292312870132253796",
"created_at": "2021-03-17T15:06:59.155367Z",
"type": "buy_now",
"price": 8900,
"description": "Factory New M4A1-S with 4x Katowice 2014 stickers",
"state": "listed",
"seller": {
"obfuscated_id": "9169061817522033479",
"online": false,
"statistics": {
"median_trade_time": 305,
"total_trades": 13
}
},
"item": {
"asset_id": "21078095468",
"float_value": 0.26253828406333923,
"market_hash_name": "M4A1-S | Boreal Forest (Field-Tested)",
"stickers": [
{
"stickerId": 55,
"slot": 0,
"name": "Sticker | Fnatic | Katowice 2014"
}
]
}
}
```
```
--------------------------------
### Middleman Configuration in Ruby
Source: https://context7.com/csfloat/docs/llms.txt
Sets up Middleman for documentation generation, including markdown rendering (Redcarpet), syntax highlighting, asset pipeline configuration (Sprockets), and autoprefixer. It defines build-specific optimizations like CSS/JavaScript minification and asset hashing.
```ruby
# config.rb
require './lib/unique_head.rb'
set :markdown_engine, :redcarpet
set :markdown,
fenced_code_blocks: true,
smartypants: true,
disable_indented_code_blocks: true,
prettify: true,
strikethrough: true,
tables: true,
with_toc_data: true,
no_intra_emphasis: true,
renderer: UniqueHeadCounter
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
activate :syntax
activate :sprockets
activate :autoprefixer do |config|
config.browsers = ['last 2 version', 'Firefox ESR']
end
activate :relative_assets
set :relative_links, true
configure :build do
activate :asset_hash, :exts => app.config[:asset_extensions] - %w[.woff .woff2]
activate :minify_css
activate :minify_javascript
end
set :port, 4567
```
--------------------------------
### List Item via 'buy_now' using cURL
Source: https://github.com/csfloat/docs/blob/main/source/index.html.md
This command demonstrates how to list an item for sale on CSFloat using the 'buy_now' option via a POST request. It requires an authorization header with your API key and a JSON payload specifying the item's asset ID, price, and other optional details. The response will contain details of the newly listed item.
```shell
curl -X POST "https://csfloat.com/api/v1/listings" \
-H "Authorization: ; Content-Type: application/json" \
-d '{"asset_id": 21078095468, "type": "buy_now", "price": 8900, "description": "Just for show", "private": false}'
```