> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/gwas.md).

# Search GWAS associations in Duaer

In Duaer, search GWAS Catalog top associations via REST API v2 with Duaer Data. One successful search uses 1 credit. This page includes the full English call skill.
## What you get

GWAS in the Duaer data market returns GWAS Catalog top associations (variant, gene, trait, p-value). One successful search uses 1 credit.

Add the node from the [Duaer Data category](/getting-started/duaer-data.md) (GWAS), or copy the skill on the [data market](/getting-started/data-market.md). Related: [Variants](/getting-started/variants.md).

## Search on the canvas

1. Open the node creator, select Duaer Data, then GWAS.
2. Enter Words (a new node starts with TCF7L2), or Gene / Rs id / Trait.
3. Limit defaults to 10, max 20. Select Execute step.

A successful search uses 1 credit. Production deliverables land in the [data pool](/getting-started/data-pool.md).

## Call the API

- GET https://api.duaer.com/v1/data/gwas?...
- Authorization: Bearer <Duaer key>
- words, gene, rsId, or trait is required.

For keys, refer to [Authentication for the Duaer public API](/api/authentication.md). Below is the same English call skill as Copy skill.

## Call skill

Same text as Copy skill on the Duaer data market. Keep it English.

```
---
name: duaer-gwas
description: >-
  Search GWAS Catalog associations through Duaer (REST API v2).
  One successful search uses 1 Duaer credit.
---

# Duaer GWAS

Search GWAS Catalog top associations through Duaer with a Duaer key.

## Call

`GET https://api.duaer.com/v1/data/gwas?words=TCF7L2&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Provide `words`, `gene`, `rsId`, or `trait` (or combine).

- `words` — gene symbol or rs id (`rs…`).
- `gene` — optional. Mapped gene symbol.
- `rsId` — optional. Variant rs id (`rs7903146`).
- `trait` — optional. EFO trait text.
- `limit` — optional. From 1 to 20. Default 10.

## Result

Each item has `source`, `title`, `url`, `summary`, `associationId`, `rsId`, `mappedGenes`, `efoTraits`, `reportedTrait`, `pValue`, `beta`, `accessionId`, `pubmedId`, and `locations`.
Related variants: https://skills.duaer.com/variants.md.
Related genes: https://skills.duaer.com/genes.md.

## Credits

One successful search uses 1 credit.
An empty search, a failed search, a compound that matches nothing, or no remaining credits uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

```
## Questions

### How do Duaer GWAS differ from Variants?

GWAS returns literature-curated trait associations. Variants query MyVariant annotation records.

## Related

- [Search variants in Duaer](https://doc.duaer.com/getting-started/variants.md)
- [Search genes in Duaer](https://doc.duaer.com/getting-started/genes.md)
- [Search diseases in Duaer](https://doc.duaer.com/getting-started/diseases.md)
- [Use the Duaer data market](https://doc.duaer.com/getting-started/data-market.md)

