{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper & AI Company Signals",
    "description": "Google News scraper with AI company signals: articles for any company, keyword or topic with publisher URLs, AI event type and sentiment, stories across outlets, momentum. $3 per 1,000 articles. Add-ons: trigger events with facts (funding, M&A), full text, AI briefs, share of voice, Slack alerts.",
    "version": "0.0",
    "x-build-id": "8aTzHAt3uUfoZ2Cpm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadywren~google-news-signals-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadywren-google-news-signals-scraper",
        "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/steadywren~google-news-signals-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadywren-google-news-signals-scraper",
        "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/steadywren~google-news-signals-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadywren-google-news-signals-scraper",
        "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": {
          "companies": {
            "title": "Companies (watchlist)",
            "type": "array",
            "description": "Company names. Each is searched on Google News as an exact phrase (\"Shopify\"); the AI judges every headline against this name.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Free Google News searches (any keywords and Google operators, e.g. AI chips OR semiconductors). The AI judges headlines against the query text.",
            "items": {
              "type": "string"
            }
          },
          "topicUrls": {
            "title": "Topic URLs",
            "type": "array",
            "description": "Google News topic or section URLs (https://news.google.com/topics/...). Stories come from Google's own related coverage; timeRange does not apply; no sentiment (there is no target company).",
            "items": {
              "type": "string"
            }
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "How far back to search. Ignored when dateFrom or dateTo is set.",
            "default": "7d"
          },
          "dateFrom": {
            "title": "From date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional first day (YYYY-MM-DD). Overrides the time range. Without To date: until today."
          },
          "dateTo": {
            "title": "To date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional last day (YYYY-MM-DD), included. Without From date: the 7 days up to this day."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code of the Google News edition (US, GB, DE, IN...).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code of the edition (en, de, fr...). The AI prompts are written for English headlines.",
            "default": "en"
          },
          "countries": {
            "title": "Several countries (editions)",
            "type": "array",
            "description": "Run the same watchlist in several Google News editions, e.g. US, GB, DE, FR or DE:de / BE:nl (country:language). Each edition gets its own articles, stories and digest (normal prices); titles of non-English editions get an English translation in titleEnglish (with AI signals on). Up to 10. Empty = the Country and Language above.",
            "items": {
              "type": "string"
            }
          },
          "maxArticlesPerCompany": {
            "title": "Max articles per company / query / topic",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Newest articles kept per entry. Google gives at most 100 per search; above that the Actor splits the time range into date windows.",
            "default": 100
          },
          "maxItems": {
            "title": "Max articles in total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many articles in the whole run. You pay per article, so this also caps your cost.",
            "default": 1000
          },
          "resolveUrls": {
            "title": "Decode publisher URLs",
            "type": "boolean",
            "description": "Turn Google's news.google.com links into the real publisher URL (2 extra requests per article, cached between runs). Included in the price.",
            "default": true
          },
          "ai": {
            "title": "AI signals",
            "type": "boolean",
            "description": "AI event type (funding, acquisition, earnings, layoffs, lawsuits...), sentiment toward the company, entities and story grouping. Included in the price.",
            "default": true
          },
          "maxAiCostUsd": {
            "title": "Max AI cost per run (USD)",
            "minimum": 0.05,
            "maximum": 2,
            "type": "number",
            "description": "Safety cap of the AI work per run (paid by us, not added to your bill). When reached, the rest of the articles have empty AI fields.",
            "default": 0.5
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "Remember articles and stories of this watchlist: new articles, new stories, outlets added since the last run, breaking stories. Best with a schedule.",
            "default": true
          },
          "onlyNewArticles": {
            "title": "Only new articles",
            "type": "boolean",
            "description": "Deliver only articles that an earlier run with the same watchlist did not deliver.",
            "default": false
          },
          "extractTriggers": {
            "title": "Trigger events with facts ($0.01 per trigger)",
            "type": "boolean",
            "description": "Sales trigger events of the watched companies with their facts: funding (amount, currency, round, lead investors, valuation), acquisitions (acquirer, acquired company, deal value), expansion (location), layoffs (count, share), partnerships (partner), product launches (product), executive changes (role; the person's name only when the article names them in that role). One row per new story in the `triggers` dataset, event trigger-event, $0.01 each.",
            "default": false
          },
          "fetchBodies": {
            "title": "Full article text ($0.001 per article)",
            "type": "boolean",
            "description": "Fetch each publisher page and add the article text, clean Markdown (RAG-ready), author and word count. Paywalled or blocked pages get bodyStatus paywall/blocked and are not charged. Needs Decode publisher URLs on. Event article-text, $0.001 per article with text. Adds about 1 s per article.",
            "default": false
          },
          "storyBriefs": {
            "title": "AI story briefs ($0.01 per brief)",
            "type": "boolean",
            "description": "A 2-3 sentence AI brief per story (what happened, key numbers, why it matters) in the `stories` dataset. Only stories with 2+ articles or a fetched article text, widest coverage first; with Track changes on, a story an earlier run already delivered is briefed again only when new outlets picked it up. Event story-brief, $0.01 each.",
            "default": false
          },
          "maxBriefsPerTarget": {
            "title": "Max story briefs per company / query / topic",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Caps the story-brief cost: at most this many briefs per watchlist entry per run.",
            "default": 10
          },
          "companyBriefing": {
            "title": "AI company briefing ($0.02 per company)",
            "type": "boolean",
            "description": "A short written briefing per company per run (top events, tone and how it changed since the last run, risks) in the `briefing` field of the company digest. Event company-briefing, $0.02 each.",
            "default": false
          },
          "shareOfVoice": {
            "title": "Share of voice report ($0.02 per run)",
            "type": "boolean",
            "description": "Compare 2+ watched companies: share of coverage, tier-1 outlet share (Reuters, Bloomberg, FT, WSJ, CNBC...), tone, event mix and change since the last run. Dataset `sov` + record SHARE_OF_VOICE. Event sov-report, $0.02 per run.",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL (free)",
            "type": "string",
            "description": "Slack incoming-webhook URL (hooks.slack.com) or any https webhook. One POST per run when a company's signal score reaches the threshold or a trigger event of the chosen types appears. Free."
          },
          "alertMinSignalScore": {
            "title": "Alert when signal score is at least",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Signal score (0-100) that triggers a company alert.",
            "default": 60
          },
          "alertTriggerTypes": {
            "title": "Alert on trigger types",
            "type": "array",
            "description": "Trigger events (needs Trigger events on) that send an alert. Empty = every type.",
            "items": {
              "type": "string",
              "enum": [
                "funding",
                "acquisition",
                "expansion",
                "layoffs",
                "partnership",
                "product-launch",
                "executive-change"
              ],
              "enumTitles": [
                "Funding",
                "Acquisition",
                "Expansion",
                "Layoffs",
                "Partnership",
                "Product launch",
                "Executive change"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}