Skip to main content

How can I start with a simple API query?

Example of a simple API call to get started

The quickest way to try the API is with curl from your terminal. This request returns the RSI of BTCUSDT on Binance on the 1h timeframe:

curl "https://v2.taapi.io/indicator/rsi?exchange=binance&symbol=BTCUSDT&timeframe=1h" \
-H "Authorization: Bearer YOUR_API_KEY"

Replace YOUR_API_KEY with your v2 key: log in to app.taapi.io, open API Keys and copy the Production key (it starts with taapi_live_sk_). The Legacy v1 key won't work here.

Response

{
"value": [31.10],
"timestamp": [1793653200]
}

value[0] is the indicator result, and timestamp[0] is the Unix timestamp of the candle it was calculated on. Values are always returned as arrays, even for a single result.

Got a 202 with "pending": true? The first time you request a symbol and timeframe, the data may still be loading. Repeat the same request after 1–2 seconds.

The parameters

  • exchange: binance, binancefutures, bybit, gateio, kraken, or stocks for US stocks.

  • symbol: the pair or ticker, for example BTCUSDT or AAPL.

  • timeframe: the candle interval: 1m, 5m, 15m, 1h, 4h, 1d or 1w.

Note: since v2 the API key is sent in the Authorization header, so pasting a URL into your browser's address bar no longer works. Use curl, a tool like Postman or Insomnia, or the HTTP client of your programming language.

Every indicator follows the same pattern: /indicator/<name>. You can browse all 260+ indicators and their parameters in the documentation.

Did this answer your question?