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

# Search compounds in Duaer

In Duaer, search compounds and drugs with Duaer Data. One successful search uses 1 credit; a name that matches nothing uses 0. This page includes the full English call skill.
## What you get

Compounds in the Duaer data market searches compounds and drugs from a public compound source. One successful search uses 1 credit; a name that matches nothing uses 0.

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

## Search on the canvas

1. Open the node creator, select Duaer Data, then Compounds.
2. Send one identifier only: Name, CID, Formula, SMILES, or InChIKey.
3. Limit defaults to 10, max 20 (a name may return several compounds up to this limit). Select Execute step.

A successful search uses 1 credit. Items include cid, formula, weight, smiles, inchiKey, and related fields. Production deliverables land in the [data pool](/getting-started/data-pool.md).

## Call the API

- GET https://api.duaer.com/v1/data/compounds?...
- Authorization: Bearer <Duaer key>
- Send one identifier: name, cid, formula, smiles, or inchikey.

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

## Call skill

Same text as Copy skill on the Duaer data market.

```
---
name: duaer-compounds
description: >-
  Search compounds and drugs through Duaer. One successful search uses 1 Duaer credit.
---

# Duaer compounds

Search compounds and drugs through Duaer with a Duaer key.

## Call

`GET https://api.duaer.com/v1/data/compounds?name=aspirin&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Send one identifier: `name`, `cid`, `formula`, `smiles`, or `inchikey`.

- `limit` — optional. From 1 to 20. Default 10. A name can return several compounds up to this limit.

## Result

Each item has `source`, `title`, `url`, `summary`, `cid`, `formula`, `weight`, `iupacName`, `smiles`, `inchi`, `inchiKey`, `xlogp`, `tpsa`, `hbondDonors`, `hbondAcceptors`, `rotatableBonds`, `complexity`, and `charge`.

## 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

### Can I send both name and CID for compounds?

No. Send one identifier only: name, cid, formula, smiles, or inchikey.

## Related

- [Search proteins in Duaer](https://doc.duaer.com/getting-started/proteins.md)
- [Search clinical trials in Duaer](https://doc.duaer.com/getting-started/trials.md)
- [Search protein structures in Duaer](https://doc.duaer.com/getting-started/structures.md)
- [Search diseases in Duaer](https://doc.duaer.com/getting-started/diseases.md)

