---
title: "Download gene mutations as CSV"
method: GET
path: "/gene_mutations_csv"
tags: ["Exports"]
---

# Download gene mutations as CSV

`GET /gene_mutations_csv`

## Request

- Base URL: `https://canelib.erc.monash.edu/api`
- URL: `https://canelib.erc.monash.edu/api/gene_mutations_csv`
- Auth: none declared

Download all mutations for a gene across all samples as a CSV file. Includes sample name, primary site, and all mutation annotation fields.

## Query parameters

- `gene` string, required
- `cancer_type` string

## Response `200`

CSV file with gene mutation data across all samples.

## Other responses

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

---

[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)
