API Overview
High-level overview of ScorePlay's API endpoints
ScorePlay provides REST API endpoints for accessing platform data. This is a high-level overview - full API reference coming soon.
Base URL
https://scoreplay.xyz/api
Authentication
Most user-specific endpoints expect a JWT in cookies after you sign in (e.g. Google or wallet and sign message, depending on path). Treat unauthenticated responses as normal for public reads where applicable.
Main Endpoints
Events
GET /api/available-events- List available matches/eventsGET /api/events/[id]- Get event detailsGET /api/events/[id]/odds- Get odds data for an event
Predictions
GET /api/user/predictions- Get user's prediction historyPOST /api/pred2earn/bet-placed- Submit V1 bet placementPOST /api/pred2earn/bet-placed-v2- Submit V2 bet placementPOST /api/pred2earn/claim-payout- Claim winnings from a bet
Leaderboard
GET /api/leaderboard- Get leaderboard rankingsGET /api/leaderboard/user-row- Get specific user's rankGET /api/leaderboard/top-points- Get top players by points
Score Champions (competition)
GET /api/competition/meta- Week rail, countdown, champions enabled flagsGET /api/competition/leaderboard?week=&type=qualification|champions&offset=- Competition laddersGET /api/competition/me- Authenticated user’s Score Qualification / Score Champions statusGET /api/competition/prize-pool-estimate?week=(optionalweek) — estimated Score Champions USDC prize from on-chain house fees (same number as the leaderboard card’s week Prize): for competition period W (default: current period index), fees are summed over period W−1 ([start, min(end, now))in UTC). W = 0 returns zero protocol fees (no prior period). Response includesestimatedUsdc,selectedWeek,fundingWeekIndex,feeWindowStart/feeWindowEnd, andsources(protocolFeesWeek,protocolIncentiveUsdc,entriesplaceholder). In-app Prize sources on the card reflects this breakdown.POST /api/competition/finalize?week=N- Internal finalize (requiresx-competition-finalize-secret)
See Score Champions.
User
GET /api/user/profile-stats- Get user statisticsGET /api/referrals- Get referral statsPOST /api/referrals- Redeem referral rewards
Daily Rewards
GET /api/daily-raffle- Check daily raffle eligibilityGET /api/reclaim/info- Get daily claim informationPOST /api/reclaim- Claim daily free credits
Rate Limiting
API endpoints are rate-limited. Check response headers for rate limit information.
Response Format
Most endpoints return JSON:
{
"success": true,
"data": { ... }
}
Error responses:
{
"error": "Error message",
"status": 400
}
Full Documentation
Full API reference documentation with detailed request/response schemas coming soon.
For integration questions, contact: [email protected]