{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper — Full Text, RAG, Triggers & Monitor",
    "description": "Pure-HTTP 128 MB Google News scraper with 5-in-1 publisher URL decoding, streaming HTML full-text & 512-token RAG chunks, 3-layer paywall sibling rescue, 10 B2B/PR triggers, cross-lingual clustering & $0-skip watchDiff monitoring.",
    "version": "0.1",
    "x-build-id": "98w2j8ihQi5M7zEO2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maitreya_buddha~google-news-intel-rag-trigger-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maitreya_buddha-google-news-intel-rag-trigger-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/maitreya_buddha~google-news-intel-rag-trigger-monitor/runs": {
      "post": {
        "operationId": "runs-sync-maitreya_buddha-google-news-intel-rag-trigger-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/maitreya_buddha~google-news-intel-rag-trigger-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-maitreya_buddha-google-news-intel-rag-trigger-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": {
          "queries": {
            "title": "What topics or companies do you want to track?",
            "type": "array",
            "description": "Enter keywords, company names, or search operators (e.g., \"Nvidia AI\", \"OpenAI funding\", \"site:techcrunch.com\"). Leave blank if using Official Topics below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What output do you need?",
            "enum": [
              "news_headlines_intel",
              "full_article_rag"
            ],
            "type": "string",
            "description": "Headlines + Real Links ($0.80/1K): fast news list with real publisher URLs, triggers & story grouping. Full Article Text + AI Chunks ($1.50/1K): also downloads full article text, clean Markdown & AI-ready chunks (auto-recovers paywalled stories from open sources).",
            "default": "news_headlines_intel"
          },
          "locales": {
            "title": "Countries & Languages",
            "type": "array",
            "description": "Country:language codes (e.g., [\"US:en\"] or [\"US:en\", \"KR:ko\", \"JP:ja\"] to group the same breaking story across countries).",
            "default": [
              "US:en"
            ],
            "items": {
              "type": "string"
            }
          },
          "timeframe": {
            "title": "How recent?",
            "enum": [
              "1h",
              "6h",
              "24h",
              "7d",
              "30d",
              "all"
            ],
            "type": "string",
            "description": "Pick a time window (1h, 6h, 24h, 7d, 30d, or all). Ignored if you set custom Start/End dates below.",
            "default": "7d"
          },
          "maxArticles": {
            "title": "Maximum articles",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of articles to collect per run (1 to 2,000).",
            "default": 50
          },
          "topics": {
            "title": "Google News Topic Feeds",
            "type": "array",
            "description": "Optional official Google News sections (WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH).",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ]
            },
            "default": []
          },
          "topicOrClusterUrls": {
            "title": "Specific News Websites or Topic URLs",
            "type": "array",
            "description": "Optional publisher domains (e.g., \"techcrunch.com\") or Google News topic/cluster URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Custom Start Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional start date. With End Date, automatically splits large date ranges to collect more than Google's 100-item limit."
          },
          "dateTo": {
            "title": "Custom End Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end date (YYYY-MM-DD)."
          },
          "upstreamItems": {
            "title": "Rows from Clay / Make / n8n / Another Actor",
            "type": "array",
            "description": "Optional JSON rows with query, companyName, domain, or topic fields for automated workflows.",
            "default": []
          },
          "decodeUrls": {
            "title": "Convert Google Redirects to Real Publisher URLs",
            "type": "boolean",
            "description": "Replaces obfuscated news.google.com links with the real publisher article URL automatically.",
            "default": true
          },
          "dedupeSimilarStories": {
            "title": "Keep Only 1 Best Article Per Story (Group Duplicates)",
            "type": "boolean",
            "description": "When enabled, outputs 1 representative article per breaking story while keeping coverageCount and relatedSources.",
            "default": false
          },
          "onlyFullText": {
            "title": "Only Keep Full-Text Articles ($0 Skip Paywalled)",
            "type": "boolean",
            "description": "In Full Article mode, skip articles whose full text could not be extracted or recovered from a free source ($0 charge for skipped rows).",
            "default": false
          },
          "onlyWithTriggers": {
            "title": "Only Keep Major B2B/PR Trigger News ($0 Skip Others)",
            "type": "boolean",
            "description": "Keep only stories matching funding, M&A, layoffs, breaches, recalls, lawsuits, or executive changes ($0 charge for skipped rows).",
            "default": false
          },
          "ragChunkMaxTokens": {
            "title": "AI / RAG Chunk Size (Tokens)",
            "minimum": 128,
            "maximum": 2048,
            "type": "integer",
            "description": "Target token size for pre-split AI chunks in Full Article mode (128 to 2,048).",
            "default": 512
          },
          "enableBingFallback": {
            "title": "Automatic Backup News Source",
            "type": "boolean",
            "description": "Automatically switches to Bing News if Google News rate-limits your request.",
            "default": true
          },
          "watchDiff": {
            "title": "Only Get NEW Stories Since Last Run ($0 on Duplicates)",
            "type": "boolean",
            "description": "Remembers stories from previous runs for 90 days, skips duplicates at $0, and flags sudden coverage spikes or crises.",
            "default": false
          },
          "dedupStoreName": {
            "title": "Monitoring Memory Store Name",
            "type": "string",
            "description": "Optional name to separate monitoring history across different topics or clients (default: gnews-intel-watch)."
          },
          "generateDashboardHtml": {
            "title": "Create Visual HTML Newsroom Report",
            "type": "boolean",
            "description": "Saves a shareable interactive OUTPUT_DASHBOARD.html report you can open in any browser.",
            "default": true
          },
          "webhookUrl": {
            "title": "Slack / Discord / CRM Alert Webhook URL",
            "type": "string",
            "description": "Optional HTTPS webhook URL to receive run summaries and urgent crisis alerts automatically."
          },
          "llmEscalation": {
            "title": "Optional AI Summary Verification (Bring Your Own API Key)",
            "type": "object",
            "description": "Optional { provider: \"openai\"|\"anthropic\"|\"gemini\", apiKey: \"...\", model: \"...\", minUrgencyScore: 60 }. Off by default ($0)."
          },
          "proxyConfiguration": {
            "title": "Proxy Settings (Not Needed by Default)",
            "type": "object",
            "description": "Leave off ($0 proxy cost) for normal runs. Enable only for very large enterprise bursts.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}