Code Examples
Copy-paste examples for common use cases with error handling.
Basic Request
bash
curl https://api.pickcrunch.com/v1/stats/nfl/atsWith Filters
bash
# ATS records for last 10 games
curl "https://api.pickcrunch.com/v1/stats/nba/ats?time_filter=last10"
# Totals for a specific season
curl "https://api.pickcrunch.com/v1/stats/mlb/totals?season=2024"
# Trends with splits, home games only
curl "https://api.pickcrunch.com/v1/stats/nfl/trends?sub=splits&scope=home"
# Available seasons
curl https://api.pickcrunch.com/v1/stats/seasons/nflTips
•
Responses are cached for 5 minutes server-side. Polling more frequently than that returns the same data.
•
The API uses DraftKings closing lines as its data source.
•
Seasons are returned most recent first. The first item in the array is always the current or latest season.
•
Trends sub-tabs (hot-cold, extended, splits) each return different response shapes.