---
title: "Stream all mutations as gzipped CSV"
method: GET
path: "/export/stream/mutations.csv.gz"
tags: ["Bulk Export"]
---

# Stream all mutations as gzipped CSV

`GET /export/stream/mutations.csv.gz`

## Request

- Base URL: `https://canelib.erc.monash.edu/api`
- URL: `https://canelib.erc.monash.edu/api/export/stream/mutations.csv.gz`
- Auth: none declared

Streaming gzip-compressed CSV export. No row limit — the entire filtered result set is streamed in constant memory via a server-side cursor. At most 2 concurrent streaming exports allowed (returns 503 if busy). Use /api/export/count to preview size first. Save directly: curl -o mutations.csv.gz 'https://canelib.erc.monash.edu/api/export/stream/mutations.csv.gz?gene=BRAF'

## Query parameters

- `gene` string
- `tissue` string
- `cancer_type` string
- `cell_line` string
- `project` 'CL' | 'TS'
- `limit` integer

## Response `200`

Gzip-compressed CSV stream. Content-Type: application/gzip.

## Other responses

- `400`: No filter, or query too broad.
- `429`: Rate limit exceeded. You are sending too many requests. Limits: 5 requests/second, 120 requests/minute, 300 requests/10 minutes. Exceeding the 10-minute threshold blocks your IP for the remainder of that window.
- `503`: Server busy: 2 streaming exports already running.

---

[API](https://skmtc.dev/monash/apis/can-immune-api.md) · [All operations](https://skmtc.dev/monash/apis/can-immune-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monash/apis/can-immune-api/revisions/df771ff27e97?raw)
