1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "single",
10 "tool": "fetch_web",
11 "fetchUrl": "https://example.com",
12 "classifyLabels": [
13 "positive",
14 "negative",
15 "neutral",
16 ],
17 "extractStructuredSchema": {
18 "type": "object",
19 "properties": {
20 "title": { "type": "string" },
21 "price": { "type": "number" },
22 "description": { "type": "string" },
23 },
24 "required": ["title"],
25 },
26 "batchCalls": [{
27 "tool": "fetch_web",
28 "params": { "url": "https://example.com" },
29 }],
30}
31
32
33run = client.actor("tuguidragos/mcp-nexus-universal-ai-tool-bridge").call(run_input=run_input)
34
35
36print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
37for item in client.dataset(run["defaultDatasetId"]).iterate_items():
38 print(item)
39
40