> 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/drug-gene.md).

# Search drug–gene interactions in Duaer

In Duaer, search drug–gene interactions via DGIdb with Duaer Data. One successful search uses 1 credit. This page includes the full English call skill.
## What you get

Drug–gene in the Duaer data market returns DGIdb interactions (gene, drug, type, score). One successful search uses 1 credit.

Add the node from the [Duaer Data category](/getting-started/duaer-data.md) (Drug–gene), or copy the skill on the [data market](/getting-started/data-market.md). Related: [Genes](/getting-started/genes.md) and [Compounds](/getting-started/compounds.md).

## Search on the canvas

1. Open the node creator, select Duaer Data, then Drug–gene.
2. Enter Gene (a new node starts with EGFR) or Drug (such as imatinib); both may be set.
3. Approved is optional (yes/no). Limit defaults to 10, max 20; results prefer higher interaction score. 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/drug-gene?...
- Authorization: Bearer <Duaer key>
- gene or drug 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-drug-gene
description: >-
  Search drug–gene interactions through Duaer via DGIdb.
  One successful search uses 1 Duaer credit.
---

# Duaer drug–gene

Search drug–gene interactions through Duaer with a Duaer key (DGIdb).

## Call

`GET https://api.duaer.com/v1/data/drug-gene?gene=EGFR&approved=yes&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Provide `gene` or `drug` (or both).

- `gene` — gene symbol (e.g. `EGFR`).
- `drug` — drug name (e.g. `imatinib`).
- `approved` — optional. `yes` or `no` to keep only approved or unapproved drugs.
- `limit` — optional. From 1 to 20. Default 10. Results prefer higher interaction score.

## Result

Each item has `source`, `title`, `url`, `summary`, `gene`, `geneConceptId`, `drug`, `drugConceptId`, `approved`, `interactionTypes`, `interactionScore`, and `sources`.
Related genes: https://skills.duaer.com/genes.md.
Related compounds: https://skills.duaer.com/compounds.md.
Related targets: https://skills.duaer.com/targets.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

### Must I set both Gene and Drug in Duaer Drug–gene?

Provide at least one. Gene alone lists drugs for that gene; Drug alone lists genes for that drug.

## Related

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

