# GET /v1/market-sales/export

Sales export (last 24h)

- Interactive docs: [https://cspriceapi.com/docs/api/market-sales-export](https://cspriceapi.com/docs/api/market-sales-export)
- OpenAPI YAML: [https://cspriceapi.com/openapi.yaml](https://cspriceapi.com/openapi.yaml)
- Data coverage: [https://cspriceapi.com/docs/data-coverage](https://cspriceapi.com/docs/data-coverage)

### GET /v1/market-sales/export

ZIP export of the last 24 hours (Enterprise)

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`.


```bash
curl -s "https://api.cspriceapi.com/v1/market-sales/export" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

---

Full request/response schemas: import [openapi.yaml](https://cspriceapi.com/openapi.yaml) or use the Scalar UI on the HTML page.
