Authentication
All public endpoints require no authentication. Private endpoints require a Bearer token.
Authorization: Bearer <your_api_key>
Endpoints
GET/api/v1/marketsPublic
List markets with filtering, sorting, and pagination
?category=Crypto&status=active&sort=volume&limit=50&offset=0
GET/api/v1/markets/:idPublic
Get single market with price history and outcomes
GET/api/v1/activityPublic
Get recent trading activity feed
?limit=20&market_id=optional
GET/api/v1/leaderboardPublic
Get top traders ranked by P&L
GET/api/v1/statsPublic
Get platform-wide statistics
GET/api/export-tradesAuth
Export trade history to CSV
?user_id=your_id
GET/api/ogPublic
Generate Open Graph image for sharing
?title=...&yes=50&category=Crypto
Example: Get All Markets
# Fetch all active crypto markets sorted by volume
curl https://probily.com/api/v1/markets?category=Crypto&sort=volume
// Response
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Will Bitcoin exceed $150K by Dec 2026?",
"yes_price": 0.42,
"no_price": 0.58,
"volume": 284000,
"category": "Crypto",
"resolution_rules": "Resolves based on CoinGecko..."
}
],
"count": 1,
"timestamp": "2026-03-11T..."
}