1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "shortCode": "demo1",
12 "url": "https://example.com/demo/demo1",
13 "type": "Image",
14 "ownerUsername": "demo_plant_shop",
15 "caption": "Meet Fern, our easiest plant yet 🌿 Thrives on a shelf, forgives a missed watering. Tap the link in bio to bring one home. #houseplants #easyplants",
16 "hashtags": [
17 "houseplants",
18 "easyplants",
19 ],
20 "likesCount": 420,
21 "commentsCount": 18,
22 "timestamp": "2026-10-14T17:05:00.000Z",
23 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post1.jpg?signature=Lpk5LeJBzYKygxxyf367",
24 },
25 {
26 "shortCode": "demo2",
27 "url": "https://example.com/demo/demo2",
28 "type": "Sidecar",
29 "ownerUsername": "demo_plant_shop",
30 "caption": "Dark flat? These 3 plants don't mind. Save this for your next shop trip 👇 #houseplants #lowlightplants #plantcare",
31 "hashtags": [
32 "houseplants",
33 "lowlightplants",
34 "plantcare",
35 ],
36 "likesCount": 1310,
37 "commentsCount": 64,
38 "timestamp": "2026-10-17T18:30:00.000Z",
39 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post2.jpg?signature=hjx7NHRmE7ZtAb5BMtqM",
40 },
41 {
42 "shortCode": "demo3",
43 "url": "https://example.com/demo/demo3",
44 "type": "Image",
45 "ownerUsername": "demo_plant_shop",
46 "caption": "New in: the self-watering pot. Fill it once, forget it for two weeks. #easyplants #plantcare",
47 "hashtags": [
48 "easyplants",
49 "plantcare",
50 ],
51 "likesCount": 510,
52 "commentsCount": 22,
53 "timestamp": "2026-10-21T12:10:00.000Z",
54 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post3.jpg?signature=18TTpy2MUWKZUJFQlW5Yq",
55 },
56 {
57 "shortCode": "demo4",
58 "url": "https://example.com/demo/demo4",
59 "type": "Sidecar",
60 "ownerUsername": "demo_leafy_corner",
61 "caption": "Why do my leaves turn yellow? Four reasons and a quick fix for each. Which one is yours? Tell us below. #plantcare #plantproblems",
62 "hashtags": [
63 "plantcare",
64 "plantproblems",
65 ],
66 "likesCount": 2240,
67 "commentsCount": 190,
68 "timestamp": "2026-10-15T18:00:00.000Z",
69 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post2.jpg?signature=hjx7NHRmE7ZtAb5BMtqM",
70 },
71 {
72 "shortCode": "demo5",
73 "url": "https://example.com/demo/demo5",
74 "type": "Image",
75 "ownerUsername": "demo_leafy_corner",
76 "caption": "Weekend drop: hand-glazed pots in three colours. Shop now while stock lasts. #ceramics #plantpots",
77 "hashtags": [
78 "ceramics",
79 "plantpots",
80 ],
81 "likesCount": 880,
82 "commentsCount": 21,
83 "timestamp": "2026-10-18T09:00:00.000Z",
84 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post3.jpg?signature=18TTpy2MUWKZUJFQlW5Yq",
85 },
86 {
87 "shortCode": "demo6",
88 "url": "https://example.com/demo/demo6",
89 "type": "Image",
90 "ownerUsername": "demo_leafy_corner",
91 "caption": "Our studio this morning. Coffee, soil and a lot of repotting. #behindthescenes #plantpots",
92 "hashtags": [
93 "behindthescenes",
94 "plantpots",
95 ],
96 "likesCount": 960,
97 "commentsCount": 30,
98 "timestamp": "2026-10-22T08:45:00.000Z",
99 "displayUrl": "https://api.apify.com/v2/key-value-stores/5XtbUYaOtYXHaEUdK/records/post1.jpg?signature=Lpk5LeJBzYKygxxyf367",
100 },
101 ],
102 "ownAccount": "demo_plant_shop",
103 "brandBrief": "Leafline is a small online shop for easy-care houseplants and pots, shipping across the EU. Audience: renters aged 22-35 in small, dark flats. Tone: warm, practical, no plant jargon. Goal: followers and visits to the shop. Avoid: fear tactics, discount spam.",
104}
105
106
107run = client.actor("seasons-ai/instagram-brand-audit").call(run_input=run_input)
108
109
110print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
111for item in client.dataset(run.default_dataset_id).iterate_items():
112 print(item)
113
114