1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "type": "url",
12 "data": "https://example.com",
13 "fileName": "homepage",
14 },
15 {
16 "type": "wifi",
17 "ssid": "Guest-WiFi",
18 "password": "welcome2024",
19 "security": "WPA",
20 },
21 {
22 "type": "vcard",
23 "name": "Jane Doe",
24 "phone": "+33612345678",
25 "email": "jane@example.com",
26 "organization": "Example Inc.",
27 },
28 {
29 "type": "ean13",
30 "data": "5901234123457",
31 },
32 {
33 "type": "code128",
34 "data": "SKU-000123",
35 },
36 {
37 "type": "datamatrix",
38 "data": "LOT 2026-10 / SN 4815162342",
39 },
40 ],
41 "format": "png",
42 "foregroundColor": "#000000",
43 "backgroundColor": "#ffffff",
44}
45
46
47run = client.actor("actose/qr-barcode-generator").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