1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feed": [{
10 "sku": "A",
11 "price": "100",
12 "currency": "GBP",
13 "sale_price": "80",
14 "sale_start": "2026-10-06T06:00:00+00:00",
15 "sale_end": "2026-10-06T07:00:00+00:00",
16 "price_basis": "tax_inclusive",
17 "url": "https://shop.example/product/a",
18 "html": "<script type=\"application/ld+json\">{\"@type\": \"Product\", \"sku\": \"A\", \"offers\": {\"@type\": \"Offer\", \"price\": \"80\", \"priceCurrency\": \"GBP\"}}</script>",
19 "evidence_label": "synthetic",
20 }],
21 "baseline": [{
22 "sku": "A",
23 "url": "https://shop.example/product/a",
24 "checked_at": "2026-10-06T06:59:59Z",
25 "status": "match",
26 "reason": "Declared price terms match",
27 "pointer": "0:/offers",
28 "expected": "80",
29 "observed": "80",
30 "currency": "GBP",
31 "price_basis": "tax_inclusive",
32 "scope_hash": "33a739a82f002a69e1981e15dc9b7c3db68f71019343412c0753c3ce4cf9e1b6",
33 "evidence_label": "synthetic",
34 "captured_at": None,
35 "html_sha256": "2f629aa705be8fca4c85dba1f51fa9706e050367e5cc212a952d42999abd6d1b",
36 "evaluation_mode": "simulation",
37 "basis_evidence": "caller-declared unless explicit JSON-LD tax flag; not independently verified",
38 "action": "Declared static fields agree; visible price, checkout and Merchant Center approval untested.",
39 "classification": "clear",
40 }],
41 "checkedAt": "2026-10-06T07:00:00Z",
42 "fetchPublicUrls": False,
43 "mode": "simulation",
44}
45
46
47run = client.actor("wwhynot/merchant-sale-transition-audit").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54