Getting Started with StockAPI
Get up and running with StockAPI in just a few minutes.
🚀 Quick Start​
1. Create Account​
- Visit dashboard.stockapis.com
- Sign up for a free account
- Verify your email
2. Get API Key​
- Log into your dashboard
- Go to API Keys section
- Generate a new API key
- Save your API key securely
3. Make Your First Call​
// JavaScript
// const response = await fetch("https://api.stockapis.com/v1/market/price", {
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
symbol: "BTC",
platform: "binance",
}),
});
// const data = await response.json();
// console.log(data);
# Python
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'symbol': 'BTC',
'platform': 'binance'
}
response = requests.post(
'https://api.stockapis.com/v1/market/price',
headers=headers,
json=data
)
print(response.json())
📊 Available Data​
Cryptocurrency Data​
- Real-time prices from 370+ exchanges
- Historical OHLCV data
- Market cap and volume information
- Order book data
Stock Market Data​
- Live stock quotes
- Historical price data
- Fundamental data (earnings, P/E ratios)
- Technical indicators
News & Sentiment​
- Financial news aggregation
- Social media sentiment
- Market analysis reports
🔧 SDKs & Libraries​
Official SDKs for popular languages:
- JavaScript/Node.js -
npm install stockapi
- Python -
pip install stockapi
- Java - Available on Maven Central
- C# - Available on NuGet
📈 Next Steps​
- Explore Documentation - Check out our API reference
- Try Examples - See code examples
🆘 Need Help?​
- Documentation - Browse our guides
- API Reference - Detailed endpoint docs
- Community - Join our Discord
- Support - Contact our team
Ready to start? Get your API key and begin building with real-time financial data!