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
| Plan | Daily Limit | Price |
| Free | 100 requests / day | $0 |
| Pro | 10,000 requests / day | $9.99 / month |
| Business | Unlimited | $49.99 / month |
Stock Quote
Get a real-time quote for any stock symbol.
| Parameter | Type | Description |
| symbol required | path | Stock 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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/quote/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/quote/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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
}
Batch Quotes
Get quotes for multiple symbols in a single request.
| Parameter | Type | Description |
| symbols required | body (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"]}'
import requests
response = requests.post(
"https://thisapi-production-d755.up.railway.app/v1/stocks/batch",
headers={"X-API-Key": "sk_your_key_here"},
json={"symbols": ["AAPL", "TSLA", "MSFT"]}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/batch",
{
method: "POST",
headers: {
"X-API-Key": "sk_your_key_here",
"Content-Type": "application/json"
},
body: JSON.stringify({ symbols: ["AAPL", "TSLA", "MSFT"] })
}
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/stocks/info/AAPL \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/info/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/info/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
| Parameter | Type | Description |
| symbol required | path | Stock ticker |
| period | query | 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y (default: 1y) |
| interval | query | 1d, 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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/history/AAPL",
headers={"X-API-Key": "sk_your_key_here"},
params={"period": "1mo", "interval": "1d"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/history/AAPL?period=1mo&interval=1d",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/stocks/indicators/AAPL \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/indicators/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/indicators/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/stocks/news/AAPL \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/news/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/news/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/stocks/earnings/AAPL \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/earnings/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/earnings/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/stocks/dividends/AAPL \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/dividends/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/dividends/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
| Parameter | Type | Description |
| symbol required | path | Stock 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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/analyst/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/analyst/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
| Parameter | Type | Description |
| symbol required | path | Stock 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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/stocks/options/AAPL",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/stocks/options/AAPL",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
| Parameter | Type | Description |
| pair required | path | 6-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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/forex/quote/EURUSD",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/forex/quote/EURUSD",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
curl https://thisapi-production-d755.up.railway.app/v1/forex/pairs \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/forex/pairs",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/forex/pairs",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
Response
{
"count": 15,
"pairs": ["EURUSD", "GBPUSD", "USDJPY", "USDCHF", "AUDUSD", "USDCAD", ...]
}
Market Movers
Get today's top gaining and losing stocks.
curl https://thisapi-production-d755.up.railway.app/v1/market/movers \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/market/movers",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/market/movers",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
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.
| Parameter | Type | Description |
| symbol required | path | Crypto 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"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/crypto/quote/BTC",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/crypto/quote/BTC",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
Response
{
"symbol": "BTC",
"name": "Bitcoin",
"price": 84250.10,
"change": 1240.50,
"change_pct": 1.49,
"volume": 28491023040,
"market_cap": 1662000000000
}
Create API Key
Generate a free API key with your email address.
curl -X POST https://thisapi-production-d755.up.railway.app/v1/keys/create \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
import requests
response = requests.post(
"https://thisapi-production-d755.up.railway.app/v1/keys/create",
json={"email": "you@example.com"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/keys/create",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email: "you@example.com" })
}
);
const data = await res.json();
console.log(data.key); // Save this — shown only once!
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.
curl https://thisapi-production-d755.up.railway.app/v1/keys/usage \
-H "X-API-Key: sk_your_key_here"
import requests
response = requests.get(
"https://thisapi-production-d755.up.railway.app/v1/keys/usage",
headers={"X-API-Key": "sk_your_key_here"}
)
print(response.json())
const res = await fetch(
"https://thisapi-production-d755.up.railway.app/v1/keys/usage",
{ headers: { "X-API-Key": "sk_your_key_here" } }
);
const data = await res.json();
console.log(data);
Response
{
"email": "you@example.com",
"tier": "free",
"daily_limit": 100,
"used_today": 12,
"remaining_today": 88
}