Authentication
All requests require a Bearer token in the Authorization header.
Every endpoint in the TAAPI.IO v2 API requires an API key. Pass it as a Bearer token in the Authorization request header.
Header format
HTTP Header
Authorization: Bearer YOUR_API_KEY
There are no query-string or body-field alternatives. The key must be in the header on every request.
Getting an API key
- Go to taapi.io and create an account.
- After signing in, your API key appears in the dashboard.
- Copy the key and use it in the
Authorizationheader as shown above.
Example request
curl -G https://v2.taapi.io/indicator/rsi \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h"
const res = await fetch(
'https://v2.taapi.io/indicator/rsi?exchange=binance&symbol=BTCUSDT&timeframe=1h',
{
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
}
);
const data = await res.json();
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/rsi',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h'}
)
data = resp.json()
Error responses
If the key is missing or invalid, the API returns HTTP 401:
401 Unauthorized
{ "error": "Invalid or missing API key." }
See Errors for the full list of status codes.
Keeping your key safe
- Do not embed your key in client-side code (browser JavaScript, mobile apps).
- Store it in an environment variable and pass it at runtime.
- If your key is compromised, regenerate it from the dashboard.