GET /sequence/region/{species}/{region}

ensembl.org:ensembl-rest-api

Summary: Get genomic sequence
Operation ID: getSequenceByRegion
Auth: none

Fetch a specific slice of genomic sequence by chromosome coordinates. Returns the DNA sequence for any region you specify (e.g., '13:32315086-32400268' for BRCA2). Unlike the ID-based sequence endpoint, this lets you get arbitrary regions including intergenic areas, promoters, or custom windows around genes. Essential for sequence analysis when you know coordinates but not IDs.

Original spec description

Retrieve genomic sequence for a specific region.

Usage Tips

- Region format is `chromosome:start-end` (1-based, inclusive coordinates) - Maximum region size is enforced - very large regions may be rejected - Use `?mask=soft` to get soft-masked repeats (lowercase) or `?mask=hard` for hard-masked (N's) - Strand is always returned as 1 (forward) - you need to reverse-complement yourself if you want the reverse strand

Parameters (2)

region (string, path, required)

Genomic region (e.g., X:1000000..1000100)

species (string, path, required)

Species name

Examples (1)

TitleTypeURLAction
Get genomic sequence for BRCA2 region probe-gate https://rest.ensembl.org/sequence/region/homo_sapiens/13:32315086-32400268:1?content-type=application/json

No probe data for this endpoint yet.