1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "id": "3991274049559765207",
14 "type": "Image",
15 "shortCode": "Ddj2pn1PqDX",
16 "caption": "Good night, everyone😴\n \n@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).\n \n#NASA #SpaceStation #Earth",
17 "hashtags": [
18 "NASA",
19 "SpaceStation",
20 "Earth"
21 ],
22 "url": "https://www.instagram.com/p/Ddj2pn1PqDX/",
23 "commentsCount": 625,
24 "likesCount": 171442,
25 "timestamp": "2026-09-21T18:56:33.000Z",
26 "ownerUsername": "nasa",
27 "ownerId": "528817151",
28 "videoViewCount": null,
29 "paidPartnership": false,
30 "_exampleProvenance": {
31 "sourceActorId": "shu8hvrXbJbY3Eb9W",
32 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
33 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
34 "curatedPublicSnapshot": true,
35 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
36 }
37 },
38 {
39 "id": "3987552875446548478",
40 "type": "Sidecar",
41 "shortCode": "DdWojaYFDf-",
42 "caption": "The boosters for Artemis III are almost stacked!\n \nThese 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.\n \n#NASA #ArtemisIII #WIPWednesday",
43 "hashtags": [
44 "NASA",
45 "ArtemisIII",
46 "WIPWednesday"
47 ],
48 "url": "https://www.instagram.com/p/DdWojaYFDf-/",
49 "commentsCount": 651,
50 "likesCount": 184365,
51 "timestamp": "2026-09-16T15:42:47.000Z",
52 "ownerUsername": "nasa",
53 "ownerId": "528817151",
54 "videoViewCount": null,
55 "paidPartnership": false,
56 "_exampleProvenance": {
57 "sourceActorId": "shu8hvrXbJbY3Eb9W",
58 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
59 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
60 "curatedPublicSnapshot": true,
61 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
62 }
63 },
64 {
65 "id": "3988961919403244082",
66 "type": "Image",
67 "shortCode": "Ddbo7s0lzoy",
68 "caption": "No matter where you are, we all see the same Moon. 🌕\n\nSept. 19 is International Observe the Moon Night, an annual celebration dedicated to our closest celestial neighbor.\n\n#Moon #Moongazing #ObserveTheMoon",
69 "hashtags": [
70 "Moon",
71 "Moongazing",
72 "ObserveTheMoon"
73 ],
74 "url": "https://www.instagram.com/p/Ddbo7s0lzoy/",
75 "commentsCount": 1187,
76 "likesCount": 401824,
77 "timestamp": "2026-09-18T14:22:23.000Z",
78 "ownerUsername": "nasa",
79 "ownerId": "528817151",
80 "videoViewCount": null,
81 "paidPartnership": false,
82 "_exampleProvenance": {
83 "sourceActorId": "shu8hvrXbJbY3Eb9W",
84 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
85 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
86 "curatedPublicSnapshot": true,
87 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
88 }
89 },
90 {
91 "id": "3988274761411540133",
92 "type": "Sidecar",
93 "shortCode": "DdZMsPElzSl",
94 "caption": "The universe, but fashion\n\nFamous 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.\n\n#NASA #Galaxy #Space",
95 "hashtags": [
96 "NASA",
97 "Galaxy",
98 "Space"
99 ],
100 "url": "https://www.instagram.com/p/DdZMsPElzSl/",
101 "commentsCount": 1064,
102 "likesCount": 462220,
103 "timestamp": "2026-09-17T15:37:16.000Z",
104 "ownerUsername": "nasa",
105 "ownerId": "528817151",
106 "videoViewCount": null,
107 "paidPartnership": false,
108 "_exampleProvenance": {
109 "sourceActorId": "shu8hvrXbJbY3Eb9W",
110 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
111 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
112 "curatedPublicSnapshot": true,
113 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
114 }
115 },
116 {
117 "id": "3986255392669277466",
118 "type": "Image",
119 "shortCode": "DdSBijYCZ0a",
120 "caption": "2 Fast 2 Furious 🏎️\n\n@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.\n\n#NASA #Telescope #Galaxies #Family",
121 "hashtags": [
122 "NASA",
123 "Telescope",
124 "Galaxies",
125 "Family"
126 ],
127 "url": "https://www.instagram.com/p/DdSBijYCZ0a/",
128 "commentsCount": 1091,
129 "likesCount": 448527,
130 "timestamp": "2026-09-14T20:45:06.000Z",
131 "ownerUsername": "nasa",
132 "ownerId": "528817151",
133 "videoViewCount": null,
134 "paidPartnership": false,
135 "_exampleProvenance": {
136 "sourceActorId": "shu8hvrXbJbY3Eb9W",
137 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
138 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
139 "curatedPublicSnapshot": true,
140 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
141 }
142 },
143 {
144 "id": "3983374110243288826",
145 "type": "Sidecar",
146 "shortCode": "DdHyaYAifb6",
147 "caption": "Cementing their names in history.\n\nThe 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.\n\nImage descriptions:\n\n1. The Artemis III primary and back-up crew members pose for a photograph insi",
148 "hashtags": [],
149 "url": "https://www.instagram.com/p/DdHyaYAifb6/",
150 "commentsCount": 626,
151 "likesCount": 110136,
152 "timestamp": "2026-09-10T21:20:24.000Z",
153 "ownerUsername": "nasa",
154 "ownerId": "528817151",
155 "videoViewCount": null,
156 "paidPartnership": false,
157 "_exampleProvenance": {
158 "sourceActorId": "shu8hvrXbJbY3Eb9W",
159 "sourceRunId": "ihXlFVzJhgdIQrjRJ",
160 "sourceDatasetId": "yh6mJRFTATd9ABSJR",
161 "curatedPublicSnapshot": true,
162 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
163 }
164 }
165 ]
166};
167
168
169const run = await client.actor("zinin/instagram-campaign-performance-benchmark").call(input);
170
171
172console.log('Results from dataset');
173console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
174const { items } = await client.dataset(run.defaultDatasetId).listItems();
175items.forEach((item) => {
176 console.dir(item);
177});
178
179