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.

Try it
Ready-made, maintained by usRecords, 16 fieldsv1.0

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

Compounds
Chemicals to look up, one per item: names (benzene), CAS numbers (71-43-2), PubChem CIDs (241) or InChIKeys. Up to 1,000 per run. One per line, or separated by commas.
Example: 2519, benzene, 64-17-5
Primary onlyoptional
Only the classification PubChem shows first for each compound (the EU harmonised one when there is one), so one row per compound.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/pubchem-ghs-hazards/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
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.

compoundslistrequired
Chemicals to look up, one per item: names (benzene), CAS numbers (71-43-2), PubChem CIDs (241) or InChIKeys. Up to 1,000 per run.
example: 2519, benzene, 64-17-5
primary_onlyyes/no
Only the classification PubChem shows first for each compound (the EU harmonised one when there is one), so one row per compound.
default: falseexample: true

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…

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 nameTypeShown on this page asFilled
querytextSearch words (hidden)3 of 3
cidtextCid (hidden)3 of 3
compoundtextCompound3 of 3
urllinkLink3 of 3
sourcetextSource3 of 3
source_entrytextSource entry3 of 3
source_urllinkSource link3 of 3
source_ranknumberSource rank3 of 3
is_classifiedyes or noClassified3 of 3
signal_wordtextSignal word3 of 3
pictogramslistPictograms3 of 3
pictogram_codeslistPictogram codes3 of 3
hazard_codeslistHazard codes3 of 3
hazard_statementslistHazard statements3 of 3
precautionary_codeslistPrecautionary codes3 of 3
noteslistNotes1 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordCompoundSourceSource entrySource rankClassifiedSignal wordPictogramsPictogram codesHazard codesHazard statementsPrecautionary codesNotesLinkSource link
1CaffeineRegulation (EC) No 1272/2008 of the European Parliament and of the Councilcaffeine1YesWarningIrritantGHS07H302H302: Harmful if swallowed [Warning Acute toxicity, oral]P264, P270, P301+P317, P330—pubchem.ncbi.nlm.nih.gov/compound/2519eur-lex.europa.eu/eli/reg/2008/1272/oj
2BenzeneRegulation (EC) No 1272/2008 of the European Parliament and of the Councilbenzene1YesDangerFlammable, Irritant, Health HazardGHS02, GHS07, GHS08H225, H304, H315, H319H225: 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/241eur-lex.europa.eu/eli/reg/2008/1272/oj
3AspirinEuropean Chemicals Agency (ECHA)O-acetylsalicylic acid (EC: 200-064-1)1YesWarningIrritantGHS07H302, H315, H319, H335H302 (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, P270This 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/2244chem.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.
Known limits
  • 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.