1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "leagues": [
10 "mlb",
11 "nba",
12 "nfl",
13 "nhl",
14 ],
15 "dates": [
16 "2026-07-06",
17 "2026-07-07",
18 ],
19 "maxItems": 250,
20 "bookIds": [
21 "15",
22 "30",
23 "76",
24 "75",
25 "123",
26 ],
27 "period": "game",
28}
29
30
31run = client.actor("automation-lab/action-network-sports-odds-line-movement-scraper").call(run_input=run_input)
32
33
34print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38