---
title: "ZIP export of the last 24 hours (Enterprise)"
method: GET
path: "/v1/market-sales/export"
tags: ["Sales Data"]
---

# ZIP export of the last 24 hours (Enterprise)

`GET /v1/market-sales/export`

## Request

- Base URL: `https://api.cspriceapi.com`
- URL: `https://api.cspriceapi.com/v1/market-sales/export`
- Auth: API key in header `x-api-key`

Returns a **ZIP archive** (`market-sales-export.zip`) with three CSV files
for subscription customers who replicate the dataset locally once per day.

| File in ZIP | Contents | Typical row count |
|-------------|------------------|-------------------|
| `sales.csv` | Sale events | ~100k / 24h |
| `stickers.csv` | Stickers attached to sales | ~60k / 24h |
| `keychains.csv` | Keychains attached to sales | ~1k / 24h |

Always exports **all rows from the last 24 hours**
in a single request (~6 MB compressed ZIP). No pagination.

Join the CSVs locally on `(marketplace, sale_id, sold_at)`.


Requires `x-api-key`. The key must include `/v1/market-sales/export` in its
`allowed_endpoints` (or `*`).


```bash
curl -H "x-api-key: YOUR_KEY" \
  "https://api.cspriceapi.com/v1/market-sales/export" \
  -o market-sales-export.zip
unzip market-sales-export.zip
```


See component schemas `MarketSalesCsvSalesRow`, `MarketSalesCsvStickersRow`
and `MarketSalesCsvKeychainsRow` for the exact column layout.

**Notes**

- `price` and `reference_price` are in **cents** (integer).
- `sale_id`, `sticker_id`, `keychain_id` are large integers serialized as
  **strings** in CSV to avoid JavaScript precision loss.
- `marketplace` values: `csfloat`, `youpin`, `skinport`.

## Response `200`

ZIP archive containing `sales.csv`, `stickers.csv` and `keychains.csv`
(each with a header row). Row counts are also exposed via response headers.

## Other responses

- `401`: Missing, invalid, disabled or expired API key.
- `403`: The API key is valid but is not allowed to call this endpoint (endpoint ACL).
- `429`: Rate limit exceeded (10 requests per second per key). Retry after 1 second.
- `500`: Internal server error – temporary upstream failure, etc.

---

[API](https://skmtc.dev/cspriceapi/apis/cs-price-api.md) · [All operations](https://skmtc.dev/cspriceapi/apis/cs-price-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cspriceapi/apis/cs-price-api/revisions/4a18a7641dad?raw)
