API Reference
Data Endpoints
Real-time data from various sources including crypto, weather, stocks, and news.
Crypto Prices
GET/api/data/crypto
$0.020
per request
Real-time cryptocurrency prices from CoinGecko
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Crypto symbol (BTC, ETH, SOL, etc.) |
Request
GET /api/data/crypto?symbol=SOLResponse
{
"success": true,
"data": {
"symbol": "SOL",
"price": 125.43,
"change24h": "+5.67%",
"volume24h": 1500000000,
"marketCap": 52000000000
}
}Weather Data
GET/api/data/weather
$0.010
per request
Current weather conditions for any city
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| city | string | Yes | City name (London, Tokyo, etc.) |
Request
GET /api/data/weather?city=IstanbulResponse
{
"success": true,
"data": {
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"current": {
"temperature": {
"celsius": 18,
"fahrenheit": 64
},
"humidity": 65,
"description": "Partly cloudy"
}
}
}Stock Prices
GET/api/data/stock
$0.020
per request
Real-time stock market data
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock ticker (AAPL, GOOGL, TSLA) |
Request
GET /api/data/stock?symbol=AAPLResponse
{
"success": true,
"data": {
"symbol": "AAPL",
"price": 178.5,
"change": "+2.35",
"changePercent": "+1.33%",
"volume": 45000000
}
}News Feed
GET/api/data/news
$0.025
per request
Latest news articles by category or keyword
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| category | string | No | Category: tech, business, crypto, etc. |
| query | string | No | Search keyword |
| limit | number | No | Number of articles (default: 10) |
Request
GET /api/data/news?category=crypto&limit=5Response
{
"success": true,
"data": {
"articles": [
{
"title": "Bitcoin Reaches New High",
"source": "CryptoNews",
"url": "https://...",
"publishedAt": "2024-01-15T10:30:00Z"
}
],
"total": 5
}
}