API Dashboard

MANAGE YOUR API KEY AND MONITOR USAGE

Enter your email to generate a free API key. Your first 100 calls are free — no card required.
Generate API Key Free

By generating a key you agree to our terms of use. After 100 free calls, usage is billed at £0.01/call via Stripe.

Already have a key? Look it up by email →

API Reference

BASE URL: HTTPS://API.SENTIMENTFX.ORG

Authentication

All API endpoints require an API key passed as a request header. Generate your key on the dashboard.

Include your API key in every request using the X-API-Key header.
Example Request
# Curl
curl https://api.sentimentfx.org/v1/sentiment/BTC \
  -H "X-API-Key: sfx_your_api_key_here"

# Python
import requests
res = requests.get(
    "https://api.sentimentfx.org/v1/sentiment/BTC",
    headers={"X-API-Key": "sfx_your_api_key_here"}
)

# JavaScript
const res = await fetch(
    "https://api.sentimentfx.org/v1/sentiment/BTC",
    { headers: { "X-API-Key": "sfx_your_api_key_here" } }
)

Sentiment

GET /v1/sentiment/{ticker}

Returns sentiment-scored headlines for the specified ticker. Default 25 headlines = 1 call. Every additional 25 = 1 more call.

ParameterTypeDefaultDescription
tickerstringBTC, ETH, SOL, XRP, or DOGE
limitinteger25Number of headlines to return
Response
{
  "ticker": "BTC",
  "limit": 25,
  "calls_used": 1,
  "data": [
    {
      "date": "2026-04-27T12:00:00",
      "title": "Bitcoin hits new yearly high amid ETF inflows",
      "source": "CoinDesk",
      "sentiment_score": 0.6821,
      "sentiment_label": "positive"
    }
  ]
}
▶ Try it
Requires an API key. Get one here →
Ticker Limit

                                    

Summary

GET /v1/summary/{ticker}

Returns daily averaged sentiment scores. Default 30 days = 30 calls.

ParameterTypeDefaultDescription
tickerstringBTC, ETH, SOL, XRP, or DOGE
daysinteger30Number of days of history
Response
{
  "ticker": "BTC",
  "days": 30,
  "calls_used": 30,
  "data": [
    {
      "date": "2026-04-27",
      "avg_sentiment": 0.2341,
      "article_count": 12,
      "label": "positive"
    }
  ]
}
▶ Try it
Requires an API key. Get one here →
Ticker Days

                                    

Prices

GET /v1/prices/{ticker}

Returns daily closing prices in GBP. Default 30 days = 30 calls.

ParameterTypeDefaultDescription
tickerstringBTC, ETH, SOL, XRP, or DOGE
daysinteger30Number of days of history
Response
{
  "ticker": "BTC",
  "days": 30,
  "calls_used": 30,
  "data": [
    {
      "date": "2026-04-27T00:00:00",
      "close_price_gbp": 72841.50,
      "volume": 18294830293.0
    }
  ]
}
▶ Try it
Requires an API key. Get one here →
Ticker Days

                                    

Correlation

GET /v1/correlation/{ticker}

Returns Pearson correlation between sentiment and price returns across lag periods of 0–7 days. Always 1 call.

ParameterTypeDefaultDescription
tickerstringBTC, ETH, SOL, XRP, or DOGE
Response
{
  "ticker": "BTC",
  "calls_used": 1,
  "best_lag_days": 2,
  "correlation": 0.412,
  "all_lags": {
    "0": 0.121,
    "1": 0.287,
    "2": 0.412,
    "3": 0.198
  }
}
▶ Try it
Requires an API key. Get one here →
Ticker

                                    

Error Codes

CodeMeaning
401Missing or invalid API key
404No data found for ticker
429Rate limit exceeded
500Server error

Pricing

SIMPLE, TRANSPARENT API PRICING

Free
£0 / month

Get started with no card required. Perfect for prototyping and exploration.

  • 100 free API calls
  • All 5 tickers
  • All endpoints
  • No expiry on free calls
1,000 calls/month = £10 · 10,000 calls/month = £100 · No setup fees or hidden charges.

How calls are counted

EndpointCalls Used
/v1/sentiment/{ticker}ceil(limit / 25) — default 1 call for 25 headlines
/v1/summary/{ticker}1 call per day returned — default 30 calls
/v1/prices/{ticker}1 call per day returned — default 30 calls
/v1/correlation/{ticker}Always 1 call

Supported Tickers

TickerAssetAvailable Endpoints
BTCBitcoinsentiment, summary, prices, correlation
ETHEthereumsentiment, summary, prices, correlation
SOLSolanasentiment, summary, prices, correlation
XRPXRPsentiment, summary, prices, correlation
DOGEDogecoinsentiment, summary, prices, correlation