Skip to main content

1. Get your API key

  1. Sign in at twitterapi.io with Google.
  2. Copy the API key shown on your dashboard.
New accounts get free starter credits, so you can try the API right away. Accounts that have never topped up are limited to one request every 5 seconds; any top-up raises this (see Rate limits).

2. Make your first request

Look up a user profile. Replace YOUR_API_KEY with your key:

3. Read the response

A successful call returns HTTP 200 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.
Search returns up to 20 tweets per page, plus a cursor for the next page:
Pass 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.
Questions? Email [email protected].