> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Twelve Data

> Prices, quotes, time series, symbol search and fundamentals for stocks, forex, crypto and ETFs worldwide.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/twelvedata.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=69c2a6a010d25ecc72a5857740a67d2c)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`TWELVEDATA_API_KEY`

Endpoints

9

Auth

Key in header

[Vendor docs](https://twelvedata.com/docs)

&#x20;·&#x20;

[Pricing](https://twelvedata.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `TWELVEDATA_API_KEY` | required | a Twelve Data API key (twelvedata.com/account/api-keys) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Rate limits and API credits depend on the plan; an over-limit key gets 429. Fundamentals, many exchanges and some options need paid plans.
* Pass a symbol; add exchange, mic\_code or country when a ticker trades in several places.

## Endpoints

GET

Get a price time series

OHLCV candles for stocks, forex, crypto, ETFs and more.

[Open](#twelvedata-time-series)

GET

Get a quote

Latest quote with open, high, low, close, volume, change and 52-week range.

[Open](#twelvedata-quote)

GET

Get the latest price

Just the latest price of an instrument.

[Open](#twelvedata-price)

GET

Get end-of-day price

Closing price of the last trading day, or a given date.

[Open](#twelvedata-eod)

GET

Search symbols

Find instruments by ticker or name.

[Open](#twelvedata-symbol-search)

GET

Get a currency exchange rate

Rate for a forex or crypto pair, now or on a date.

[Open](#twelvedata-exchange-rate)

GET

Get income statements

Annual or quarterly income statements.

[Open](#twelvedata-income-statement)

GET

Get earnings history

Reported versus estimated EPS per period.

[Open](#twelvedata-earnings)

GET

Get API usage

Credits used and plan limits for the key.

[Open](#twelvedata-api-usage)

### Get a price time series

GET

`/time_series`

`twelvedata.time_series`

OHLCV candles for stocks, forex, crypto, ETFs and more.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>

    <tr><td>`interval` required</td><td>string</td><td>query</td><td>Candle size: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 8h, 1day, 1week, 1month. Example `1day`</td></tr>

    <tr>
      <td>
        `outputsize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Points to return, 1 to 5000; default 30.
      </td>
    </tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        From, 2006-01-02 or 2006-01-02T15:04:05.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        To, same formats.
      </td>
    </tr>

    <tr>
      <td>
        `order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        asc or desc.
      </td>
    </tr>

    <tr>
      <td>
        `timezone`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Output timezone: Exchange, UTC or an IANA name.
      </td>
    </tr>

    <tr>
      <td>
        `adjust`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Price adjustment: all, splits (default), dividends or none.
      </td>
    </tr>

    <tr>
      <td>
        `previous_close`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add previous close.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#time-series) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("twelvedata.time_series", {'symbol': 'AAPL', 'interval': '1day'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.time_series", params={"symbol": "AAPL", "interval": "1day"})
```

> [!NOTE]
>
> * Dates in start\_date and end\_date take 2006-01-02 or 2006-01-02T15:04:05 formats.

### Get a quote

GET

`/quote`

`twelvedata.quote`

Latest quote with open, high, low, close, volume, change and 52-week range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>

    <tr>
      <td>
        `interval`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Interval of the quote, default 1day.
      </td>
    </tr>

    <tr>
      <td>
        `eod`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Return closed-day data.
      </td>
    </tr>

    <tr>
      <td>
        `rolling_period`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Hours for rolling change, 1 to 168; default 24.
      </td>
    </tr>

    <tr>
      <td>
        `timezone`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Output timezone.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#quote) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-24hr), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote)

```python Python theme={null}
router.call_data_api("twelvedata.quote", {'symbol': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.quote", params={"symbol": "AAPL"})
```

### Get the latest price

GET

`/price`

`twelvedata.price`

Just the latest price of an instrument.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#price) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-24hr), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote)

```python Python theme={null}
router.call_data_api("twelvedata.price", {'symbol': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.price", params={"symbol": "AAPL"})
```

### Get end-of-day price

GET

`/eod`

`twelvedata.eod`

Closing price of the last trading day, or a given date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>

    <tr>
      <td>
        `date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A specific date, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#eod) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("twelvedata.eod", {'symbol': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.eod", params={"symbol": "AAPL"})
```

### Search symbols

GET

`/symbol_search`

`twelvedata.symbol_search`

Find instruments by ticker or name.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Ticker, name or ISIN to search. Example `apple`</td></tr>

    <tr>
      <td>
        `outputsize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Matches to return, max 120.
      </td>
    </tr>

    <tr>
      <td>
        `show_plan`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the plan each symbol is available on.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#symbol-search)

```python Python theme={null}
router.call_data_api("twelvedata.symbol_search", {'symbol': 'apple'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.symbol_search", params={"symbol": "apple"})
```

### Get a currency exchange rate

GET

`/exchange_rate`

`twelvedata.exchange_rate`

Rate for a forex or crypto pair, now or on a date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Pair with a slash, e.g. EUR/USD or BTC/USD. Example `EUR/USD`</td></tr>

    <tr>
      <td>
        `date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Rate at this date or time.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#exchange-rate)

```python Python theme={null}
router.call_data_api("twelvedata.exchange_rate", {'symbol': 'EUR/USD'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.exchange_rate", params={"symbol": "EUR/USD"})
```

### Get income statements

GET

`/income_statement`

`twelvedata.income_statement`

Annual or quarterly income statements.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>

    <tr>
      <td>
        `period`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        annual or quarterly.
      </td>
    </tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Fiscal date from, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Fiscal date to, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `outputsize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#income-statement) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-protocols), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics)

```python Python theme={null}
router.call_data_api("twelvedata.income_statement", {'symbol': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.income_statement", params={"symbol": "AAPL"})
```

> [!NOTE]
>
> * Fundamentals need a paid plan.

### Get earnings history

GET

`/earnings`

`twelvedata.earnings`

Reported versus estimated EPS per period.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>Ticker, e.g. AAPL, or a pair such as EUR/USD. Example `AAPL`</td></tr>

    <tr>
      <td>
        `exchange`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exchange, to disambiguate a symbol.
      </td>
    </tr>

    <tr>
      <td>
        `mic_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Market Identifier Code (ISO 10383).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of listing, e.g. US.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Asset class, e.g. Common Stock, ETF.
      </td>
    </tr>

    <tr>
      <td>
        `dp`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places, 0 to 11.
      </td>
    </tr>

    <tr>
      <td>
        `period`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Type of earning; returns one record and ignores dates and outputsize.
      </td>
    </tr>

    <tr>
      <td>
        `outputsize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Points, 1 to 1000; default 10.
      </td>
    </tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        From, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        To, YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://twelvedata.com/docs#earnings) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-overview), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-ratings), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-protocols), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-fundamentals), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-financials-income-statements), [Finnhub](https://docs.webrouter.net/data-apis/finnhub.md#finnhub-stock-metrics)

```python Python theme={null}
router.call_data_api("twelvedata.earnings", {'symbol': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.earnings", params={"symbol": "AAPL"})
```

### Get API usage

GET

`/api_usage`

`twelvedata.api_usage`

Credits used and plan limits for the key.

Input

No inputs.

[Vendor docs](https://twelvedata.com/docs#api-usage)

```python Python theme={null}
router.call_data_api("twelvedata.api_usage")
```

```text MCP theme={null}
call_data_api(endpoint="twelvedata.api_usage")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.