1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "listings": [
9 {
10 "listingId": "demo-1",
11 "source": "demo-market",
12 "title": "2024 KTM 300 XC-W",
13 "make": "KTM",
14 "model": "300 XC-W",
15 "year": 2024,
16 "price": 8799,
17 "hours": 42,
18 "sellerType": "dealer",
19 "sellerName": "Example Motorsports",
20 "location": "Tacoma, WA",
21 },
22 {
23 "listingId": "demo-2",
24 "source": "demo-market",
25 "title": "2023 KTM 300 XCW",
26 "make": "ktm",
27 "model": "300XCW",
28 "year": 2023,
29 "price": 9250,
30 "hours": 60,
31 "sellerType": "private",
32 "location": "Seattle, WA",
33 },
34 {
35 "listingId": "demo-3",
36 "source": "demo-market",
37 "title": "2024 Husqvarna TE 300",
38 "make": "Husqvarna",
39 "model": "TE 300",
40 "year": 2024,
41 "price": 9600,
42 "hours": 20,
43 "sellerType": "dealer",
44 "sellerName": "Demo Powersports",
45 "location": "Portland, OR",
46 },
47 ] }
48
49
50run = client.actor("repairiq/used-powersports-market-monitor").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57