scientific-skills/database-lookup/references/cosmic.md
https://cancer.sanger.ac.uk/cosmic/api/v1/
Registration required. Free academic account or paid commercial license.
Login to get JWT token:
POST /auth/login
Content-Type: application/json
{"email": "[email protected]", "password": "yourpassword"}
Pass token as: Authorization: Bearer <token>
GET /mutations/search?q={gene_symbol}&page=1&page_size=5
GET /genes/{gene_symbol}
Example: /genes/BRAF
Response includes: gene_symbol, gene_name, chromosome, cancer_census (bool), tier, mutation_count, sample_count
GET /mutations/{cosmic_mutation_id}
Example: /mutations/COSV56056643
Response includes: gene, cds_mutation, aa_mutation, mutation_type, fathmm_prediction, genomic_coordinates, tissue_distribution
GET /cancer-gene-census?tier=1&page_size=10
GET /mutations/distribution/{gene_symbol}
Not officially published. Bulk data requires SFTP download (licensed).