Skip to content

Bulk Exports

For datasets larger than a single paginated response, use async export jobs. These run in the background and produce downloadable CSV files.

  1. Submit an export job

    Terminal window
    curl -X POST https://nbaproplab.com/api/v1/data/exports \
    -H "X-API-Key: $NBAV3_DATA_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
    "type": "picks",
    "format": "csv",
    "filters": {
    "from": "2026-01-01",
    "to": "2026-05-20",
    "rating": "Premium"
    }
    }'

    Response:

    {
    "id": 42,
    "status": "queued",
    "createdAt": "2026-05-20T15:00:00Z"
    }
  2. Poll for completion

    Terminal window
    curl -H "X-API-Key: $NBAV3_DATA_TOKEN" \
    https://nbaproplab.com/api/v1/data/exports/42
    {
    "id": 42,
    "status": "completed",
    "rowCount": 1847,
    "artifactPath": "/api/v1/data/exports/42/download",
    "expiresAt": "2026-05-27T15:00:00Z"
    }
  3. Download the file

    Terminal window
    curl -H "X-API-Key: $NBAV3_DATA_TOKEN" \
    -o picks-export.csv \
    https://nbaproplab.com/api/v1/data/exports/42/download
TypeDescription
picksScored picks with all fields, block scores, settlement
settled_picksSettled picks only (hit/miss/push/void)
line_movementsDetected line changes (≥ 0.75pt delta)
player_game_logsPer-game stat lines by player
track_recordDaily performance metrics
backtest_dailyDay-by-day backtest results
market_capabilitiesAvailable markets and supported stat types
StatusMeaning
queuedJob is waiting to be processed
runningExport is in progress
completedFile is ready for download
failedExport failed (check errorMessage)
  • Export files expire after 7 days
  • Maximum 10 concurrent export jobs per user
  • Maximum 100,000 rows per export
Terminal window
# List your export jobs
curl -H "X-API-Key: $NBAV3_DATA_TOKEN" \
https://nbaproplab.com/api/v1/data/exports