[DOCS]

API
Reference

[BASE]

https://www.chemply.io/api/v1

REST endpoints for substance lookup, regulatory compliance and ongoing monitoring. Plain JSON responses, errors in one envelope, no SDK required.

[AUTH]

Authentication

Every request needs an API key in the X-API-Key header. Create keys in your dashboard; a key is shown once and can be revoked at any time. A request without a key answers 401 MISSING_API_KEY. An unknown, revoked or expired key answers 401 INVALID_API_KEY. The one exception is /lookup: it also backs the free search on the website and works without a key, limited to a few searches per day.

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/lookup?q=formaldehyde"

[CREDITS]

Credits

Each call to a data endpoint costs one credit; a batch call costs five. Your plan sets the monthly allowance, which resets on the first of each month (UTC). Every charged response reports the balance in its headers: X-Credits-Limit, X-Credits-Used, X-Credits-Remaining, X-Credits-Cost and X-Credits-Reset. A served answer is charged, including a 404 for a substance that is not on record. Invalid requests (400) and server errors (5xx) are not charged. When the allowance is used up, calls answer 429 QUOTA_EXCEEDED until the reset. GET /usage and the monitoring endpoints (watchlist, notifications) do not spend credits per call.

bash
HTTP/2 200
x-credits-limit: 50
x-credits-used: 1
x-credits-remaining: 49
x-credits-cost: 1
x-credits-reset: 2026-12-01T00:00:00.000Z

[RATE_LIMITING]

Rate Limiting

Requests are limited per minute: 1,000 with an API key, 100 per IP address without one. Over the limit the API answers 429 RATE_LIMIT_EXCEEDED. Each response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds).

[MCP]

MCP

The same data is available to AI assistants and agents over the Model Context Protocol. The server is at https://www.chemply.io/api/mcp (Streamable HTTP) and takes the same API key, sent as Authorization: Bearer YOUR_KEY. Tools: lookup_substance, search_listings, list_sources, get_usage, and for monitoring list_watchlist, watch_substance, unwatch_substance and get_watchlist_changes. Credits work as for the REST API: lookup_substance and search_listings cost one credit per call, the other tools are free. A missing or invalid key answers 401. In clients that take a JSON configuration, add a server of type http with that URL and the Authorization header.

bash
claude mcp add --transport http chemply https://www.chemply.io/api/mcp \
  --header "Authorization: Bearer YOUR_KEY"

[SUBSTANCES]

Substances

Regulatory lists name substances by CAS number, EC number or name, and many listed substances have no single chemical structure (mixtures, polymers, UVCBs, groups). The API therefore answers about substances first and attaches a structure where one exists. A resolved result carries substance (its identity, for example cas:50-00-0, and a kind: discrete, mixture, polymer, uvcb, group or unknown) and molecule (InChIKey, SMILES, weight), which is null for a substance without a structure. When another substance shares the same structure under its own CAS number, it is listed in related, and its listings appear in compliance marked with via: "same_structure" and listed_as. raw_data in a listing is the row as the source list publishes it; its fields differ per framework.

[LOOKUP]

Substance Lookup

GET/api/v1/lookup

Resolve any identifier to a substance and return every regulatory listing on record. Accepts a name, CAS number, EC number, InChIKey, SMILES or PubChem CID; the type is detected. Names tolerate misspellings. An unambiguous query answers with resolved: true. An ambiguous name answers with resolved: false, a ranked candidates array and best, the key of the closest match; look that candidate up by its InChIKey or CAS number. No match answers 404 NOT_FOUND.

[PARAMETERS]

Name
Type
Description
q
string
Name, CAS, EC number, InChIKey, SMILES or PubChem CID (required)

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/lookup?q=formaldehyde"

[RESPONSE]

