1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "ig1",
12 "username": "creator_alpha",
13 "followersCount": 182000,
14 "followsCount": 610,
15 "postsCount": 740,
16 "biography": "fitness nutrition running coach",
17 "avgLikes": 9200,
18 "avgComments": 340,
19 "verified": True,
20 },
21 {
22 "id": "ig2",
23 "username": "creator_beta",
24 "followersCount": 48000,
25 "followsCount": 2200,
26 "postsCount": 410,
27 "biography": "lifestyle travel deals",
28 "avgLikes": 900,
29 "avgComments": 35,
30 "verified": False,
31 },
32 ],
33 "previousItems": [{
34 "id": "ig1",
35 "username": "creator_alpha",
36 "followersCount": 165000,
37 "followsCount": 600,
38 "postsCount": 710,
39 "biography": "fitness and running",
40 "avgLikes": 7600,
41 "avgComments": 300,
42 "verified": True,
43 }],
44}
45
46
47run = client.actor("quanmatrix/instagram-creator-brand-fit-intelligence").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