- Accounts and users
- Direct Messages
- Publisher tools
- Twitter for Websites
- Developer utilities
- API reference index
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:
- PowerTrack API enterprise
- Decahose stream API enterprise
- 30-Day Search API enterprise
- Full-Archive Search API enterprise
- Historical PowerTrack API enterprise
- Usage API enterprise
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"