$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "single",
< "tool": "fetch_web",
< "fetchUrl": "https://example.com",
< "extractSelectors": [
< {
< "name": "title",
< "css": "h1"
< }
< ],
< "extractPatterns": [
< {
< "name": "emails",
< "regex": "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}"
< }
< ],
< "classifyLabels": [
< "positive",
< "negative",
< "neutral"
< ],
< "extractStructuredSchema": {
< "type": "object",
< "properties": {
< "title": {
< "type": "string"
< },
< "price": {
< "type": "number"
< },
< "description": {
< "type": "string"
< }
< },
< "required": [
< "title"
< ]
< },
< "transformMapping": [
< {
< "from": "title",
< "to": "headline",
< "op": "copy"
< }
< ],
< "batchCalls": [
< {
< "tool": "fetch_web",
< "params": {
< "url": "https://example.com"
< }
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/tuguidragos~mcp-nexus-universal-ai-tool-bridge/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'