/v1/study
A GWAS study: trait, samples, publication
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/gwas-api/v1/study" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gwas-api/v1/study", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gwas-api/v1/study");
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/gwas-api/v1/study",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"study": {
"url": "https://www.ebi.ac.uk/gwas/studies/GCST000028",
"trait": "Type 2 diabetes",
"accession": "GCST000028",
"snp_count": 386731,
"ancestries": [
"European"
],
"publication": {
"date": "2007-04-26",
"title": "Genome-wide association analysis identifies loci for type 2 diabetes and triglyceride levels.",
"author": "Saxena R",
"journal": "Science",
"pubmed_id": "17463246"
},
"full_pvalue_set": true,
"initial_sample_size": "1,464 European ancestry cases, 1,467 European ancestry controls",
"genotyping_technologies": [
"Genome-wide genotyping array"
],
"replication_sample_size": "5,065 European ancestry cases, 5,785 European ancestry controls, at least 18,129 cases and controls."
}
},
"meta": {
"timestamp": "2026-06-01T16:23:13.752Z",
"request_id": "9a0ecd20-1d05-4076-b770-35f2f03edcaf"
},
"status": "ok",
"message": "Study retrieved",
"success": true
}