json
{
  "resolved": true,
  "match_type": "name",
  "molecule": {
    "id": "107848",
    "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
    "smiles": "C=O",
    "canonical_smiles": null,
    "inchi": null,
    "molecular_weight": 30.03
  },
  "cas_number": "50-00-0",
  "names": ["Formaldehyde", "Methanal", "..."],
  "identifiers": [
    { "source_type": "pubchem_cid", "identifier": "712" }
  ],
  "compliance": [
    {
      "framework_code": "reach_annex_xvii",
      "framework_name": "REACH Restrictions (Annex XVII)",
      "jurisdiction": "EU",
      "status": "restricted",
      "risk_level": "high",
      "raw_data": {
        "source": "ECHA REACH Annex XVII (Restrictions)",
        "entry_no": "77",
        "ec_number": "200-001-8",
        "cas_number": "50-00-0",
        "chemical_name": "Formaldehyde"
      }
    }
  ],
  "substance": {
    "id": 49274,
    "identity": "cas:50-00-0",
    "kind": "discrete",
    "display_name": "Formaldehyde",
    "primary_cas": "50-00-0"
  }
}
GET/api/v1/cas

Look up one substance by CAS number. Same result as /lookup for a CAS query, without the name-matching fields. Works for substances that have no structure in the index; molecule is then null. An unknown CAS answers 404 NOT_FOUND, a malformed one 400 INVALID_CAS.

[PARAMETERS]

Name
Type
Description
cas
string
CAS Registry Number, e.g. 1332-21-4 (required)

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/cas?cas=1332-21-4"

[RESPONSE]

json
{
  "molecule": { "inchikey": "CWBIFDGMOSWLRQ-UHFFFAOYSA-N", "...": "..." },
  "cas_number": "1332-21-4",
  "names": ["Asbestos", "..."],
  "identifiers": [],
  "compliance": [
    {
      "framework_code": "au_swa_ghs",
      "framework_name": "Australia Safe Work GHS Classification (HCIS)",
      "jurisdiction": "Australia",
      "status": "classified",
      "risk_level": "high",
      "raw_data": { "cas_number": "12001-29-5", "signal_word": "Danger" },
      "via": "same_structure",
      "listed_as": "12001-29-5"
    }
  ],
  "substance": {
    "id": 12809,
    "identity": "cas:1332-21-4",
    "kind": "discrete",
    "display_name": "Asbestos",
    "primary_cas": "1332-21-4"
  },
  "related": [
    {
      "relation": "same_structure",
      "identity": "cas:12001-29-5",
      "display_name": "CHRYSOTILE",
      "primary_cas": "12001-29-5",
      "kind": "discrete",
      "listings": 5
    }
  ]
}

[COMPLIANCE]

Compliance

GET/api/v1/compliance/:inchikey

All listings for a structure: those linked to the molecule and those of every substance it stands for (substances). Also returns GHS classifications in ghs_data. An InChIKey the index does not know answers 200 with empty arrays.

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/compliance/WSFSSNUMVMOOMR-UHFFFAOYSA-N"

[RESPONSE]

json
{
  "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
  "substances": [
    {
      "id": 49274,
      "identity": "cas:50-00-0",
      "kind": "discrete",
      "display_name": "Formaldehyde",
      "primary_cas": "50-00-0"
    }
  ],
  "compliance_entries": [
    {
      "framework_code": "reach_annex_xvii",
      "framework_name": "REACH Restrictions (Annex XVII)",
      "framework_jurisdiction": "EU",
      "regulatory_body": "ECHA",
      "jurisdiction": "EU",
      "status": "restricted",
      "risk_level": "high",
      "raw_data": { "entry_no": "77", "chemical_name": "Formaldehyde" },
      "last_updated": "2026-10-21T14:48:17.039Z",
      "substance_id": "49274"
    }
  ],
  "ghs_data": [
    {
      "hazard_class": "Acute Mammalian Toxicity Dermal",
      "hazard_category": "Acute Tox. 3",
      "h_statements": ["H311: Toxic in contact with skin"],
      "pictograms": ["GHS06"],
      "signal_word": "Danger",
      "source_type": "epa_hcd"
    }
  ],
  "total_frameworks": 18
}
GET/api/v1/compliance/search

