Skip to content
GET /v1/associations

Trait associations reported for a SNP

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/gwas-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/gwas-api/v1/associations" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gwas-api/v1/associations", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gwas-api/v1/associations");
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/associations",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 6,
        "rs_id": "rs7329174",
        "total": 6,
        "associations": [
            {
                "beta": null,
                "traits": [
                    "systemic lupus erythematosus"
                ],
                "p_value": 1.0e-8,
                "odds_ratio": 1.26,
                "risk_alleles": [
                    "rs7329174-G"
                ],
                "reported_genes": [
                    "ELF1"
                ],
                "risk_frequency": "0.22"
            },
            {
                "beta": null,
                "traits": [
                    "Crohn disease"
                ],
                "p_value": 8.0e-9,
                "odds_ratio": 1.27,
                "risk_alleles": [
                    "rs7329174-G"
                ],
                "reported_genes": [
                    "WBP4",
                    "ELF1",
                    "microRNA2276",
                    "SLC25A15"
                ],
                "risk_frequency": null
            },
            {
                "beta": null,
                "traits": [
                    "systemic lupus erythematosus"
                ],
                "p_value": 6.0e-6,
                "odds_ratio": 1.45,
                "risk_alleles": [
                    "rs7329174-G"
                ],
                "reported_genes": [
                    "ELF1"
                ],
                "risk_frequency": "0.21"
            },
            {
                "beta": null,
                "traits": [
                    "systemic lupus erythematosus"
                ],
                "p_value": 3.0e-6,
                "odds_ratio": null,
                "risk_alleles": [
                    "rs7329174-G"
                ],
                "reported_genes": [],
                "risk_frequency": null
            },
            {
                "beta": null,
                "traits": [
                    "systemic lupus erythematosus"
                ],
                "p_value": 3.0e-6,
                "odds_ratio": 1.27,
                "risk_alleles": [
                    "rs7329174-?"
                ],
                "reported_genes": [
                    "ELF1"
                ],
                "risk_frequency": "0.211"
            },
            {
                "beta": {
                    "unit": "unit",
                    "value": 0.0211,
                    "direction": "decrease"
                },
                "traits": [
                    "body height"
                ],
                "p_value": 8.0e-26,
                "odds_ratio": null,
                "risk_alleles": [
                    "rs7329174-G"
                ],
                "reported_genes": [],
                "risk_frequency": "0.0304"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-01T16:23:13.207Z",
        "request_id": "2feafc72-d19b-4adc-bb51-19ec1bf0e9f3"
    },
    "
…