1. Get your API key
- Sign in at twitterapi.io with Google.
- Copy the API key shown on your dashboard.
2. Make your first request
Look up a user profile. ReplaceYOUR_API_KEY with your key:
3. Read the response
A successful call returns HTTP200 with JSON like this (trimmed; numbers will differ):
Some “not found” results still return HTTP
200, with "status": "error" in the body, for example {"status": "error", "msg": "user not found", "data": null}. Always check status as well as the HTTP code. See Errors.4. Try a search
Search returns up to 20 tweets per page, plus a cursor for the next page:next_cursor back as cursor to get the next page. See Pagination.
Next steps
Pricing
What each endpoint costs, in credits.
Errors
Status codes and how to handle them.
Rate limits
Requests per second by account type.
Advanced search
The most-used endpoint.