1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "schemaVersion": "1.0",
10 "requestId": "offer-normalize-20260804-001",
11 "rows": [{
12 "entity": {
13 "entityId": "brand:demo-outfitters",
14 "brandName": "Demo Outfitters",
15 "legalName": None,
16 "domain": "demo.example",
17 "ticker": None,
18 "aliases": [],
19 "country": "US",
20 "sourceEntityIds": ["prefill:demo-outfitters"],
21 },
22 "evidence": {
23 "evidenceType": "landing_page",
24 "sourceName": "demo_fixture",
25 "sourceRecordId": "offer-001",
26 "sourceUrl": "https://demo.example/offers/spring",
27 "observedAt": "2026-08-04T08:00:00Z",
28 "rawTitle": "Spring offer",
29 "rawTermsText": "20% off orders $50+ with code SPRING20. Ends 2026-09-30.",
30 "terms": {
31 "offerKind": "percent_off",
32 "percentOff": 20,
33 "minPurchaseAmount": {
34 "value": 50,
35 "currency": "USD",
36 },
37 "couponCode": "SPRING20",
38 "endAt": "2026-09-30T23:59:59Z",
39 },
40 "entityAttribution": {
41 "status": "verified_by_source",
42 "proofType": "first_party_domain",
43 "proofValue": "demo.example",
44 "sourceEntityId": "prefill:demo-outfitters",
45 "proofUrl": "https://demo.example/",
46 "proofDomain": "demo.example",
47 "merchantId": None,
48 "adAccountId": None,
49 "officialSourceId": None,
50 },
51 "additionalUrls": [],
52 },
53 }],
54 "options": {
55 "labels": "off",
56 "maxItems": 100,
57 },
58}
59
60
61run = client.actor("zinin/us-brand-offer-evidence-normalizer").call(run_input=run_input)
62
63
64print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
65for item in client.dataset(run["defaultDatasetId"]).iterate_items():
66 print(item)
67
68