1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sourceMode": "inline",
10 "records": [{
11 "id": "demo-1",
12 "ownerUsername": "samplecreator",
13 "ownerFullName": "Sample Creator",
14 "caption": "Paid partnership with @northstar. Save 20% when you use code STAR20. Shop now: https://shop.example/products?aff=samplecreator",
15 "url": "https://www.instagram.com/p/DEMO123/",
16 "timestamp": "2026-08-20T10:00:00Z",
17 "likesCount": 4200,
18 "commentsCount": 180,
19 "isPaidPartnership": True,
20 "paidPartnershipPartners": ["northstar"],
21 }],
22}
23
24
25run = client.actor("scalogik/instagram-sponsorship-promo-intelligence").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32