{
  "openapi": "3.0.1",
  "info": {
    "title": "News MCP Monitor — Meltwater Alt + AI Briefings",
    "description": "Skyfire/x402 payment-ready. Monitor news across Google News + 50+ sources at $0.002/article — 99%+ run success, RAG-ready feed for AI agents via MCP. AI executive briefings + sentiment + brand alerts. Replaces Meltwater ($5k-$24k/yr), Cision, Mention, Notified, Onclusive, MuckRack.",
    "version": "1.10",
    "x-build-id": "fXsE4GOrmalV5Yb5s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/harvestlab~news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-harvestlab-news-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/harvestlab~news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-harvestlab-news-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/harvestlab~news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-harvestlab-news-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Keywords, company names, or topics to monitor on Google News. Each query runs a separate search (e.g. ['OpenAI', 'artificial intelligence']).",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search Query (single, alias for Search Queries)",
            "type": "string",
            "description": "Single search query — alias for Search Queries. Use this for a single topic instead of a list."
          },
          "query": {
            "title": "Query (CLI alias)",
            "type": "string",
            "description": "CLI alias for searchQuery. Hidden from Console form."
          },
          "topic": {
            "title": "Topic (CLI alias)",
            "type": "string",
            "description": "CLI alias for searchQuery. Hidden from Console form."
          },
          "maxArticles": {
            "title": "Max Articles per Query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of articles to collect per search query. Higher values find more coverage but take longer (each article requires URL resolution and snippet fetch). Start with 10-30 for testing; Google News typically returns 50-100 unique results per query before repetition.",
            "default": 30
          },
          "maxItems": {
            "title": "Max Items (CLI alias)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "CLI alias for maxArticles. Hidden from Console form."
          },
          "maxArticlesPerQuery": {
            "title": "Max Articles Per Query (legacy alias)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Legacy alias for maxArticles. Hidden from Console form."
          },
          "timeRange": {
            "title": "Time Range",
            "enum": [
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Freshness window for Google News results. 'Past hour' for breaking-news monitoring; 'Past 24 hours' (default) for daily briefings; 'Past week' for weekly roundups or trending topics; 'Past month' for broader coverage. Shorter windows return fresher but fewer articles.",
            "default": "1d"
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "nl",
              "de",
              "fr",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Google News edition (gl parameter). Controls which regional publishers and local stories surface first. Pair with a matching Language below for best results — e.g. 'Germany' + 'German', or 'Netherlands' + 'Dutch'. 'United States' + 'English' (default) covers global English-language coverage.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "nl",
              "de",
              "fr",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Language for Google News results and AI briefing output.",
            "default": "en"
          },
          "fetchArticleSnippets": {
            "title": "Resolve Article URLs & Fetch Snippets",
            "type": "boolean",
            "description": "Resolves each article's Google News redirect URL to the actual publisher URL and fetches a short content snippet. STRONGLY RECOMMENDED — without this, the `url` field is a Google News redirect (not directly usable). Adds ~5-15 seconds to the run. Disable only if you want raw/unresolved output for speed.",
            "default": true
          },
          "enableAiAnalysis": {
            "title": "Enable AI Briefing",
            "type": "boolean",
            "description": "Generate an AI-powered executive briefing from the collected articles. Requires an API key for your chosen LLM provider. (Legacy alias: enableAiBriefing still accepted.)",
            "default": false
          },
          "enableAiBriefing": {
            "title": "Enable AI Briefing (legacy alias)",
            "type": "boolean",
            "description": "Legacy alias for enableAiAnalysis. Hidden from Console form."
          },
          "briefingStyle": {
            "title": "Briefing Style",
            "enum": [
              "executive",
              "detailed",
              "bullet-points"
            ],
            "type": "string",
            "description": "Style of the AI-generated briefing.",
            "default": "executive"
          },
          "llmProvider": {
            "title": "LLM Provider",
            "enum": [
              "openrouter",
              "anthropic",
              "google",
              "openai",
              "ollama"
            ],
            "type": "string",
            "description": "Which AI provider to use for generating briefings.",
            "default": "openrouter"
          },
          "llmModel": {
            "title": "LLM Model",
            "type": "string",
            "description": "Specific model to use. Leave empty for the provider default (google/gemini-2.0-flash-001 for OpenRouter, claude-sonnet-4-20250514 for Anthropic, gemini-2.0-flash for Google AI, gpt-4o-mini for OpenAI, llama3.1 for Ollama)."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API Key",
            "type": "string",
            "description": "OpenRouter API key — alternative: set OPENROUTER_API_KEY env var. Get one at openrouter.ai/keys"
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key",
            "type": "string",
            "description": "Anthropic API key — alternative: set ANTHROPIC_API_KEY env var. Get one at console.anthropic.com/settings/keys"
          },
          "googleApiKey": {
            "title": "Google AI API Key",
            "type": "string",
            "description": "Google AI (Gemini) API key — alternative: set GOOGLE_API_KEY env var. Get one at aistudio.google.com/app/apikey"
          },
          "openaiApiKey": {
            "title": "OpenAI API Key",
            "type": "string",
            "description": "OpenAI API key — alternative: set OPENAI_API_KEY env var. Get one at platform.openai.com/api-keys"
          },
          "ollamaBaseUrl": {
            "title": "Ollama Base URL",
            "type": "string",
            "description": "Base URL for Ollama API. Default: http://localhost:11434"
          },
          "watchIntervalMinutes": {
            "title": "Watch Interval (minutes)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "LIVE WATCH MODE: minutes to wait between scans. Leave at 0 (default) for a one-shot run. Set to 15-60 for real-time news monitoring — the Actor stays alive, re-queries Google News every N minutes, and pushes only newly-seen articles (deduped by Google News GUID). Recommended pairing: timeRange='1h' + watchIntervalMinutes=15 for crisis / PR-war-room monitoring. Minimum 1, maximum 1440 (24h).",
            "default": 0
          },
          "watchDurationMinutes": {
            "title": "Watch Duration (minutes)",
            "minimum": 0,
            "maximum": 4320,
            "type": "integer",
            "description": "LIVE WATCH MODE: how long to keep watching before exiting. Leave at 0 (default) for a one-shot run. Common values: 60 (1h), 480 (8h shift), 1440 (24h), 4320 (3 days, the maximum). Set both this AND watchIntervalMinutes to enable watch mode. The Actor exits cleanly when duration elapses.",
            "default": 0
          },
          "briefingRegenThreshold": {
            "title": "AI Briefing Regen Threshold",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "WATCH MODE ONLY: minimum number of NEW articles in an iteration before the AI briefing is regenerated. Separates always-on scrape cost ($0.002/article) from briefing cost ($0.05/briefing) — only pay for a new briefing when the story actually moves. Default 3. Set to 1 to regenerate every iteration. Ignored in one-shot mode; first iteration always runs the briefing if enableAiAnalysis is true.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Google News RSS works fine with default datacenter proxy; switch to RESIDENTIAL only if you hit blocks."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}