Skip to main content

Getting Started with StockAPI

Get up and running with StockAPI in just a few minutes.

🚀 Quick Start​

1. Create Account​

  1. Visit dashboard.stockapis.com
  2. Sign up for a free account
  3. Verify your email

2. Get API Key​

  1. Log into your dashboard
  2. Go to API Keys section
  3. Generate a new API key
  4. 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​

  1. Explore Documentation - Check out our API reference
  2. 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!