| title | TwexAPI quickstart |
|---|---|
| sidebarTitle | Quickstart |
| description | Create a TwexAPI key, authenticate with Bearer, and run the first tweet search. Public reads need no official X developer account. |
Use this quickstart to make the first authenticated REST call.
| Step | Call | Save |
|---|---|---|
| Confirm the key | GET /balance |
Remaining credits |
| Search tweets | POST /twitter/advanced_search/page |
next_cursor if present |
- Create an API key in the TwexAPI dashboard
- Store it as
X_API_SCRAPER_KEY - Use
https://api.twexapi.ioas the base URL - Send
Authorization: Bearer <key>
Public tweet, profile, search, follower, timeline, reply, quote, and trending reads use the API key only.
Open the [dashboard](https://twexapi.io/dashboard) and create a key. Keep it in a secret manager. Do not commit it. ```bash export X_API_SCRAPER_KEY='replace_me'curl --request GET 'https://api.twexapi.io/balance' \
--header "Authorization: Bearer ${X_API_SCRAPER_KEY}"
```
Operators such as `from:user`, `since:YYYY-MM-DD`, `until:YYYY-MM-DD`, and `lang:en` go inside `searchTerms`.
Next: Authentication, Search guide, or API overview.