1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "listings": [
9 {
10 "product_id": "EXAMPLE-1",
11 "brand": "Example Beauty",
12 "title": "Lip Oil Dupe for Dior!! Viral TikTok Made Me Buy It Lip Gloss, Best Seller",
13 "description": "Before and after: plumper lips overnight, guaranteed results. Order on our website www.examplebeauty.com for 20% off.",
14 },
15 {
16 "product_id": "EXAMPLE-2",
17 "brand": "Example Basics",
18 "title": "Example Basics Men's Cotton Crew Neck T-Shirt, Black, Large",
19 "description": "Made from 100% combed ring-spun cotton jersey, this crew neck tee has a relaxed fit that sits just below the hip. Taped shoulder seams and a double-stitched hem help it keep its shape wash after wash. The ribbed collar lies flat and resists stretching. Fabric weight is 5.3 oz per square yard, heavy enough to be opaque but light enough for warm days. Size Large measures 22 in across the chest and 29 in from shoulder to hem. Machine wash cold with like colors and tumble dry low; expect less than 3% shrinkage. Tagless neck label for comfort.",
20 },
21 ] }
22
23
24run = client.actor("ultimatemc/tiktok-shop-listing-policy-checker").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31