I am trying to use your Scopus API to retrieve the publications that a certain author has, but I am facing a 401 error message in the browser console:
GET https://api.elsevier.com/content/author/author_id/57196038163?apiKey=7f59af901d2d86f78a1fd60c1bf9426a&httpAccept=application/json 401
statusCode: "AUTHORIZATION_ERROR"
statusText: "The requestor is not authorized to access the requested view or fields of the resource"
The API key is attached with my website URL
Please check the following page which generates the error:
https://evo-ml.com/raneem/scopus2.html
Code:
<script>
fetch('https://api.elsevier.com/content/author/author_id/57196038163?apiKey=7f59af901d2d86f78a1fd60c1bf9426a&httpAccept=application/json')
.then(response => response.json())
.then(data => console.log(data))
.catch((error) => {console.error('Error:', error);});
</script>
I also tried to test it through the URL: https://dev.elsevier.com/retrieval.html but it seems that there is a problem there too.
Note: I am testing it through the API key I got from the website (which I can't share here). the one I've provided is the testing API key from the website.