/v1/score
A polygenic score's metadata
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/pgs-api/v1/score" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pgs-api/v1/score", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pgs-api/v1/score");
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/pgs-api/v1/score",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"score": {
"id": "PGS000001",
"url": "https://www.pgscatalog.org/score/PGS000001/",
"name": "PRS77_BC",
"method": "SNPs passing genome-wide significance",
"traits": [
{
"id": "MONDO_0004989",
"label": "breast carcinoma"
}
],
"license": "PGS obtained from the Catalog should be cited appropriately, and used in accordance with any licensing restrictions set by the authors. See EBI Terms of Use (https://www.ebi.ac.uk/about/terms-of-use/)",
"ancestry": {
"eval": {
"NR": 20,
"EUR": 80
},
"gwas": {
"EUR": 100
}
},
"publication": {
"id": "PGP000001",
"date": "2015-04-08",
"pmid": 25855707,
"title": "Prediction of breast cancer risk based on profiling with common genetic variants.",
"journal": "J Natl Cancer Inst"
},
"weight_type": null,
"date_release": "2019-10-14",
"genome_build": "NR",
"scoring_file": "https://ftp.ebi.ac.uk/pub/databases/spot/pgs/scores/PGS000001/ScoringFiles/PGS000001.txt.gz",
"trait_reported": "Breast cancer",
"variants_number": 77,
"variants_interactions": 0
}
},
"meta": {
"timestamp": "2026-06-01T16:22:54.675Z",
"request_id": "ad09c155-5ce8-40a2-98c8-99b2c819cc02"
},
"status": "ok",
"message": "Score retrieved",
"success": true
}