Skip to main content

Elsevier Developer Portal

PharmaPendium API Drugs Indications Module

This represents the interfaces associated with PharmaPendium search and its auxiliary components.

Summary

Resource Method Description
https://api.elsevier.com/pharma/drugsindications/listDataFields GET

listDataFields: This represents a request to list data field names available in this module.
https://api.elsevier.com/pharma/drugsindications/listFacets GET

listFacets: This represents a request to list facets available in this module.
https://api.elsevier.com/pharma/drugsindications/listTaxonomies GET

listTaxonomies: This represents a request to list all taxonomies available in this module.
https://api.elsevier.com/pharma/drugsindications/lookupFuzzy GET

POST

lookupFuzzy: Example: /lookupFuzzy?taxonomy=Drugs&query=aspi*'

lookupFuzzy: Example: { "query": "Aspir*", "taxonomy": "Drugs" }
https://api.elsevier.com/pharma/drugsindications/search GET

POST

search: Example: curl -X GET --header 'Accept: application/json' 'https://api.elsevier.com/pharma/drugsindications/search?limitation.count=10&displayColumns=drug%2Cindication&facets=drugs&leaf=true'

search: Example: { "limitation": { "count": 10, "firstRow": 0 }, "sortColumns": [ { "column": "drug", "isAscending": true } ], "drugs": [ "Aspirin" ], "facets":["drugs"] }
https://api.elsevier.com/pharma/drugsindications/suggest GET

suggest: Example: /suggest?prefix=asp&taxonomy=Drugs'

Resources


https://api.elsevier.com/pharma/drugsindications/listDataFields

Methods
GET listDataFields()

listDataFields: This represents a request to list data field names available in this module.

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.

query params
httpAccept xsd:string
options: application/json
Override for HTTP header Accept, this represents the acceptable mime types in which the response can be generated.
access_token xsd:string Override for HTTP header Authorization, this contains the OAuth bearer access token, where the format of the field is "<token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements.
insttoken xsd:string Override for HTTP header X-ELS-Insttoken, this represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource.
apiKey xsd:string Override for HTTP header X-ELS-APIKey, this represents a unique application developer key providing access to resource.
reqId xsd:string Override for HTTP header X-ELS-ReqId, this is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. Note that this should be a unique identifier for the client, and used to track a single transaction.

responses
status:
200
representations
application/json List data fields JSON Response: Returns a list of all available data fields for this module.
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json

https://api.elsevier.com/pharma/drugsindications/listFacets

Methods
GET listFacets()

listFacets: This represents a request to list facets available in this module.

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.

responses
status:
200
representations
application/json List facets JSON Response: Returns a list of all available facets for this module.
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json

https://api.elsevier.com/pharma/drugsindications/listTaxonomies

Methods
GET listTaxonomies()

listTaxonomies: This represents a request to list all taxonomies available in this module.

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.

responses
status:
200
representations
application/json List taxonomies JSON Response: Returns a list of all available taxonomies for this module. tns:listTaxonomies_Response
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json

https://api.elsevier.com/pharma/drugsindications/lookupFuzzy

Methods
GET lookupFuzzy()

lookupFuzzy: Example: /lookupFuzzy?taxonomy=Drugs&query=aspi*'

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.

query params
taxonomy unspecified type
(required)
default:
options: ActivityTargetsExtended, ActivityTargets, Concomitants, ConcomitantSubstances, Drugs, Effects, Endpoints, Indications, MEDataTypes, Meyler, MEEnzymeTransporters, Pathogens, PKParameters, Species, Sources, Targets, ToxicityParameters
The PharmaPendium Taxonomy that should be queried.
query xsd:string
(required)
default:
Comma-separated list of terms to be queried in the selected taxonomy.

responses
status:
200
representations
application/json Lookup JSON Response: Returns matches for the lookup within the taxonomy. tns:TreeCommonLookupEntity
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json
POST lookupFuzzy()

lookupFuzzy: Example: { "query": "Aspir*", "taxonomy": "Drugs" }

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.
Content-Type xsd:string
(required)
default: application/json
fixed: application/json

representations
application/json schemas:lookupFuzzyUsingPOST_3_Request
responses
status:
200
representations
application/json Lookup JSON Response: Returns matches for the lookup within the taxonomy. tns:TreeCommonLookupEntity
status:
201 - 201 - Created
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json

https://api.elsevier.com/pharma/drugsindications/search

Methods
GET search()

search: Example: curl -X GET --header 'Accept: application/json' 'https://api.elsevier.com/pharma/drugsindications/search?limitation.count=10&displayColumns=drug%2Cindication&facets=drugs&leaf=true'

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.
Content-Type xsd:string
(required)
default: application/json
fixed: application/json

