1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "id": "3991274049559765207",
11 "type": "Image",
12 "shortCode": "Ddj2pn1PqDX",
13 "caption": """Good night, everyone😴
14
15@astro_jessica snapped this photo of the United States at night on Sept. 8, 2026, with city lights looking toward New York City (at center).
16
17#NASA #SpaceStation #Earth""",
18 "hashtags": [
19 "NASA",
20 "SpaceStation",
21 "Earth",
22 ],
23 "url": "https://www.instagram.com/p/Ddj2pn1PqDX/",
24 "commentsCount": 625,
25 "likesCount": 171442,
26 "timestamp": "2026-09-21T18:56:33.000Z",
27 "ownerUsername": "nasa",
28 "ownerId": "528817151",
29 "videoViewCount": None,
30 "paidPartnership": False,
31 "_exampleProvenance": {
32 "sourceActorId": "shu8hvrXbJbY3Eb9W",
33 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
34 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
35 "curatedPublicSnapshot": True,
36 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
37 },
38 },
39 {
40 "id": "3987552875446548478",
41 "type": "Sidecar",
42 "shortCode": "DdWojaYFDf-",
43 "caption": """The boosters for Artemis III are almost stacked!
44
45These boosters will contribute over 75% of the Space Launch System’s total rocket thrust at launch, providing the power needed to propel the Artemis III crew on their mission in low Earth orbit.
46
47#NASA #ArtemisIII #WIPWednesday""",
48 "hashtags": [
49 "NASA",
50 "ArtemisIII",
51 "WIPWednesday",
52 ],
53 "url": "https://www.instagram.com/p/DdWojaYFDf-/",
54 "commentsCount": 651,
55 "likesCount": 184365,
56 "timestamp": "2026-09-16T15:42:47.000Z",
57 "ownerUsername": "nasa",
58 "ownerId": "528817151",
59 "videoViewCount": None,
60 "paidPartnership": False,
61 "_exampleProvenance": {
62 "sourceActorId": "shu8hvrXbJbY3Eb9W",
63 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
64 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
65 "curatedPublicSnapshot": True,
66 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
67 },
68 },
69 {
70 "id": "3988961919403244082",
71 "type": "Image",
72 "shortCode": "Ddbo7s0lzoy",
73 "caption": """No matter where you are, we all see the same Moon. 🌕
74
75Sept. 19 is International Observe the Moon Night, an annual celebration dedicated to our closest celestial neighbor.
76
77#Moon #Moongazing #ObserveTheMoon""",
78 "hashtags": [
79 "Moon",
80 "Moongazing",
81 "ObserveTheMoon",
82 ],
83 "url": "https://www.instagram.com/p/Ddbo7s0lzoy/",
84 "commentsCount": 1187,
85 "likesCount": 401824,
86 "timestamp": "2026-09-18T14:22:23.000Z",
87 "ownerUsername": "nasa",
88 "ownerId": "528817151",
89 "videoViewCount": None,
90 "paidPartnership": False,
91 "_exampleProvenance": {
92 "sourceActorId": "shu8hvrXbJbY3Eb9W",
93 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
94 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
95 "curatedPublicSnapshot": True,
96 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
97 },
98 },
99 {
100 "id": "3988274761411540133",
101 "type": "Sidecar",
102 "shortCode": "DdZMsPElzSl",
103 "caption": """The universe, but fashion
104
105Famous for its broad central bulge and dark outer dust ring, the Sombrero Galaxy sits nearly edge-on to Earth. Studying it may help us better understand how a galaxy's outer cloud of stars grows alongside its inner disk.
106
107#NASA #Galaxy #Space""",
108 "hashtags": [
109 "NASA",
110 "Galaxy",
111 "Space",
112 ],
113 "url": "https://www.instagram.com/p/DdZMsPElzSl/",
114 "commentsCount": 1064,
115 "likesCount": 462220,
116 "timestamp": "2026-09-17T15:37:16.000Z",
117 "ownerUsername": "nasa",
118 "ownerId": "528817151",
119 "videoViewCount": None,
120 "paidPartnership": False,
121 "_exampleProvenance": {
122 "sourceActorId": "shu8hvrXbJbY3Eb9W",
123 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
124 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
125 "curatedPublicSnapshot": True,
126 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
127 },
128 },
129 {
130 "id": "3986255392669277466",
131 "type": "Image",
132 "shortCode": "DdSBijYCZ0a",
133 "caption": """2 Fast 2 Furious 🏎️
134
135@NASAChandraXray captured two galaxies merging at a furious rate (in a cosmic sense). Not only do they look cool, they're also scientifically important: They can teach us how powerful galaxy collisions shaped the early universe.
136
137#NASA #Telescope #Galaxies #Family""",
138 "hashtags": [
139 "NASA",
140 "Telescope",
141 "Galaxies",
142 "Family",
143 ],
144 "url": "https://www.instagram.com/p/DdSBijYCZ0a/",
145 "commentsCount": 1091,
146 "likesCount": 448527,
147 "timestamp": "2026-09-14T20:45:06.000Z",
148 "ownerUsername": "nasa",
149 "ownerId": "528817151",
150 "videoViewCount": None,
151 "paidPartnership": False,
152 "_exampleProvenance": {
153 "sourceActorId": "shu8hvrXbJbY3Eb9W",
154 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
155 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
156 "curatedPublicSnapshot": True,
157 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
158 },
159 },
160 {
161 "id": "3983374110243288826",
162 "type": "Sidecar",
163 "shortCode": "DdHyaYAifb6",
164 "caption": """Cementing their names in history.
165
166The Artemis III crew is leaving their mark — literally. The astronauts recently signed their names on the hardware that will be inside their Orion spacecraft during their low Earth orbit mission, launching in 2027.
167
168Image descriptions:
169
1701. The Artemis III primary and back-up crew members pose for a photograph insi""",
171 "hashtags": [],
172 "url": "https://www.instagram.com/p/DdHyaYAifb6/",
173 "commentsCount": 626,
174 "likesCount": 110136,
175 "timestamp": "2026-09-10T21:20:24.000Z",
176 "ownerUsername": "nasa",
177 "ownerId": "528817151",
178 "videoViewCount": None,
179 "paidPartnership": False,
180 "_exampleProvenance": {
181 "sourceActorId": "shu8hvrXbJbY3Eb9W",
182 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
183 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
184 "curatedPublicSnapshot": True,
185 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities.",
186 },
187 },
188 ] }
189
190
191run = client.actor("zinin/instagram-campaign-performance-benchmark").call(run_input=run_input)
192
193
194print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
195for item in client.dataset(run.default_dataset_id).iterate_items():
196 print(item)
197
198