Drugs
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/drugsimport requests
url = "https://catalog-api-dev.demo.igvf.org/api/drugs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://catalog-api-dev.demo.igvf.org/api/drugs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"_id": "<string>",
"name": "<string>",
"source": "<string>",
"source_url": "<string>",
"drug_ontology_terms": [
"<string>"
]
}
]{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}API Reference
Drugs
Retrieve drugs (chemicals).
Example: drug_id = PA448497 (chemical ids from pharmGKB),
name = aspirin.
The limit parameter controls the page size and can not exceed 1000.
Pagination is 0-based.
Drugs
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/drugsimport requests
url = "https://catalog-api-dev.demo.igvf.org/api/drugs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://catalog-api-dev.demo.igvf.org/api/drugs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"_id": "<string>",
"name": "<string>",
"source": "<string>",
"source_url": "<string>",
"drug_ontology_terms": [
"<string>"
]
}
]{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}