Example: Finding the ChemSpider ID for Benzene

If you have used our ChemSpider APIs before then you will know that the ChemSpider ID for Benzene is 236...

We have provided a simple example that demonstrates how you can use the various API methods to retrieve this value.

 

Copy your Consumer Key from the My Keys page

Benzene name request

 

Use filter-name-post to search for "Benzene"

(You will need to paste your consumer key in the API Key field too)

Benzene name request

Benzene name request

 
Get the QueryId from the response (copy this to your clipboard)

Benzene queryId response

 
Paste the QueryId in the filter-queryId-results-get to retrieve the ChemSpiderID

Benzene queryId response

 
Check the response for the ChemSpiderID for Benzene

Benzene queryId response

 

Next steps