Forbidden access when calling geo/search.json

oauth
geo
api

#1

Hello everyone,

I’m new in using twitter API, I’ve successfully called:
https://api.twitter.com/1.1/statuses/user_timeline.json
https://api.twitter.com/1.1/friends/list.json
https://api.twitter.com/1.1/followers/list.json
but when I call:
https://api.twitter.com/1.1/geo/search.json?query=Pakistan
I get Forbidden access.

Following is my request:

Method: GET, RequestUri: ‘https://api.twitter.com/1.1/geo/search.json?query=Pakistan’, Version: 1.1, Content: , Headers:
{
Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAB7a0QAAAAAApiyJ02YUvFiX5o3IbTbo7lcAqLg%3DKKfP18rnR1drSqT1sIekLfgl4bSQurPELkyiZtqctABm7Mza3i
}

And the response that I get is:

StatusCode: 403, ReasonPhrase: ‘Forbidden’, Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
strict-transport-security: max-age=631138519
x-connection-hash: 3a7f405036803861a700cef30f7b1e7f
x-response-time: 107
Date: Fri, 05 May 2017 03:18:15 GMT
Set-Cookie: guest_id=v1%3A149395429589966721; Domain=.twitter.com; Path=/; Expires=Sun, 05-May-2019 03:18:15 UTC
Server: tsa_o
Content-Length: 91
Content-Type: application/json; charset=utf-8
}


#2

That sounds odd, I’ve just successfully called that endpoint using twurl. Are you only using a bearer token? that endpoint requires a user context.