I’m trying to access my usage metrics in Postman and cannot authenticate via Basic auth.
Following the [documentation](https://developer.twitter.com/en/docs/developer-utilities/usage-api/overview), I used the following url: https://gnip-api.twitter.com/metrics/usage/accounts/<username>.json?bucket=month and setup Basic auth in Postman:

I’ve tried username, @username and email address for username field. I reset my password to make sure I was using the correct password. Response is always the same.
"error": { "message": "Your username/password combination is incorrect", "sent": "2019-08-10T19:21:32+00:00", "transactionId": "006cd330009c115c" }
Postman appears to be encoding the Basic auth properly:

I also tried to access via curl, and got the same response.
curl -u <username>:<password> \ "https://gnip-api.twitter.com/metrics/usage/accounts/johnfpendleton.json?bucket=month"
What am I missing?
I believe you need to use data-api.twitter.com in place of gnip-api
Thanks for the reply, Andy. Unfortunately, that didn’t solve my issue.
To clarify, I’m not looking for Tweet engagements. I want API Usage Metrics so I can track my API costs. Note that the documentation specifies gnip-api:
Even so, just to make sure, I tried your suggestion and used the data-api domain, and still got the same response.

system
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.