1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "providedRecords": [{
10 "title": "Owned demonstration article about product research",
11 "url": "https://example.com/owned-article/1",
12 "source": "curatedRss",
13 "summary": "This customer-authored example illustrates a supplied article record, not a live trend score.",
14 "itemType": "content_opportunity",
15 "canonicalUrl": "https://example.com/owned-article/1",
16 "sourceName": "Owned demonstration feed",
17 "discoveredAt": "2026-10-01T00:00:00Z",
18 "trendScore": 0,
19 "scoreVersion": "v1",
20 "scoreComponents": {
21 "recency": 0,
22 "engagementPercentile": None,
23 "engagementAvailable": False,
24 "engagementValue": None,
25 },
26 "matchedQuery": "owned demonstration",
27 "dedupeKey": "owned-demonstration-content-1",
28 "contributingSources": ["curatedRss"],
29 }],
30 "sources": ["googleNews"],
31}
32
33
34run = client.actor("thescrapelab/content-opportunity-intelligence").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41