GET /getData/track
ucsc.edu:ucsc-genome-browser-api
Summary: Get track data
Operation ID: getTrackData
Auth: unknown
Operation ID: getTrackData
Auth: unknown
Description
Returns annotation data from a specific track for a genomic region or entire genome. Supports filtering by chromosome and coordinate range.
Parameters (8)
chrom
(string, query, optional)
Chromosome name (e.g., chr1). Optional - omit for genome-wide data.
end
(integer, query, optional)
End position (1-relative, required with start)
genome
(string, query, optional)
Genome assembly ID (e.g., hg38). Required unless hubUrl is provided.
hubUrl
(string, query, optional)
URL of the track hub (requires genome parameter)
jsonOutputArrays
(string, query, optional)
Output format option for array data
maxItemsOutput
(integer, query, optional)
Maximum number of items to return
start
(integer, query, optional)
Start position (0-relative, required with end)
track
(string, query, required)
Track name (e.g., knownGene, refGene)
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Get knownGene track for chr1 region on hg38 | curl |
https://api.genome.ucsc.edu/getData/track?genome=hg38&track=knownGene&chrom=chr1&start=1000000&end=2000000 |
|
| Get track data with array output format and item limit | curl |
https://api.genome.ucsc.edu/getData/track?genome=mm10&track=refGene&chrom=chr1&start=500000&end=1500000&jsonOutputArrays=1&maxItemsOutput=100 |
|
| Get track from custom hub with mitochondrial chromosome | curl |
https://api.genome.ucsc.edu/getData/track?genome=hg19&track=wgEncodeGencodeBasicV19&chrom=chrM&start=1&end=16569&hubUrl=https://hgdownload.soe.ucsc.edu/hubs/GCA/000/001/405/GCA_000001405.15/hub.txt |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:35:05.480018 | 200 | 1005ms | |
| 2026-03-23 10:18:14.485982 | 200 | 582ms | 0.7MB |
| 2026-03-23 09:40:59.338531 | 400 | 990ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 10:18:14.485982 | adb3d4d9566f |
348196919d3f |
| 2026-03-23 10:35:05.480018 | 348196919d3f |
2b655feac595 |