{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper & B2B Buying Signals (Real URLs + Delta)",
    "description": "Scrape Google News with real decoded publisher URLs, auto date-slicing past the 100-item cap, zero-LLM EN/DE B2B buying-trigger tags (funding, M&A, exec hire, layoffs, expansion), reprint clustering & cross-run delta dedup ($0 on seen news). From $0.0005 start (10x cheaper for Clay/n8n).",
    "version": "1.0",
    "x-build-id": "tgjT9eb1vJhCdGCS5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vayneshen~google-news-scraper-b2b-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vayneshen-google-news-scraper-b2b-signals",
        "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/vayneshen~google-news-scraper-b2b-signals/runs": {
      "post": {
        "operationId": "runs-sync-vayneshen-google-news-scraper-b2b-signals",
        "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/vayneshen~google-news-scraper-b2b-signals/run-sync": {
      "post": {
        "operationId": "run-sync-vayneshen-google-news-scraper-b2b-signals",
        "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": "Topic / Keyword Search Queries (Mode A)",
            "type": "array",
            "description": "Google News search queries (supports Boolean OR, quotes, site:). Left empty automatically when using B2B Account Mode (companyName / companies). Up to 100 total queries + companies per run.",
            "items": {
              "type": "string"
            }
          },
          "timeRange": {
            "title": "Time Range",
            "enum": [
              "1d",
              "7d",
              "30d",
              "90d",
              "all"
            ],
            "type": "string",
            "description": "Relative lookback window (ignored if explicit From/To dates are provided). Defaults to last 30 days.",
            "default": "30d"
          },
          "fromDate": {
            "title": "From Date (YYYY-MM-DD, optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional start date (inclusive, YYYY-MM-DD). Overrides Time Range when provided."
          },
          "toDate": {
            "title": "To Date (YYYY-MM-DD, optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional end date (inclusive, YYYY-MM-DD). Must be >= From Date."
          },
          "autoDateSlice": {
            "title": "Auto Date-Slicing Past 100 Results",
            "type": "boolean",
            "description": "Automatically splits dense date windows when more items are needed to break Google News's 100-result cap (lazy: makes only 1 RSS request if maxItems is already met).",
            "default": true
          },
          "companyName": {
            "title": "Single Company Name (Clay Webhook Mode B)",
            "type": "string",
            "description": "Single target account name for Clay HTTP columns or single-row n8n webhooks (e.g. \"Stripe\" or \"Ramp\"). Automatically ignores Console prefill queries."
          },
          "companyDomain": {
            "title": "Single Company Domain (Optional, improves disambiguation)",
            "type": "string",
            "description": "Optional company domain for single-row Clay mode (e.g. \"ramp.com\"). Passed straight through to output and strengthens short-name disambiguation."
          },
          "companies": {
            "title": "Target Companies List (Batch Mode B, up to 100)",
            "type": "array",
            "description": "List of company names or \"Company Name | domain.com\" entries (e.g. [\"Databricks | databricks.com\", \"Ramp | ramp.com\", \"Celonis | celonis.com\"]).",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerCompany": {
            "title": "Max Items Per Company (Mode B)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Fair per-company cap in Account Mode so one large company never starves other accounts and single-row Clay webhooks finish in <4s.",
            "default": 5
          },
          "triggerTypes": {
            "title": "Filter by Buying Triggers (Optional)",
            "type": "array",
            "description": "Optional filter to keep ONLY articles matching selected B2B triggers. Leave empty to return all relevant articles (each still tagged with buyingSignals[]).",
            "items": {
              "type": "string",
              "enum": [
                "funding",
                "acquisition",
                "exec_hire",
                "expansion",
                "layoffs",
                "product_launch",
                "partnership",
                "regulatory_lawsuit"
              ]
            }
          },
          "onlyBuyingSignals": {
            "title": "Only Export Buying-Trigger Articles",
            "type": "boolean",
            "description": "When enabled (or when Trigger Types is non-empty), non-trigger news is filtered out before decoding and billed $0.",
            "default": false
          },
          "strictDisambiguation": {
            "title": "Strict Short-Name Disambiguation",
            "type": "boolean",
            "description": "Prevents noisy false positives on short/dictionary company names (e.g. Ramp, Linear, Gong, Mercury, Box, Scale) by enforcing business context anchors.",
            "default": true
          },
          "country": {
            "title": "Country / Edition",
            "type": "string",
            "description": "Two-letter Google News edition code (e.g. US, GB, DE, AT, CH, FR, CA, AU, NL, ES, IT, SG, IN, JP).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter Google News language code (e.g. en, de, fr, es, it, nl, pt).",
            "default": "en"
          },
          "maxItems": {
            "title": "Max Items Per Run (Optional)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum deduplicated articles exported in this run (hard cap 2,000). Leave empty for smart defaults: 25 in Topic Mode, maxItemsPerCompany in single-company Mode B, or auto-scaled companies.length * maxItemsPerCompany (up to 2,000) in batch Mode B."
          },
          "decodeRealUrls": {
            "title": "Decode Real Publisher URLs (+$0.0008 only on success)",
            "type": "boolean",
            "description": "Resolves Google News CBMi/AU_yqL redirect links into genuine external publisher URLs. Failed decodes are never billed the decode event.",
            "default": true
          },
          "requireDecodedUrl": {
            "title": "Require Decoded URL (Skip & $0 on Decode Failure)",
            "type": "boolean",
            "description": "When enabled, articles whose real publisher URL cannot be decoded (including during circuit-breaker fallback) are excluded and billed $0.",
            "default": false
          },
          "extractFullText": {
            "title": "Extract Clean Full-Text Markdown (Opt-In, +$0.0012 on success)",
            "type": "boolean",
            "description": "Opt-in pure HTTP extraction of publisher article text (SSRF-safe, 5s timeout, 512KB cap). Paywalls/403s/short bodies (<200 chars) are billed $0.",
            "default": false
          },
          "clusterReprints": {
            "title": "Cluster Syndication Reprints (Pay Once per Story)",
            "type": "boolean",
            "description": "Collapses syndicated reprints of the same press release within 48h into 1 canonical item with coverageCount & relatedSources[], avoiding duplicate charges.",
            "default": true
          },
          "deduplicateAcrossRuns": {
            "title": "Cross-Run Delta Mode ($0 on Already-Seen News)",
            "type": "boolean",
            "description": "Remembers exported articles & 48h story clusters in your Apify KV Store (partitioned per company/query + locale) so scheduled daily/hourly monitors only output and bill brand-new news.",
            "default": false
          },
          "dedupKey": {
            "title": "Delta Monitor Namespace",
            "type": "string",
            "description": "Optional custom namespace to isolate separate monitoring pipelines (defaults to \"default\", e.g. \"clay-outbound-prod\" or \"competitor-alerts\"). Safely hashed internally."
          },
          "proxyConfiguration": {
            "title": "Optional Proxy Configuration (Not Required — Zero-Proxy Default)",
            "type": "object",
            "description": "Zero proxies needed by default. High-volume enterprise users may optionally supply their own Apify Proxy configuration if needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}