Connectivity Search
Last updated
Was this helpful?
Was this helpful?
curl --request POST \
--url https://www.ebi.ac.uk/unichem/api/v1/connectivity \
--header 'Content-Type: application/json' \
--data '{
"type": "inchi",
"compound": "InChI=1S/C7H8N4O2.C2H7NO/c1-10-5-4(8-3-9-5)6(12)11(2)7(10)13;3-1-2-4/h3H,1-2H3,(H,8,9);4H,1-3H2",
"searchComponents": true
}'import requests
url = "https://www.ebi.ac.uk/unichem/api/v1/connectivity"
payload = {
"type": "inchi",
"compound": "InChI=1S/C7H8N4O2.C2H7NO/c1-10-5-4(8-3-9-5)6(12)11(2)7(10)13;3-1-2-4/h3H,1-2H3,(H,8,9);4H,1-3H2",
"searchComponents": True
}
headers = {"Content-Type": "application/json"}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)