1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "eventSlugs": [],
10 "tagSlug": "sports",
11 "marketTypes": [],
12 "activeOnly": True,
13 "openOnly": True,
14 "liveOnly": False,
15 "startDateMin": "",
16 "startDateMax": "",
17 "liquidityMin": 0,
18 "volumeMin": 0,
19 "pageSize": 100,
20 "maxResults": 500,
21 "includeOrderBooks": False,
22 "orderBookConcurrency": 4,
23 "includeRaw": False,
24 "requestDelaySecs": 0.1,
25}
26
27
28run = client.actor("barefoot_grade/polymarket-sports").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35