1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "items",
10 "items": [
11 {
12 "publicationName": "AI Operator Weekly",
13 "platform": "newsletter",
14 "sourceUrl": "https://aioperator.example/p/ops-pilot-sponsored?utm_source=sample",
15 "title": "This week in practical AI automation",
16 "excerpt": "Today's sponsor is OpsPilot. Use coupon BUILD20 for founder-friendly workflow automation.",
17 "publishDate": "2026-07-02",
18 "category": "AI startups",
19 "tags": [
20 "SaaS founders",
21 "automation",
22 ],
23 "audienceHint": "B2B SaaS founders and AI builders",
24 "sponsorMentions": "OpsPilot",
25 "offerText": "OpsPilot helps small teams automate handoffs without hiring a full operations squad.",
26 },
27 {
28 "showName": "Creator Revenue Lab",
29 "platform": "podcast",
30 "episodeUrl": "https://podcasts.example/creator-revenue-lab/88?ref=sample",
31 "title": "How niche creators package premium sponsorships",
32 "description": "This episode includes a sponsor read from MediaKit Pro and a promo code for new publisher accounts.",
33 "postedAt": "2026-06-26T09:00:00.000Z",
34 "category": "creator monetization",
35 "tags": [
36 "newsletter growth",
37 "sponsorships",
38 ],
39 "audienceHint": "independent publishers and creator operators",
40 "sponsorMentions": ["MediaKit Pro"],
41 },
42 {
43 "channelName": "Weekend Notes",
44 "platform": "manual",
45 "title": "A few thoughts from the week",
46 "text": "A casual personal update about writing routines, books, and local events.",
47 "postedAt": "2026-06-30",
48 "category": "personal blog",
49 },
50 ],
51 "brandProfile": "AI workflow automation platform for B2B SaaS and RevOps teams",
52 "targetAudience": [
53 "SaaS founders",
54 "RevOps",
55 "AI builders",
56 ],
57 "targetCategories": [
58 "AI",
59 "SaaS",
60 "operations",
61 ],
62 "excludedNiches": [
63 "gambling",
64 "adult",
65 ],
66 "competitors": [
67 "WorkflowPilot",
68 "OpsStack",
69 ],
70 "scrapedAt": "2026-07-05T12:00:00.000Z",
71}
72
73
74run = client.actor("rotvuvo/newsletter-podcast-sponsor-lead-scorer").call(run_input=run_input)
75
76
77print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
78for item in client.dataset(run["defaultDatasetId"]).iterate_items():
79 print(item)
80
81