{"openapi":"3.1.0","info":{"title":"GWAS Catalog API","version":"1.0.0","description":"Human genetic trait associations as an API — powered by the NHGRI-EBI GWAS Catalog, the curated reference of published genome-wide association studies. It answers the core question of statistical genetics: which genetic variants (SNPs) are associated with which traits and diseases, and how strongly. Look up a SNP to get its functional class, genomic location and mapped genes; pull every trait association reported for it — the trait, p-value, effect size (odds ratio or beta), risk allele and frequency, and author-reported genes; and read the study behind the evidence — trait, sample sizes, ancestries, genotyping technology and the publication (PubMed id, authors, journal, date). From type 2 diabetes and Crohn disease to systemic lupus erythematosus and hundreds of thousands of associations, it is ideal for genomics, bioinformatics, statistical-genetics and biomedical research tools. A published genetic-association evidence base — distinct from population allele frequencies (gnomAD), clinical variant interpretation (ClinVar) and genome annotation (Ensembl). Open data from the NHGRI-EBI GWAS Catalog (EMBL-EBI).","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/gwas-api","description":"oanor gateway"}],"tags":[{"name":"GWAS"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/associations":{"get":{"operationId":"get_v1_associations","tags":["GWAS"],"summary":"Trait associations reported for a SNP","description":"","parameters":[{"name":"id","in":"query","required":false,"description":"A SNP rsID","schema":{"type":"string"},"example":"rs7329174"},{"name":"limit","in":"query","required":false,"description":"Max results (1-100, default 25)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":6,"rs_id":"rs7329174","total":6,"associations":[{"traits":["systemic lupus erythematosus"],"p_value":1.0e-8,"odds_ratio":1.26,"risk_alleles":["rs7329174-G"],"reported_genes":["ELF1"],"risk_frequency":"0.22"},{"traits":["Crohn disease"],"p_value":8.0e-9,"odds_ratio":1.27,"risk_alleles":["rs7329174-G"],"reported_genes":["WBP4","ELF1","microRNA2276","SLC25A15"]},{"traits":["systemic lupus erythematosus"],"p_value":6.0e-6,"odds_ratio":1.45,"risk_alleles":["rs7329174-G"],"reported_genes":["ELF1"],"risk_frequency":"0.21"},{"traits":["systemic lupus erythematosus"],"p_value":3.0e-6,"risk_alleles":["rs7329174-G"],"reported_genes":[]},{"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,"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"},"status":"ok","message":"Associations retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/snp":{"get":{"operationId":"get_v1_snp","tags":["GWAS"],"summary":"A SNP: function, location, mapped genes","description":"","parameters":[{"name":"id","in":"query","required":false,"description":"A SNP rsID","schema":{"type":"string"},"example":"rs7329174"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"snp":{"url":"https://www.ebi.ac.uk/gwas/variants/rs7329174","rs_id":"rs7329174","merged":0,"locations":[{"region":"13q14.11","position":40983974,"chromosome":"13"}],"last_update":"2025-10-05","mapped_genes":["ELF1","SUGT1P3","RGS17P1","WBP4","TRE-TTC1-2","TPTE2P5"],"functional_class":"intron_variant","association_count":6}},"meta":{"timestamp":"2026-06-01T16:23:13.593Z","request_id":"939f2814-e5c5-41cd-b827-b8599d1518c5"},"status":"ok","message":"SNP retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/study":{"get":{"operationId":"get_v1_study","tags":["GWAS"],"summary":"A GWAS study: trait, samples, publication","description":"","parameters":[{"name":"id","in":"query","required":false,"description":"A GWAS study accession (from /v1/associations)","schema":{"type":"string"},"example":"GCST000028"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Endpoint catalogue & notes","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"The GWAS Catalog is the NHGRI-EBI curated collection of published human genome-wide association studies — which genetic variants are statistically associated with which traits and diseases. /v1/snp?id=rs7329174 = a SNP's annotation: functional class, genomic location(s) (chromosome, position), mapped genes and how many associations reference it; /v1/associations?id=rs7329174 = every trait association reported for that SNP — the trait(s), p-value, effect size (odds ratio or beta), risk allele and frequency and author-reported genes; /v1/study?id=GCST000028 = a study's metadata: trait, sample sizes, SNP count, ancestries, genotyping technologies and the publication (PubMed id, author, title, journal, date). rsIDs look like rs7329174; study accessions like GCST000028 (get one from /v1/associations). Data from the NHGRI-EBI GWAS Catalog (EMBL-EBI, public). A published genetic-association evidence base — distinct from population allele frequencies (gnomAD), clinical variant interpretation (ClinVar) and genome annotation (Ensembl). Ideal for genomics, bioinformatics, statistical-genetics and research tooling.","source":"NHGRI-EBI GWAS Catalog (ebi.ac.uk/gwas)","endpoints":["/v1/snp","/v1/associations","/v1/study","/v1/meta"]},"meta":{"timestamp":"2026-06-01T16:23:13.809Z","request_id":"e21ca895-f312-4e8b-8083-e69dc5521035"},"status":"ok","message":"Meta retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":2400,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":740,"monthly_call_quota":55000,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2350,"monthly_call_quota":260000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6200,"monthly_call_quota":920000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/gwas-api"}