Basic authentication

Many of the enterprise APIs within the Twitter platform require the use of HTTP Basic Authentication, constructed from a valid email address and password combination, as the means for interacting with the API endpoints. These are created and maintained through the enterprise subscription console for these APIs.  Credentials must be passed as the Authorization header for each request. Make sure your client is adding the Authentication: Basic HTTP header (with encoded credentials over HTTPS) to all API requests.

APIs that use basic authentication:

If you're using one of the APIs listed above, please use your email address and password that you use to log into your account at console.gnip.com.

Below is an example curl request that makes use of basic auth:

curl -v --compressed -u<email_address>:<password>
    "https://gnip-api.twitter.com/search/30day/accounts/<account-name>/prod/counts.json?query=from%3Atwitterdev"

Was this document helpful?

ありがとうございます

ご協力ありがとうございました。お役に立てて幸いです。

Thank you for the feedback. How could we improve this document?

Thank you for the feedback. Your comments will help us improve our documents in the future.