1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "discover-players",
10 "search": "Sinner",
11 "playerIds": ["S0AG"],
12 "matchRequests": [{
13 "matchId": "2026#540#MS001",
14 "requestedPlayerIds": ["S0AG"],
15 }],
16 "maxMatchesPerPlayer": 5,
17 "maxTotalMatches": 20,
18 "matchFormat": "all",
19 "includeStats": True,
20 "proxy": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["RESIDENTIAL"],
23 },
24}
25
26
27run = client.actor("parsebird/atp-match-stats-scraper").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34