Example Substance Data API queries

To help get you started, we have provided some API query examples below. Use the Run query button to call the API and get back results. You can experiment by editing the example queries in the black text box.

Example query

One Substance Data record

This query searches for all records and asks for a single one.

  1. search for all records and display one.

  2. limit to 1 record.

Example query

Substance Data Record by Name

This query searches for records with the specific name "PARACETAMOL", and returns one result.

  1. search for a specific name.

  2. limit to 1 record.

Example query

Substance Data Record by Named Code

This query searches for records with the specific CAS Registry Number "220127-57-1".

  1. search for records by Named Codes.

Example query

Substance Data Record by UNII

This query searches for records with the specific UNII "09211A0HHL".

  1. search for records by UNII.

Example query

Substance Data Record by Molecular Formula

This query searches for records with the specific molecular formula "C6H12", and returns one result.

  1. search for a specific molecular formula.

  2. limit to 1 record.