1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "offers": [
10 {
11 "asin": "B000000001",
12 "seller": "Seller Alpha",
13 "price": 24.99,
14 "currency": "USD",
15 "collectedAt": "2026-11-02T09:30:00Z",
16 "marketplace": "amazon.com",
17 "condition": "new",
18 },
19 {
20 "asin": "B000000001",
21 "seller": "Seller Beta",
22 "price": "23.50",
23 "currency": "USD",
24 "collectedAt": "2026-10-27T08:00:00Z",
25 "marketplace": "amazon.com",
26 "condition": "new",
27 },
28 {
29 "asin": "B000000001",
30 "seller": "Seller Gamma",
31 "price": 22.1,
32 "currency": "EUR",
33 "collectedAt": "2026-11-02T10:15:00Z",
34 "marketplace": "amazon.com",
35 "condition": "new",
36 },
37 {
38 "asin": "B000000002",
39 "seller": "Seller Alpha",
40 "price": "$18.00",
41 "currency": "$",
42 "collectedAt": "2026-11-02T11:00:00",
43 "marketplace": "amazon.com",
44 "condition": "new",
45 },
46 {
47 "asin": "B000000002",
48 "price": 17.25,
49 "currency": "USD",
50 "collectedAt": "2026-11-02T11:20:00Z",
51 "marketplace": "amazon.com",
52 "condition": "new",
53 },
54 {
55 "asin": "B000000002",
56 "seller": "Seller Delta",
57 "price": 17.9,
58 "currency": "USD",
59 "collectedAt": "2026-11-02T11:40:00Z",
60 "marketplace": "amazon.com",
61 "condition": "new",
62 },
63 ],
64 "referenceTime": "2026-11-02T12:00:00Z",
65 "expectedCurrency": "USD",
66}
67
68
69run = client.actor("practical_ai_lab_jp/pal-amazon-offer-data-freshness-audit").call(run_input=run_input)
70
71
72print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
73for item in client.dataset(run.default_dataset_id).iterate_items():
74 print(item)
75
76