Duaer

Get started

List mass candidates in Duaer

In Duaer, list PubChem compounds that fit an observed m/z and adduct. One successful search uses 1 credit.

What you get

Mass candidates in Duaer data uses 1 credit per successful search, including a search with no match.

Each candidate has a ppm error and InChIKey; mass alone does not identify a structure.

To work an unknown feature step by step, see Annotate an unknown feature with Duaer.

Search on the canvas

  1. Open the node creator, pick Duaer Data → Mass candidates.
  2. Fill m/z.
  3. Pick Adduct (default [M+H]+); optional Tolerance (ppm), default 5.
  4. Limit defaults to 10, max 20. Execute.

A successful search uses 1 credit. Empty input or a failed source uses 0.

Call the API

  • GET https://api.duaer.com/v1/data/mass-candidates?...
  • Authorization: Bearer <Duaer key>

The call skill is below.

Call skill

The skill for calling this data.

---
name: duaer-mass-candidates
description: >-
  Duaer mass candidates. List PubChem compounds that fit an observed m/z and adduct.
  One successful search uses 1 Duaer credit.
---

# Duaer mass candidates

List PubChem compounds that fit an observed m/z and adduct. Data comes from PubChem.

## When to use

- List PubChem compounds that fit an observed m/z and adduct.
- Shortlist candidates for an unannotated feature.

## When not to use

- Spectrum matching. Use https://skills.duaer.com/massbank.md.

## Call

`GET https://api.duaer.com/v1/data/mass-candidates?mz=181.0707&adduct=%5BM%2BH%5D%2B&ppm=5&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

- `mz` — observed m/z of the feature.
- `adduct` — Optional. `neutral`, `[M+H]+`, `[M+Na]+`, `[M+NH4]+`, `[M+K]+`, `[M+H-H2O]+`, `[M-H]-`, `[M+Cl]-`, or `[M+FA-H]-`. Default `[M+H]+`.
- `ppm` — Optional. Mass tolerance in ppm, up to 100. Default 5.
- `limit` — Optional. From 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/mass-candidates?mz=181.0707&adduct=%5BM%2BH%5D%2B&ppm=5&limit=10` — candidates for m/z 181.0707 as [M+H]+.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, `summary`, `cid`, `formula`, `monoisotopicMass`, `neutralMass`, `ppmError`, `inchikey`, and `iupacName`.

`mz` is required.
Candidates come in PubChem relevance order. Check a candidate's reference spectra with https://skills.duaer.com/mona.md or https://skills.duaer.com/massbank.md (`inchikey`).
To work an unannotated feature step by step, follow https://skills.duaer.com/metabolic-dark-matter.md.

Fields without a value are empty strings or left out.

## Credits

A successful search uses 1 credit, even when it finds nothing.
Wrong input or a missing search field returns 400 with a message and uses 0.
A failed upstream search returns 503 and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/metabolic-dark-matter.md — Duaer: annotate an unknown feature (metabolic dark matter)
- https://skills.duaer.com/mona.md — Duaer MoNA spectra
- https://skills.duaer.com/massbank.md — Duaer MassBank spectra
- https://skills.duaer.com/compounds.md — Duaer compounds

Questions

How many credits does a Mass candidates search use in Duaer?

One successful search uses 1 credit, including a search with no match. Empty input or a failed source uses 0.

In this section