/v1/sequence
DNA sequence of a region
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/ucsc-api/v1/sequence" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ucsc-api/v1/sequence", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ucsc-api/v1/sequence");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/ucsc-api/v1/sequence",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"dna": "GATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTCTGGGGGGTATGCACGCGATAGCATTGCGAGACGCTG",
"end": 100,
"chrom": "chrM",
"start": 0,
"genome": "hg38",
"length": 100
},
"meta": {
"timestamp": "2026-06-01T16:23:32.297Z",
"request_id": "c39822db-bf19-4916-acab-08924fe8d9d8"
},
"status": "ok",
"message": "Sequence retrieved",
"success": true
}