API Documentation

Real-time stock quotes, historical data, technical indicators, crypto, and more — all through a simple REST API.

Base URL: https://thisapi-production-d755.up.railway.app

Getting Started

1. Get a free API key from the home page.

2. Pass your key as the X-API-Key header on every request.

3. Free accounts get 100 requests/day. Upgrade for more.

Authentication

Every request must include your API key in the request header:

X-API-Key: sk_your_api_key_here

Rate Limits

PlanDaily LimitPrice
Free100 requests / day$0
Pro10,000 requests / day$9.99 / month
BusinessUnlimited$49.99 / month

Stock Quote

Get a real-time quote for any stock symbol.

GET /v1/stocks/quote/{symbol} Free
ParameterTypeDescription
symbol requiredpathStock ticker (e.g. AAPL, TSLA, MSFT)
curl https://thisapi-production-d755.up.railway.app/v1/stocks/quote/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "price": 227.48, "open": 225.10, "high": 228.92, "low": 224.55, "volume": 48203910, "previous_close": 225.77, "change": 1.71, "change_pct": 0.7573 }

Try it

Batch Quotes

Get quotes for multiple symbols in a single request.

POST /v1/stocks/batch Pro
ParameterTypeDescription
symbols requiredbody (JSON array)List of tickers — max 20
curl -X POST https://thisapi-production-d755.up.railway.app/v1/stocks/batch \
  -H "X-API-Key: sk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"symbols": ["AAPL","TSLA","MSFT"]}'
Response
{ "results": { "AAPL": { "price": 227.48, "change_pct": 0.76, ... }, "TSLA": { "price": 248.50, "change_pct": -1.23, ... }, "MSFT": { "price": 415.20, "change_pct": 0.44, ... } }, "count": 3 }

Company Info

Get detailed company information including sector, market cap, P/E ratio, and more.

GET /v1/stocks/info/{symbol} Free
curl https://thisapi-production-d755.up.railway.app/v1/stocks/info/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "name": "Apple Inc.", "sector": "Technology", "industry": "Consumer Electronics", "market_cap": 3500000000000, "pe_ratio": 32.4, "website": "https://www.apple.com", "description": "Apple Inc. designs, manufactures..." }

Price History

Get historical OHLCV (Open, High, Low, Close, Volume) data for any stock.

GET /v1/stocks/history/{symbol} Pro
ParameterTypeDescription
symbol requiredpathStock ticker
periodquery1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y (default: 1y)
intervalquery1d, 1wk, 1mo (default: 1d)
curl "https://thisapi-production-d755.up.railway.app/v1/stocks/history/AAPL?period=1mo&interval=1d" \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "period": "1mo", "interval": "1d", "data": [ { "date": "2025-02-14", "open": 227.48, "high": 228.92, "low": 224.55, "close": 227.48, "volume": 48203910 }, ... ] }

Technical Indicators

Get RSI, MACD, and moving averages for any stock. Popular with algorithmic traders.

GET /v1/stocks/indicators/{symbol} Pro
curl https://thisapi-production-d755.up.railway.app/v1/stocks/indicators/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "rsi_14": 58.32, "macd": 2.14, "macd_signal": 1.87, "macd_histogram": 0.27, "sma_20": 224.15, "sma_50": 219.80, "ema_12": 225.44, "ema_26": 221.30 }

Stock News

Get the latest news headlines for any stock symbol.

GET /v1/stocks/news/{symbol} Free
curl https://thisapi-production-d755.up.railway.app/v1/stocks/news/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "news": [ { "title": "Apple Announces New Product Line", "publisher": "Reuters", "url": "https://...", "published_at": "2025-03-15T14:30:00Z" }, ... ] }

Earnings Dates

Get upcoming and historical earnings report dates.

GET /v1/stocks/earnings/{symbol} Free
curl https://thisapi-production-d755.up.railway.app/v1/stocks/earnings/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "next_earnings_date": "2025-04-30", "earnings_history": [ { "date": "2025-01-30", "actual_eps": 2.40, "estimated_eps": 2.35 }, ... ] }

Dividends

Get dividend history and current yield for any stock.

GET /v1/stocks/dividends/{symbol} Free
curl https://thisapi-production-d755.up.railway.app/v1/stocks/dividends/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "dividend_yield": 0.0044, "dividends": [ { "date": "2025-02-07", "amount": 0.25 }, { "date": "2024-11-08", "amount": 0.25 }, ... ] }

Analyst Ratings