query params
limitation.firstRow xsd:integer
default:
Number of the first row to include in response. The JSON response is limited to 500 records (rows 0-499). Use this field and limitation.count to loop over the response and download the complete set of results.
limitation.count xsd:integer
default:
Number of data rows that should be returned.
displayColumns xsd:string
(repeating)
default:
Comma-separated list of data fields to be included in the response. If empty, all available data fields are returned.
drugs xsd:string
(repeating)
default:
Comma-separated list of drug names, strictly from the PharmaPendium Drugs Taxonomy. Use lookupFuzzy or suggest to request relevant terms of the taxonomy. lookupFuzzy allows wildcards. suggest matches a prefix.
drugsFuzzy xsd:string
(repeating)
default:
Drug names with wildcards. The search will include drug classes, so the search for 'anesth*' will return results with 'Lidocaine; Prilocaine' as this drug belongs to the Anesthetics class. Fuzzy lookup as this matches results up to 2 characters different.
facets xsd:string
(repeating)
default:
Fields/taxonomies according to which data should be faceted. Facets appear in the response below the search result.
drugsAndSynonyms xsd:string
(repeating)
default:
Comma-separated list of drug names, using an exact match for drugs from the PharmaPendium Drugs Taxonomy as well as synonyms.
sourcesShort xsd:string
(repeating)
default:
One or more of the following: DESI, MOSBY'S, FDA Label, Efficacy (FDA), Efficacy (EMA), EMA ANNEX, FDA Classic
indications xsd:string
(repeating)
default:
leaf xsd:boolean
default:
Select "true" to include only taxonomy end terms and not higher level categories.

responses
status:
200 - 200 - OK
representations
application/json Search JSON Response: Returns data and requested facets matching specified criteria. JSON response
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json
POST search()

search: Example: { "limitation": { "count": 10, "firstRow": 0 }, "sortColumns": [ { "column": "drug", "isAscending": true } ], "drugs": [ "Aspirin" ], "facets":["drugs"] }

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.
Content-Type xsd:string
(required)
default: application/json
fixed: application/json

representations
application/json schemas:searchUsingPOST_3_Request
responses
status:
200 - 200 - OK
representations
application/json schemas:searchUsingPOST_3200
status:
201 - 201 - Created
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json

https://api.elsevier.com/pharma/drugsindications/suggest

Methods
GET suggest()

suggest: Example: /suggest?prefix=asp&taxonomy=Drugs'

request
header params
Accept xsd:string
(required)
default: application/json
options: application/json
This represents the acceptable mime types in which the response can be generated. This can also be submitted as the query string parameter "httpAccept". This returns the response in JSON, ATOM, or XML mark-up.
Authorization xsd:string This header field contains the OAuth bearer access token in which the format of the field is "Bearer <token>" (where the token represents the end-user session key). The presence of a bearer token implies the request will be executed against user-based entitlements. The Authorization field overrides X-ELS-Authtoken.
X-ELS-APIKey xsd:string
(required)
This represents a unique application developer key providing access to API resources. This key can also be submitted as the query string parameter "apiKey"
X-ELS-Authtoken xsd:string This represents a end-user session. If provided, this token is used to validate the credentials needed to access content in this resource. This token can also be submitted through the HTTP header "Authorization" or the query string parameter "access_token".
X-ELS-Insttoken xsd:string This represents a institution token. If provided, this key (in combination with its associated APIKey) is used to establish the credentials needed to access content in this resource. This token can also be provided through the query string parameter "insttoken".
X-ELS-ReqId xsd:string This is a client-defined request identifier, which will be logged in all trace messages of the service. This identifier can be used to track a specific transaction in the service's message logs. It will also be returned as an HTTP header in the corresponding response. Note that this should be a unique identifier for the client, and used to track a single transaction.
Content-Type xsd:string
(required)
default: application/json
fixed: application/json

query params
prefix xsd:string
default:
Prefix of taxonomy terms that should be retrieved.
taxonomy unspecified type
default:
options: ActivityTargetsExtended, ActivityTargets, Concomitants, ConcomitantSubstances, Drugs, Effects, Endpoints, Indications, MEDataTypes, Meyler, MEEnzymeTransporters, Pathogens, PKParameters, Species, Sources, Targets, ToxicityParameters
The PharmaPendium Taxonomy that should be queried.

responses
status:
200
representations
application/json Suggest JSON Response: Returns a list of elements of the taxonomy matching prefix. All of the provided elements are guaranteed to have associated data in this module.
status:
401
representations
application/json Authentication Error: This is an error that occurs when a user cannot be authenticated due to missing/invalid credentials (authtoken or APIKey).
status:
403
representations
application/json Authorization/Entitlements Error: This is an error that occurs when a user cannot be authenticated or entitlements cannot be validated.
status:
404
representations
application/json Resource Not Found Error: This is an error that occurs when the requested resource cannot be found.
status:
429
representations
application/json Quota Exceeded: This is an error that occurs when a requester has exceeded the quota limits associated with their API Key.
status:
500
representations
application/json