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

NameTypeRequiredDescription
symbolstringYesCrypto symbol (BTC, ETH, SOL, etc.)

Request

GET /api/data/crypto?symbol=SOL

Response

{
  "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

NameTypeRequiredDescription
citystringYesCity name (London, Tokyo, etc.)

Request

GET /api/data/weather?city=Istanbul

Response

{
  "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

NameTypeRequiredDescription
symbolstringYesStock ticker (AAPL, GOOGL, TSLA)

Request

GET /api/data/stock?symbol=AAPL

Response

{
  "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

NameTypeRequiredDescription
categorystringNoCategory: tech, business, crypto, etc.
querystringNoSearch keyword
limitnumberNoNumber of articles (default: 10)

Request

GET /api/data/news?category=crypto&limit=5

Response

{
  "success": true,
  "data": {
    "articles": [
      {
        "title": "Bitcoin Reaches New High",
        "source": "CryptoNews",
        "url": "https://...",
        "publishedAt": "2024-01-15T10:30:00Z"
      }
    ],
    "total": 5
  }
}