{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper: Search, Topics, Real URLs, Full Text",
    "description": "Google News scraper using the public RSS feeds: keyword search, topics, local news, top stories, 50+ editions. Date filters, day by day collection past the 100 result cap, real publisher URLs and article text, author and date.",
    "version": "1.0",
    "x-build-id": "jjLlrQdEgjytGI4xW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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 to search on Google News, one per line. Google News operators work: \"exact phrase\", OR, -exclude, site:reuters.com, intitle:, plus when:7d, after:2026-01-01 and before:2026-02-01 (when you type a date operator yourself, the date settings below are not added to that query).",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topic sections",
            "type": "array",
            "description": "Google News topic sections (headlines for the selected edition). Topic feeds return the current headlines, usually 30 to 100 articles, and cannot be searched by date (the date filter still removes older items).",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation (national news of the edition country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "Local news (places)",
            "type": "array",
            "description": "City, region or country names for Google News local headlines, for example Austin, Manchester, Bavaria.",
            "items": {
              "type": "string"
            }
          },
          "includeTopStories": {
            "title": "Include top stories",
            "type": "boolean",
            "description": "Also scrape the Google News front page (top stories) of the selected edition. Top stories come in clusters; related coverage is returned in relatedArticles.",
            "default": false
          },
          "feedUrls": {
            "title": "Google News URLs",
            "type": "array",
            "description": "Any news.google.com page or RSS URL: a topic or subtopic page (news.google.com/topics/CAAq...), a search page, a full coverage story, a publisher section. Web page URLs are converted to their public RSS feed automatically.",
            "items": {
              "type": "string"
            }
          },
          "edition": {
            "title": "Edition (country and language)",
            "enum": [
              "US:en",
              "GB:en",
              "CA:en",
              "AU:en",
              "IN:en",
              "IE:en",
              "NZ:en",
              "ZA:en",
              "SG:en",
              "PH:en",
              "NG:en",
              "PK:en",
              "MY:en",
              "KE:en",
              "IL:en",
              "CA:fr",
              "FR:fr",
              "BE:fr",
              "CH:fr",
              "DE:de",
              "AT:de",
              "CH:de",
              "ES:es",
              "MX:es-419",
              "AR:es-419",
              "CO:es-419",
              "CL:es-419",
              "PE:es-419",
              "US:es-419",
              "BR:pt-419",
              "PT:pt-150",
              "IT:it",
              "NL:nl",
              "BE:nl",
              "PL:pl",
              "SE:sv",
              "NO:no",
              "CZ:cs",
              "HU:hu",
              "RO:ro",
              "GR:el",
              "TR:tr",
              "UA:uk",
              "RU:ru",
              "JP:ja",
              "KR:ko",
              "CN:zh-Hans",
              "TW:zh-Hant",
              "HK:zh-Hant",
              "IN:hi",
              "ID:id",
              "TH:th",
              "VN:vi",
              "IL:he",
              "AE:ar",
              "SA:ar",
              "EG:ar"
            ],
            "type": "string",
            "description": "Which Google News edition to use. It sets the language and country of results, exactly like the edition picker on news.google.com.",
            "default": "US:en"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "any",
              "1h",
              "6h",
              "12h",
              "1d",
              "2d",
              "7d",
              "30d",
              "90d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles published within this period (Google's when: operator). Ignored when Published after or Published before is set.",
            "default": "any"
          },
          "publishedAfter": {
            "title": "Published after (date)",
            "type": "string",
            "description": "Only articles published on or after this date (YYYY-MM-DD, UTC). Uses Google's after: operator."
          },
          "publishedBefore": {
            "title": "Published before (date)",
            "type": "string",
            "description": "Only articles published on or before this date (YYYY-MM-DD, UTC, inclusive). Uses Google's before: operator."
          },
          "strictDateFilter": {
            "title": "Strictly enforce the date window",
            "type": "boolean",
            "description": "Google sometimes returns articles slightly outside the requested window. When on, those are dropped (and never charged).",
            "default": true
          },
          "maxItemsPerQuery": {
            "title": "Max articles per query or feed",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of articles for each search query, topic, place or URL. One Google News RSS request returns at most 100 articles; for search queries above 100 the Actor collects day by day (one request per day) inside your date window.",
            "default": 100
          },
          "maxDaysBack": {
            "title": "Max days back (Any time searches)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "When a search with Time range Any time hits the 100 cap and you asked for more, the Actor walks back this many days at most. It also stops after 7 days in a row without new articles.",
            "default": 30
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "Order of articles within each query or feed.",
            "default": "newest"
          },
          "deduplicate": {
            "title": "Remove duplicates across queries",
            "type": "boolean",
            "description": "Skip an article already returned for an earlier query or feed in the same run (duplicates are not charged).",
            "default": true
          },
          "resolveOriginalUrl": {
            "title": "Resolve original article URL",
            "type": "boolean",
            "description": "Turn Google News links (news.google.com/rss/articles/...) into the publisher's own URL. Older links are decoded instantly; newer ones are opened in a headless browser like a reader clicking the link (about 2 to 4 seconds each). Google limits how fast one IP can open news links, so large batches can be rate limited: affected items keep resolveStatus rate_limited and are not charged for resolution.",
            "default": false
          },
          "fetchArticleDetails": {
            "title": "Fetch article text and metadata",
            "type": "boolean",
            "description": "Open each publisher page (public pages only) and extract headline, description, authors, publish and modified dates, image, section, keywords, language, canonical URL and the main article text (schema.org ld+json, meta tags and a readability style extractor). Turns on URL resolution. Paywalled, blocked or robots.txt disallowed pages get an articleStatus explaining why, they are not worked around.",
            "default": false
          },
          "maxArticleTextChars": {
            "title": "Max article text length (characters)",
            "minimum": 0,
            "type": "integer",
            "description": "Cut articleText after this many characters (0 = no limit). articleTextTruncated tells you when it was cut.",
            "default": 30000
          },
          "respectRobotsTxt": {
            "title": "Respect publisher robots.txt",
            "type": "boolean",
            "description": "Skip publisher pages that robots.txt disallows for generic crawlers (articleStatus robots_disallowed).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many articles are processed in parallel. Requests to the same publisher are always spaced out.",
            "default": 4
          },
          "requestDelaySecs": {
            "title": "Delay between Google News feed requests (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Minimum pause between two RSS requests to Google News.",
            "default": 1
          },
          "resolveDelaySecs": {
            "title": "Delay between link resolutions (seconds)",
            "minimum": 0.5,
            "maximum": 60,
            "type": "number",
            "description": "Minimum pause between two Google News links opened in the browser. Raise it if you see rate_limited resolve statuses.",
            "default": 3
          },
          "publisherDelaySecs": {
            "title": "Delay between requests to the same publisher (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Minimum pause between two page requests to the same website.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Google News RSS works without a proxy (default). A proxy can help when you resolve many links or fetch many publisher pages. URL resolution never uses RESIDENTIAL: if you pick it, links are resolved through Apify datacenter proxy instead.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}