Guide
Market dataSocial postsSentimentCryptoStocks API key

LunarCrush API guide

Social volume spikes often precede crypto moves; LunarCrush turns the noise into time series.

Last verified · Also known as LunarCrush API, Galaxy Score

Quick answer

LunarCrush aggregates social posts from X, Reddit, YouTube, TikTok and news into metrics such as social volume, sentiment, Galaxy Score and AltRank for coins and stocks. API v4 uses a bearer key and is included with paid subscriptions.

LunarCrush API at a glance

Pricing
API on paid subscriptions
Availability
Worldwide
Paper trading
Not applicable (data only)
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Auth
Bearer API key
Metrics
Galaxy Score, AltRank, social volume, sentiment

Build a LunarCrush strategy with AlgoGP

AlgoGP does not connect to LunarCrush natively yet. LunarCrush uses plain HTTPS with an API key, so it is a good candidate for a native adapter; it is not built in yet.

  1. 1

    Design and backtest in AlgoGP

    Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.

  2. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in LunarCrush

    Implement the four adapter methods (account, positions, submit_market_order and a candle fetcher) with LunarCrush’s SDK, or keep a built-in platform for paper trading and add LunarCrush when you go live.

Built-in data sources for the same markets: Alpaca, Binance, Coinbase Exchange, Yahoo Finance.

LunarCrush API: frequently asked questions

Does LunarCrush cover stocks?

Yes, social metrics are available for stocks as well as crypto.

Design and backtest your LunarCrush strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to LunarCrush. The exported code keeps the broker behind four small adapter methods.

  • AI copilot writes and revises the rules
  • Backtests with realistic costs
  • Exported Python ready to wire to LunarCrush

Free plan, no card required.

LunarCrush alternatives

Independent guide. AlgoGP is not affiliated with LunarCrush. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy