{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper – Original URLs, Topics & Full Article Text",
    "description": "Scrape Google News search results, topic and top-stories feeds in any language and country. Decodes the Google redirect to the original article URL, dedupes across queries, date/site filters, splits long date ranges past the 100-item cap, optional full article text (author, date, image).",
    "version": "1.1",
    "x-build-id": "enqDwW2VdyQMNajIn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/budoucnost-ai~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-budoucnost-ai-google-news-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/budoucnost-ai~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-budoucnost-ai-google-news-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/budoucnost-ai~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-budoucnost-ai-google-news-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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords or phrases, one per line. Google News operators work too (\"exact phrase\", OR, -exclude, intitle:). Each query is run for every locale.",
            "default": [
              "electric bikes"
            ],
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Google News topic feeds: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH.",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "includeTopStories": {
            "title": "Top stories",
            "type": "boolean",
            "description": "Also scrape the Top stories feed of every locale. Top stories include relatedArticles (other outlets covering the same story).",
            "default": false
          },
          "feedUrls": {
            "title": "Google News URLs (publications, sections, topics)",
            "type": "array",
            "description": "Any news.google.com page URL – a publication (…/publications/CAAq…), a section, a topic or a search page. It is converted to its RSS feed. hl/gl/ceid in the URL are kept, otherwise the first locale is used.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locales": {
            "title": "Locales (language-COUNTRY)",
            "type": "array",
            "description": "Google News editions, e.g. en-US, en-GB, cs-CZ, de-DE, fr-FR, es-ES, pl-PL, sk-SK. Each query/topic is scraped in every locale.",
            "default": [
              "en-US"
            ],
            "items": {
              "type": "string"
            }
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "A date (2026-10-01, inclusive, UTC) or a relative window: 1h, 12h, 7d, 1m (month), 1y. Sent to Google as after:/when: and checked again on every item."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "A date (2026-10-31, exclusive, UTC). Sent to Google as before: and checked again on every item."
          },
          "sites": {
            "title": "Only these sites",
            "type": "array",
            "description": "Limit search queries to these domains (site: operator, joined with OR), e.g. reuters.com, bbc.co.uk.",
            "items": {
              "type": "string"
            }
          },
          "splitByDay": {
            "title": "Split date range by day (get past the 100-item cap)",
            "type": "boolean",
            "description": "Google returns at most ~100 items per feed. With a publishedAfter date (and optional publishedBefore), every query is run once per day of the range, so a 30-day range can return up to ~3000 articles. Duplicates are removed.",
            "default": false
          },
          "maxItems": {
            "title": "Max articles (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many unique articles across all queries, topics and locales.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max articles per query / topic",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Per query (or topic, or feed URL) and locale. 0 = no limit.",
            "default": 0
          },
          "resolveUrls": {
            "title": "Decode original article URLs",
            "type": "boolean",
            "description": "Replace the news.google.com redirect link with the publisher's URL (link). resolveMethod says how: base64 (old ids, offline), batchexecute (Google's own decode call), redirect, or unresolved (link stays the Google URL). Turn off for speed if you only need titles.",
            "default": true
          },
          "includeArticleText": {
            "title": "Full article text (add-on)",
            "type": "boolean",
            "description": "Download every article page and extract the main text, author, publish date, lead image and site name (Readability). Charged per article with extracted text (article-text event); failures (paywall, blocked publisher) are free and explained in article.error.",
            "default": false
          },
          "includeRegex": {
            "title": "Include only titles matching (regex)",
            "type": "string",
            "description": "Case-insensitive regex on title + source name + source URL. Items that do not match are skipped before charging."
          },
          "excludeRegex": {
            "title": "Exclude titles matching (regex)",
            "type": "string",
            "description": "Case-insensitive regex on title + source name + source URL, e.g. \"sponsored|horoscope\" or a source you do not want."
          },
          "excludeUrls": {
            "title": "Exclude URLs (already seen)",
            "type": "array",
            "description": "Original or Google News URLs from previous runs – skipped and never charged. Handy for scheduled monitoring.",
            "items": {
              "type": "string"
            }
          },
          "cacheHours": {
            "title": "Cache (hours)",
            "minimum": 0,
            "maximum": 2160,
            "type": "integer",
            "description": "Reuse feeds, decoded URLs and article texts fetched within this many hours (your own cache; decoded URLs and texts also from the shared cache). 0 = always fresh.",
            "default": 24
          },
          "useSharedCache": {
            "title": "Use shared cache",
            "type": "boolean",
            "description": "Decoded URLs and article texts are identical for everybody, so they are shared across users of this actor (faster, fewer requests to Google). Feeds are never shared. Respects cacheHours.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrent feeds",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Feeds processed in parallel (each feed decodes up to 5 URLs at a time).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default. Google shows a consent wall instead of article pages to EU IPs, so keep a non-EU country (default US) when decoding URLs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}