Get analyst price targets, buy/hold/sell ratings, and recent upgrades or downgrades for any stock.

GET /v1/stocks/analyst/{symbol} Pro
ParameterTypeDescription
symbol requiredpathStock ticker (e.g. AAPL, TSLA)
curl https://thisapi-production-d755.up.railway.app/v1/stocks/analyst/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "price_target": { "current": 227.48, "low": 180.00, "high": 300.00, "mean": 245.50, "median": 242.00 }, "ratings_summary": { "strong_buy": 12, "buy": 18, "hold": 8, "sell": 1, "strong_sell": 0 }, "recent_ratings": [ { "date": "2025-03-10", "firm": "Goldman Sachs", "from_grade": "Neutral", "to_grade": "Buy", "action": "up" }, ... ] }

Options Chain

Get the full options chain (calls and puts) for the nearest available expiry date.

GET /v1/stocks/options/{symbol} Business
ParameterTypeDescription
symbol requiredpathStock ticker (e.g. AAPL, SPY)
curl https://thisapi-production-d755.up.railway.app/v1/stocks/options/AAPL \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "AAPL", "expiry": "2025-03-21", "available_expiries": ["2025-03-21", "2025-03-28", "2025-04-04"], "calls": [ { "strike": 220.0, "last_price": 8.45, "bid": 8.40, "ask": 8.50, "volume": 1204, "open_interest": 5820, "implied_volatility": 0.2814, "in_the_money": true }, ... ], "puts": [ { "strike": 220.0, "last_price": 1.20, "bid": 1.18, "ask": 1.22, "volume": 890, "open_interest": 3100, "implied_volatility": 0.2650, "in_the_money": false }, ... ] }

Forex Quote

Get real-time exchange rates for major currency pairs.

GET /v1/forex/quote/{pair} Free
ParameterTypeDescription
pair requiredpath6-letter currency pair e.g. EURUSD, GBPUSD, USDJPY
curl https://thisapi-production-d755.up.railway.app/v1/forex/quote/EURUSD \
  -H "X-API-Key: sk_your_key_here"
Response
{ "pair": "EURUSD", "price": 1.085432, "open": 1.083210, "high": 1.087650, "low": 1.082100, "previous_close": 1.083210, "change": 0.002222, "change_pct": 0.2051 }

Supported Currency Pairs

Returns the full list of supported forex pairs.

GET /v1/forex/pairs Free
curl https://thisapi-production-d755.up.railway.app/v1/forex/pairs \
  -H "X-API-Key: sk_your_key_here"
Response
{ "count": 15, "pairs": ["EURUSD", "GBPUSD", "USDJPY", "USDCHF", "AUDUSD", "USDCAD", ...] }

Market Movers

Get today's top gaining and losing stocks.

GET /v1/market/movers Pro
curl https://thisapi-production-d755.up.railway.app/v1/market/movers \
  -H "X-API-Key: sk_your_key_here"
Response
{ "gainers": [ { "symbol": "NVDA", "price": 875.40, "change_pct": 8.23 }, ... ], "losers": [ { "symbol": "META", "price": 512.10, "change_pct": -4.11 }, ... ] }

Crypto Quote

Get real-time prices for Bitcoin, Ethereum, and thousands of other cryptocurrencies.

GET /v1/crypto/quote/{symbol} Free
ParameterTypeDescription
symbol requiredpathCrypto ticker e.g. BTC, ETH, SOL, DOGE
curl https://thisapi-production-d755.up.railway.app/v1/crypto/quote/BTC \
  -H "X-API-Key: sk_your_key_here"
Response
{ "symbol": "BTC", "name": "Bitcoin", "price": 84250.10, "change": 1240.50, "change_pct": 1.49, "volume": 28491023040, "market_cap": 1662000000000 }

Try it

Create API Key

Generate a free API key with your email address.

POST /v1/keys/create No key needed
curl -X POST https://thisapi-production-d755.up.railway.app/v1/keys/create \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'
Response
{ "key": "sk_a1b2c3d4e5f6...", "tier": "free", "daily_limit": 100, "message": "Keep your API key secret." }

Check Usage

Check your current tier, daily limit, and how many requests you've used today.

GET /v1/keys/usage Free
curl https://thisapi-production-d755.up.railway.app/v1/keys/usage \
  -H "X-API-Key: sk_your_key_here"
Response
{ "email": "you@example.com", "tier": "free", "daily_limit": 100, "used_today": 12, "remaining_today": 88 }