The Elsevier API access is available to all SMU current faculty, staff, and students. Please note the API access is restricted to SMU Libraries' subscription, which includes ScienceDirect and Scopus. To get the full functionality of this API, you will need API key
and Institutional token
.
How to get an API Key:
How to get an Institutional token:
Restrictions when using institutional token:
# setup the HTTP headers
header = {"Accept": "application/xml", "X-ELS-APIKey": "YOUR APIKey", "X-ELS-Insttoken": "YOUR INST TOKEN"}
# Break down the variables for the search query
api_url = "https://api.elsevier.com/content/search/scopus?query="
search_query = 'AUTHLASTNAME(Smith)'
# Call the API
response = rq.get(api_url + search_query, headers = header)
Return Format
The API can return results in XML or JSON format. You can specify this in the HTTP header under Accept
field. See example above.
Limitations
Useful Links
API Wrappers
Wrappers are API-specific packages that streamlines the process of making API calls. Available wrappers for Elsevier API: