1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "prompt": "Analyze the posts of the @openai and @googledeepmind and summarize me current trends in the AI.",
10 "modelName": "gpt-4o-mini",
11 "mcpUrl": "https://actors-mcp-server.apify.actor",
12 "actors": ["clockworks/free-tiktok-scraper"],
13}
14
15
16run = client.actor("jakub.kopecky/actor-mastra-mcp-agent").call(run_input=run_input)
17
18
19print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
20for item in client.dataset(run["defaultDatasetId"]).iterate_items():
21 print(item)
22
23