1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "products": [
9 {
10 "id": "EXAMPLE-CHARGER",
11 "title": "Example 65W USB-C charger",
12 "model": "C65",
13 "images": ["https://example.com/charger.jpg"],
14 "market": "DE",
15 "manufacturer": {
16 "name": "Example Tech Co., Ltd.",
17 "address": "Bao'an District, Shenzhen 518000, China",
18 "email": "support@example.com",
19 },
20 "warnings": "Warning: indoor use only. Keep away from water.",
21 },
22 {
23 "id": "EXAMPLE-MUG",
24 "title": "Example ceramic mug 350 ml",
25 "ean": "4006381333931",
26 "images": ["https://example.com/mug.jpg"],
27 "manufacturer": {
28 "name": "Example Keramik GmbH",
29 "address": "Musterstraße 12, 10115 Berlin, Germany",
30 "email": "info@example.de",
31 },
32 },
33 {
34 "id": "EXAMPLE-BLOCKS",
35 "title": "Example wooden building blocks toy",
36 "sku": "BLK-50",
37 "market": "FR",
38 "manufacturer": "Example Toys Ltd, 1 High Street, London SW1A 1AA, United Kingdom, www.example.co.uk",
39 },
40 ] }
41
42
43run = client.actor("ultimatemc/gpsr-listing-checker").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50