Search listings across substances. Combine a substance filter (q or cas) with list filters, or use list filters alone to page through a framework. At least one filter is required. A name in q matches the names the lists use and the synonyms of linked structures. total is the number of rows on the current page.

[PARAMETERS]

Name
Type
Description
q
string
Name (contains), CAS, InChIKey or SMILES
cas
string
CAS Registry Number
framework
string
Framework code, e.g. reach_svhc, tsca, prop65
jurisdiction
string
e.g. EU, US, Canada, Australia
risk_level
string
high, medium or low
page
integer
Page number, from 1 (default 1)
pageSize
integer
Rows per page, 1 to 100 (default 20)

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/compliance/search?cas=50-00-0&jurisdiction=EU"

[RESPONSE]

json
{
  "results": [
    {
      "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
      "smiles": "C=O",
      "molecular_weight": 30.03,
      "substance_id": "49274",
      "substance_name": "Formaldehyde",
      "cas_number": "50-00-0",
      "status": "restricted",
      "risk_level": "high",
      "jurisdiction": "EU",
      "raw_data": {
        "source": "ECHA REACH Annex XVII (Restrictions)",
        "entry_no": "77",
        "ec_number": "200-001-8",
        "cas_number": "50-00-0",
        "chemical_name": "Formaldehyde"
      },
      "framework_code": "reach_annex_xvii",
      "framework_name": "REACH Restrictions (Annex XVII)"
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 1
}

[MONITORING]

Monitoring

Put substances on your watchlist and chemply reports when their regulatory status changes: in the change feed below, by email, and as signed webhooks. These endpoints accept your API key and do not spend credits per call; watched substances are billed monthly as shown on the pricing page.

POST/api/v1/watchlist

Watch a substance. Send one of substance_id (from a lookup result), cas or inchikey, and optionally a label. Adding the same substance twice returns the existing watch. A substance without a structure can be watched like any other.

[PARAMETERS]

Name
Type
Description
substance_id
integer
substance.id from a lookup result
cas
string
CAS Registry Number
inchikey
string
InChIKey of the structure
label
string
Your own name for the watch (optional)

[REQUEST]

bash
curl -X POST -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cas": "50-00-0"}' \
  "https://www.chemply.io/api/v1/watchlist"

[RESPONSE]

json
{
  "id": 24,
  "type": "molecule",
  "substance_id": 49274,
  "molecule_id": 107848,
  "cas_number": "50-00-0",
  "label": null
}
GET/api/v1/watchlist

Your watched substances, newest first. type is list-only for a substance without a structure.

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" "https://www.chemply.io/api/v1/watchlist"

[RESPONSE]

json
{
  "items": [
    {
      "id": 24,
      "type": "molecule",
      "substance_id": 49274,
      "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
      "cas_number": "50-00-0",
      "name": "Formaldehyde",
      "smiles": "C=O",
      "molecular_weight": 30.03,
      "added_at": "2026-11-14T23:04:14.850Z"
    }
  ],
  "total": 1
}
DELETE/api/v1/watchlist/:id

Stop watching. id is the watch id from the list.

[REQUEST]

bash
curl -X DELETE -H "X-API-Key: YOUR_KEY" "https://www.chemply.io/api/v1/watchlist/24"

[RESPONSE]

json
{ "id": 24, "removed": true }
POST/api/v1/list-subscriptions

Follow a whole list: every genuine change of it (a substance added, removed or reclassified) is reported by email and webhook like a watched substance. Following a list is free of credits.

[PARAMETERS]

Name
Type
Description
framework_code
string
Code of the list, for example reach_svhc

[REQUEST]

bash
curl -X POST -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"framework_code": "reach_svhc"}' \
  "https://www.chemply.io/api/v1/list-subscriptions"

[RESPONSE]

json
{ "framework_code": "reach_svhc", "following": true }
GET/api/v1/list-subscriptions

The lists you follow.

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" "https://www.chemply.io/api/v1/list-subscriptions"

[RESPONSE]

json
{
  "items": [
    {
      "framework_code": "reach_svhc",
      "framework_name": "REACH SVHC Candidate List",
      "jurisdiction": "EU",
      "created_at": "2026-11-27T22:10:00.000Z"
    }
  ],
  "total": 1
}
DELETE/api/v1/list-subscriptions

Stop following a list.

[PARAMETERS]

Name
Type
Description
framework_code
string
Code of the list (query parameter)

[REQUEST]

bash
curl -X DELETE -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/list-subscriptions?framework_code=reach_svhc"

[RESPONSE]

json
{ "framework_code": "reach_svhc", "following": false }
GET/api/v1/watchlist/changes

Regulatory changes for your watched substances, newest first. A change with status.from: null is a new listing; status.to: null means the substance was removed from the list.

[PARAMETERS]

Name
Type
Description
since
ISO date
Only changes after this time (default: last 30 days)
limit
integer
Max rows, 1 to 500 (default 100)

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/watchlist/changes?since=2026-10-01"

[RESPONSE]

json
{
  "since": "2026-10-01T00:00:00.000Z",
  "count": 1,
  "changes": [
    {
      "watch_id": 24,
      "substance": { "id": 49274, "name": "Formaldehyde", "cas_number": "50-00-0" },
      "molecule": { "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N", "name": "Formaldehyde" },
      "framework": {
        "code": "reach_annex_xvii",
        "name": "REACH Restrictions (Annex XVII)",
        "jurisdiction": "EU"
      },
      "status": { "from": null, "to": "restricted" },
      "risk_level": { "from": null, "to": "high" },
      "changed_at": "2026-10-21T14:48:17.039Z",
      "reason": "reach_annex_xvii"
    }
  ]
}
GET/api/v1/notifications/settings

How you are notified. PATCH the same path with any subset of email_enabled, email_to, on_change_enabled, digest_enabled, webhook_url and webhook_enabled. email_to: null uses your account email. A webhook URL must be https and publicly reachable. webhook_secret signs every webhook request (HMAC-SHA256 over {t}.{rawBody}, sent as X-Chemply-Signature: t=...,v1=...).

[REQUEST]

bash
curl -X PATCH -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"webhook_url": "https://example.com/hooks/chemply", "webhook_enabled": true}' \
  "https://www.chemply.io/api/v1/notifications/settings"

