🔍

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

  1. Go to taapi.io and create an account.
  2. After signing in, your API key appears in the dashboard.
  3. Copy the key and use it in the Authorization header 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