title: Getting author's articles from Scopus using Scopus API (AUTHENTICATION_ERROR)
body: <p>I've registered at <a href="http://www.developers.elsevier.com/action/devprojects" rel="noreferrer">http://www.developers.elsevier.com/action/devprojects</a>. I created a project and got my scopus key:</p>
  
  <p><a href="https://i.stack.imgur.com/8wvbE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8wvbE.png" alt="enter image description here"></a></p>
  
  <p>Now, using this generated key, I would like to find an author by <code>firstname</code>, <code>lastname</code> and <code>subjectarea</code>. I make requests from my university network, which is allowed to visit Scopus (I have full manual access to Scopus search, use it from Firefox with no problem). However, I wanted to automatize my Scopus mining, by writing a simple script. I would like to find publications of an author by giving his/her <code>firstname</code>, <code>lastname</code> and <code>subjectarea</code>.</p>
  
  <p>Here's my code:</p>
  
  <pre><code># !/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import requests
  import json
  from scopus import SCOPUS_API_KEY
  
  
  scopus_author_search_url = 'http://api.elsevier.com/content/search/author?'
  headers = {'Accept':'application/json', 'X-ELS-APIKey': SCOPUS_API_KEY}
  search_query = 'query=AUTHFIRST(%) AND AUTHLASTNAME(%s) AND SUBJAREA(%s)' % ('John', 'Kitchin', 'COMP')
  
  # api_resource = "http://api.elsevier.com/content/search/author?apiKey=%s&amp;" % (SCOPUS_API_KEY)
  
  # request with first searching page
  page_request = requests.get(scopus_author_search_url + search_query, headers=headers)
  print page_request.url
  
  # response to json
  page = json.loads(page_request.content.decode("utf-8"))
  print page
  </code></pre>
  
  <p>Where <code>SCOPUS_API_KEY</code> looks just like this: <code>SCOPUS_API_KEY="xxxxxxxx"</code>.</p>
  
  <p>Although <strong>I have full access to scopus from my university network</strong>, I'm getting such response:</p>
  
  <blockquote>
    <p>{u'service-error': {u'status': {u'statusText': u'Requestor
    configuration settings insufficient for access to this resource.',
    u'statusCode': u'AUTHENTICATION_ERROR'}}}</p>
  </blockquote>
  
  <p>The generated link looks like this: <a href="http://ttp://api.elsevier.com/content/search/author?query=AUTHFIRST(John)%20AND%20AUTHLASTNAME(Kitchin)%20AND%20SUBJAREA(COMP)" rel="noreferrer">http://api.elsevier.com/content/search/author?query=AUTHFIRST(John)%20AND%20AUTHLASTNAME(Kitchin)%20AND%20SUBJAREA(COMP)</a> and when I click it, it shows an XML file:</p>
  
  <pre><code>&lt;service-error&gt;&lt;status&gt;
    &lt;statusCode&gt;AUTHORIZATION_ERROR&lt;/statusCode&gt;
    &lt;statusText&gt;No APIKey provided for request&lt;/statusText&gt;
  &lt;/status&gt;&lt;/service-error&gt;
  </code></pre>
  
  <p>Or, when I change the <code>scopus_author_search_url</code> to <code>"http://api.elsevier.com/content/search/author?apiKey=%s&amp;" % (SCOPUS_API_KEY)</code> I'm getting:</p>
  
  <p><code>{u'service-error': {u'status': {u'statusText': u'Requestor configuration settings insufficient for access to this resource.', u'statusCode': u'AUTHENTICATION_ERROR'}}}</code> and the XML file:</p>
  
  <pre><code>&lt;service-error&gt;
  &lt;status&gt;
  &lt;statusCode&gt;AUTHENTICATION_ERROR&lt;/statusCode&gt;
  &lt;statusText&gt;Requestor configuration settings insufficient for access to this resource.&lt;/statusText&gt;
  &lt;/status&gt;
  &lt;/service-error&gt;
  </code></pre>
  
  <p>What can be the cause of this problem and how can I fix it? </p>