Public API

RESTful API for Prediction Market Data

Getting Started

Our public API provides free access to anonymized prediction market data. No authentication required for read-only endpoints.

Rate Limits

1000 requests/hour

Data Privacy

Fully anonymized data

Real-time

5-minute cache

Base URL
https://insights-ai.info
GET

Get Markets

Retrieve a list of prediction markets with filtering and pagination

Endpoint
/api/apiGetMarkets

Parameters

category
string

Filter by category (crypto, tech, finance, politics, climate, sports)

status
string

Filter by status (active, closed, resolved). Default: active

limit
number

Number of results per page. Default: 50, Max: 100

offset
number

Pagination offset. Default: 0

sortBy
string

Sort field. Default: created_date

Example Request

cURL
curl "https://insights-ai.info/api/apiGetMarkets?category=crypto&limit=10"

Example Response

{
  "success": true,
  "data": [
    {
      "id": "string",
      "title": "string",
      "category": "string",
      "probability": 75,
      "volume_24h": 5000,
      "liquidity": 10000,
      "status": "active",
      "end_date": "2026-12-31T23:59:59Z"
    }
  ],
  "pagination": {
    "total": 100,
    "limit": 10,
    "offset": 0,
    "hasMore": true
  }
}
GET

Get Market Details

Get detailed information about a specific market including price history

Endpoint
/api/apiGetMarketDetail

Parameters

id
stringrequired

Market ID

Example Request

cURL
curl "https://insights-ai.info/api/apiGetMarketDetail?id=MARKET_ID"

Example Response

{
  "success": true,
  "data": {
    "id": "string",
    "title": "string",
    "description": "string",
    "probability": 75,
    "volume_24h": 5000,
    "total_trades": 250,
    "unique_traders": 120,
    "price_history": [
      {
        "timestamp": "2026-01-31T10:00:00Z",
        "probability": 72,
        "volume": 1000
      }
    ]
  }
}
GET

Get Platform Statistics

Get aggregated platform statistics and top movers

Endpoint
/api/apiGetMarketStats

Example Request

cURL
curl "https://insights-ai.info/api/apiGetMarketStats"

Example Response

{
  "success": true,
  "data": {
    "platform": {
      "total_markets": 150,
      "total_volume_24h": 50000,
      "total_liquidity": 200000,
      "active_traders": 750
    },
    "categories": {
      "crypto": {
        "count": 30,
        "volume": 15000,
        "avgProbability": 65
      }
    },
    "top_movers": [
      {
        "id": "string",
        "title": "string",
        "probability": 75,
        "change_24h": 5.2
      }
    ]
  }
}
GET

Get Market Sentiment

Get sentiment analysis for markets (overall, by category, or specific market)

Endpoint
/api/apiGetMarketSentiment

Parameters

id
string

Specific market ID

category
string

Category to analyze

Example Request

cURL
curl "https://insights-ai.info/api/apiGetMarketSentiment?category=crypto"

Example Response

{
  "success": true,
  "data": {
    "overall_sentiment": "bullish",
    "sentiment_score": 68,
    "bullish_markets": 25,
    "bearish_markets": 8,
    "neutral_markets": 12,
    "confidence": 75
  }
}

Need Help?

For questions, feature requests, or bug reports, please reach out to our team.