[RESPONSE]

json
{
  "email_enabled": true,
  "email_to": null,
  "on_change_enabled": true,
  "digest_enabled": true,
  "webhook_url": "https://example.com/hooks/chemply",
  "webhook_enabled": true,
  "webhook_secret": "whsec_...",
  "updated_at": "2026-11-14T23:04:15.371Z"
}
POST/api/v1/notifications/test

Queue a test notification on your enabled channels, or on one channel with {"channel": "email"} or {"channel": "webhook"}. Answers 202. A webhook test is a signed test event.

[REQUEST]

bash
curl -X POST -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel": "webhook"}' \
  "https://www.chemply.io/api/v1/notifications/test"

[RESPONSE]

json
{ "queued": ["webhook"] }
POST/api/v1/notifications/webhook/rotate-secret

Issue a new webhook signing secret. The old one stops working at once, so update your receiver first.

[REQUEST]

bash
curl -X POST -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/notifications/webhook/rotate-secret"

[RESPONSE]

json
{ "webhook_secret": "whsec_..." }

[ACCOUNT]

Account

GET/api/v1/usage

Credit balance and consumption per endpoint for the current month, for the account the key belongs to. Does not spend credits.

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" "https://www.chemply.io/api/v1/usage"

[RESPONSE]

json
{
  "tier": "free",
  "credits": {
    "limit": 50,
    "used": 14,
    "remaining": 36,
    "reset_at": "2026-12-01T00:00:00.000Z"
  },
  "by_endpoint": [
    { "endpoint": "/api/v1/lookup", "calls": 9, "credits": 9 },
    { "endpoint": "/api/v1/molecule/batch", "calls": 1, "credits": 5 }
  ]
}

[STRUCTURES]

Structure Index

