title: OAuthPermissionsException Instagram API in Sandbox
body: <p>I am trying to access data related to a tag (let's call it &quot;X&quot;) using Instagram API. I tried running it from Python and from the browser directly and got the same error:</p>
  <pre><code>{u'meta': {u'code': 400, u'error_type':u'OAuthPermissionsException',
  u'error_message': u'This request requires scope=public_content, but this
  access token is not authorized with this scope. The user must re-authorize
  your application with scope=public_content to be granted this permissions.'}}
  </code></pre>
  <p>This is the simple Python code I wrote in order to first make it work:</p>
  <pre><code>import requests
  
  access_token = 'zzzzzzzzzzzzz'
  parameters = {&quot;q&quot;: &quot;X&quot;,
                &quot;scope&quot;: &quot;public_content&quot;,
                &quot;access_token&quot;: &quot;zzzzzzzzzzzzz&quot;}
  
  response = requests.get(&quot;https://api.instagram.com/v1/tags/search&quot;,
                          params=parameters)
  insta_posts = response.json()
  </code></pre>
  <p>Am I using the right URL for a Sandbox? I read the Instagram API documentation and applications in Sandbox do not need any type of approval for a scope change.</p>
  <p>Also, the application is authorized for Sandbox only:</p>
  <p><a href="https://i.stack.imgur.com/BzeYZ.png" rel="nofollow noreferrer">Screen Capture of Application Defined in Instagram API</a></p>