Plugins
Data sourceCommunity
Finnhub logo

Finnhub

clarity89

Get plugin

Configure

This document explains how to add and configure the Finnhub data source in Grafana. After you configure the data source, refer to the Finnhub query editor to start querying your data.

Before you begin

Before you configure the data source, ensure you have:

  • Grafana permissions: The Organization administrator role. Only organization administrators can add data sources.
  • Grafana version: Grafana 12.4.0 or later. The plugin declares grafanaDependency as >=12.4.0 in src/plugin.json.
  • Finnhub API token: A token from Finnhub (opens in new tab). A free token works with the Free data types; Candle and Social sentiment need a premium Finnhub plan.
  • Network access: Grafana must reach https://finnhub.io for REST queries and wss://ws.finnhub.io for the Trades stream.

Set up access in Finnhub

  1. Sign in to Finnhub (opens in new tab) and open your Finnhub dashboard.
  2. Copy the API token.

The plan behind the token controls which data types work. A premium data type fails when the token is on a free plan.

Add the data source

To add the Finnhub data source:

  1. Click Connections in the left-side menu.
  2. Click Add new connection.
  3. Enter Finnhub in the search bar.
  4. Select Finnhub.
  5. Click Add new data source.

Configure settings

SettingDescriptionRequired
API TokenFinnhub API token. Grafana stores it as secure data and sends it as the X-Finnhub-Token header for REST requests and the token parameter for the websocket. After you save, the field shows Configured; click Reset to enter a new token.Yes

The editor has no URL, TLS or proxy settings. Queries go through the Grafana proxy to Finnhub's fixed endpoints.

Verify the connection

Click Save & test to verify the connection.

  • Success returns Data source is working. The test requests the AAPL profile from stock/profile2.
  • Failure returns Error retrieving data: <reason>, where the reason comes from the Grafana proxy or Finnhub. Refer to Troubleshooting for the causes and fixes.

Provision the data source

You can provision the Finnhub data source with a Grafana provisioning file.

Provision with a configuration file

You can define the data source in a YAML file as part of the Grafana provisioning system. For more information, refer to Provision Grafana (opens in new tab).

The example uses one placeholder:

PlaceholderReplace with
${FINNHUB_API_TOKEN}The Finnhub API token.
apiVersion: 1

datasources:
  - name: Finnhub
    type: clarity89-finnhub-datasource
    access: proxy
    secureJsonData:
      apiToken: ${FINNHUB_API_TOKEN}
KeySets
nameThe display name of the data source in Grafana.
typeThe plugin ID, clarity89-finnhub-datasource.
accessproxy, so Grafana sends the queries through its own proxy.
secureJsonData.apiTokenThe Finnhub API token, stored encrypted and never returned to the browser.

The plugin has no jsonData settings, so the provisioning file has no jsonData block.

Insights

  • Adoption

    Running on 738 active Grafana instances.

  • Activity

    Last updated 6 Nov 2026.

    3 releases in the past year.

  • Queries

    4,451 total queries served across all Grafana Cloud instances.

Version
1.1.0
Dependencies
  • Grafana >=12.4.0
Developer
clarity89

Grafana Cloud

Connect any plugin in Grafana Cloud.

  • 150+ data source integrations
  • Grafana Assistant - AI that correlates your data, builds queries, and answers questions
  • 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
  • ...and more
Create free account