Direct access to the structure index behind the lookup. Use these when you already work with InChIKeys; for regulatory questions prefer /lookup and /cas, which also cover substances without a structure.

GET/api/v1/molecule/:inchikey

One molecule with its identifiers, names and listings, plus the regulated substances it stands for. Unknown InChIKeys answer 404 NOT_FOUND.

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/molecule/WSFSSNUMVMOOMR-UHFFFAOYSA-N"

[RESPONSE]

json
{
  "molecule": {
    "id": "107848",
    "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
    "smiles": "C=O",
    "molecular_weight": 30.03,
    "source_type": "pubchem",
    "source_id": "712"
  },
  "identifiers": [
    { "source_type": "pubchem_cid", "identifier": "712" }
  ],
  "names": [
    { "name": "Formaldehyde", "source_type": "pubchem_title", "language": "en" }
  ],
  "bioactivities": [],
  "compliance": [
    {
      "framework_code": "reach_annex_xvii",
      "framework_name": "REACH Restrictions (Annex XVII)",
      "jurisdiction": "EU",
      "status": "restricted",
      "risk_level": "high",
      "raw_data": { "entry_no": "77" }
    }
  ],
  "substances": [
    { "id": 49274, "identity": "cas:50-00-0", "display_name": "Formaldehyde" }
  ]
}
GET/api/v1/molecule/search

Search molecules. q detects the identifier type; the other parameters search one field. At least one is required.

[PARAMETERS]

Name
Type
Description
q
string
Name, CAS, InChIKey, SMILES or PubChem CID
name
string
Name (contains)
cas
string
CAS Registry Number
pubchem_cid
integer
PubChem Compound ID
chembl_id
string
ChEMBL ID
page
integer
Page number, from 1 (default 1)
pageSize
integer
Rows per page, 1 to 100 (default 20)

[REQUEST]

bash
curl -H "X-API-Key: YOUR_KEY" \
  "https://www.chemply.io/api/v1/molecule/search?name=aspirin"

[RESPONSE]

json
{
  "results": [
    {
      "id": "108978",
      "inchikey": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
      "smiles": "CC(=O)Oc1ccccc1C(=O)O",
      "molecular_weight": 180.16,
      "source_type": "pubchem",
      "source_id": "2244"
    }
  ],
  "total": 1,
  "page": 1,
  "pageSize": 20
}
POST/api/v1/molecule/batch

Fetch up to 100 molecules by InChIKey in one request. Costs five credits. InChIKeys that are not in the index are left out of results.

[REQUEST]

bash
curl -X POST -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inchikeys": ["WSFSSNUMVMOOMR-UHFFFAOYSA-N", "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"]}' \
  "https://www.chemply.io/api/v1/molecule/batch"

[RESPONSE]

json
{
  "results": [
    {
      "id": "107848",
      "inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
      "smiles": "C=O",
      "molecular_weight": 30.03
    }
  ],
  "total": 1,
  "requested": 2
}

[ERRORS]

Error
Codes

All errors follow a consistent JSON envelope:

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description",
    "status": 400
  }
}
Code
Status
Description
MISSING_PARAMS
400
A required parameter is missing
INVALID_CAS
400
Malformed CAS number or wrong check digit
INVALID_INCHIKEY
400
Malformed InChIKey
INVALID_BODY
400
The request body is not valid JSON
INVALID_FIELD
400
A field in the body has the wrong type or value
TOO_MANY
400
More than 100 InChIKeys in a batch
MISSING_API_KEY
401
No X-API-Key header on an endpoint that requires one
INVALID_API_KEY
401
The key is unknown, revoked or expired
UNAUTHORIZED
401
A monitoring or account endpoint was called without a key or session
NOT_FOUND
404
Nothing on record for this query (charged as a served answer)
QUOTA_EXCEEDED
429
The monthly credit allowance is used up
RATE_LIMIT_EXCEEDED
429
Too many requests per minute
WEB_SEARCH_LIMIT
429
Daily limit of the keyless website search reached
INTERNAL
500
Unexpected server error (not charged)