Chemical Hazard Statements API
GHS hazard classifications from PubChem for each chemical name, CAS number or CID you give: one row per compound and source (EU CLP list, ECHA notifications, Japan NITE, Safe Work Australia and more) with signal word, pictograms, H codes and statements, P codes and notes.
$2 per 1,000 records
You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from pubchem.ncbi.nlm.nih.gov/docs/pug-view
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/pubchem-ghs-hazards/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"compounds":["2519","benzene","64-17-5"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
16 fields: 14 here, 2 technical ones under Technical details.
Basics
- Compound
PubChem's name for the compound, such as Caffeine.
Example Caffeine
- Source
Who made this classification, such as European Chemicals Agency (ECHA) or NITE-CMC.
Example Regulation (EC) No 1272/2008 of the European Parliament and of the Council
- Source entry
The source's name for its entry, often with an EC number or the year of the classification.
Example caffeine
- Source rank
Order in which PubChem lists this classification for the compound; 1 is the one it shows first.
Example 1
- Classified
Yes when the source gives at least one hazard code; false when it reports the substance as not classified.
Example Yes
- Signal word
Danger or Warning, as the source gives it.
Example Warning
- Pictograms
Hazard pictogram names, such as Flammable, Irritant or Health Hazard.
Example Irritant
- Pictogram codes
GHS pictogram codes, such as GHS02 or GHS07.
Example GHS07
- Hazard codes
Hazard statement codes, such as H225, H302 or EUH066; combined codes as H300+H310.
Example H302
- Hazard statements
Hazard statements in full, such as H302: Harmful if swallowed [Warning Acute toxicity, oral].
Example H302: Harmful if swallowed [Warning Acute toxicity, oral]
- Precautionary codes
Precautionary statement codes, such as P264 or P301+P317.
Example P264, P270
- Notes
The source's notes, such as how many company reports found no hazard.
Example This chemical does not meet GHS hazard criteria for 0.3% (1 of 315) of reports., Aggregated GHS information provided per 315 reports by companies from 23 notifications to the ECHA C&L Inventory. Each…
Links
- Link
The compound's GHS section on PubChem.
- Source link
Link to the entry at the source.
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- Search words
queryThe name, CAS number, CID or InChIKey as you gave it. - Cid
cidPubChem compound id (CID), such as 2519.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
query | text | Search words (hidden) | 3 of 3 |
cid | text | Cid (hidden) | 3 of 3 |
compound | text | Compound | 3 of 3 |
url | link | Link | 3 of 3 |
source | text | Source | 3 of 3 |
source_entry | text | Source entry | 3 of 3 |
source_url | link | Source link | 3 of 3 |
source_rank | number | Source rank | 3 of 3 |
is_classified | yes or no | Classified | 3 of 3 |
signal_word | text | Signal word | 3 of 3 |
pictograms | list | Pictograms | 3 of 3 |
pictogram_codes | list | Pictogram codes | 3 of 3 |
hazard_codes | list | Hazard codes | 3 of 3 |
hazard_statements | list | Hazard statements | 3 of 3 |
precautionary_codes | list | Precautionary codes | 3 of 3 |
notes | list | Notes | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Compound | Source | Source entry | Source rank | Classified | Signal word | Pictograms | Pictogram codes | Hazard codes | Hazard statements | Precautionary codes | Notes | Link | Source link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Caffeine | Regulation (EC) No 1272/2008 of the European Parliament and of the Council | caffeine | 1 | Yes | Warning | Irritant | GHS07 | H302 | H302: Harmful if swallowed [Warning Acute toxicity, oral] | P264, P270, P301+P317, P330 | — | pubchem.ncbi.nlm.nih.gov/compound/2519 | eur-lex.europa.eu/eli/reg/2008/1272/oj |
| 2 | Benzene | Regulation (EC) No 1272/2008 of the European Parliament and of the Council | benzene | 1 | Yes | Danger | Flammable, Irritant, Health Hazard | GHS02, GHS07, GHS08 | H225, H304, H315, H319 | H225: Highly Flammable liquid and vapor [Danger Flammable liquids], H304: May be fatal if swallowed and enters airways [Danger Aspiration hazard], H315: Causes skin irritation [Warning Skin corrosion/irritation], H319: Causes serious eye irritation [Warning Serious eye damage/eye irritation] | P203, P210, P233, P240 | — | pubchem.ncbi.nlm.nih.gov/compound/241 | eur-lex.europa.eu/eli/reg/2008/1272/oj |
| 3 | Aspirin | European Chemicals Agency (ECHA) | O-acetylsalicylic acid (EC: 200-064-1) | 1 | Yes | Warning | Irritant | GHS07 | H302, H315, H319, H335 | H302 (95.6%): Harmful if swallowed [Warning Acute toxicity, oral], H315 (20.6%): Causes skin irritation [Warning Skin corrosion/irritation], H319 (22.2%): Causes serious eye irritation [Warning Serious eye damage/eye irritation], H335 (20%): May cause respiratory irritation [Warning Specific target organ toxicity, single exposure; Respiratory tract irritation] | P261, P264, P264+P265, P270 | This chemical does not meet GHS hazard criteria for 0.3% (1 of 315) of reports., Aggregated GHS information provided per 315 reports by companies from 23 notifications to the ECHA C&L Inventory. Each notification may be associated with multiple companies., Reported as not meeting GHS hazard criteria per 1 of 315 reports by companies., There are 22 notifications provided by 314 of 315 reports by companies with hazard statement code(s). | pubchem.ncbi.nlm.nih.gov/compound/2244 | chem.echa.europa.eu/substance-search?searchText=200-064-1 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- PubChem (U.S. National Library of Medicine) gathers these classifications from the sources named in each row, which own them: credit the source with the data. For information only; they do not replace a supplier's safety data sheet. NLM does not endorse this API.
- A compound often has several classifications that disagree (the EU harmonised list, company notifications to ECHA, national lists). source_rank 1 is the one PubChem shows first; primary_only keeps just that row per compound.
- ECHA rows sum up company notifications: each statement carries the share of notifiers in brackets, and PubChem lists only codes above 10%.
- precautionary_codes holds P codes only, as PubChem gives no wording for them per source. hazard_statements keep PubChem's wording, marks such as ** from the EU list included.
- A compound PubChem knows but holds no GHS data for comes back as one row with an empty source and a note saying so. A name or CAS number PubChem cannot match returns no row: compare query with your list.
- Up to 1,000 compounds per run. PubChem allows at most five requests a second, so requests go one at a time and long lists take a while: each compound takes two requests, and CIDs given as numbers are checked 100 at a time.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.