{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper - Original URLs & New Article Monitor",
    "description": "Watch Google News for any search term, topic or edition. Each row has the original publisher article URL (not the Google redirect), title, publisher, date and related coverage. Many terms and countries in one run, and onlyNew mode returns just the articles you have not seen before.",
    "version": "0.1",
    "x-build-id": "w5XHv7aSaWQmHIv30"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-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/neverempty~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-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/neverempty~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-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 terms",
            "type": "array",
            "description": "One Google News search per line, for example a company, a person, a product or a phrase. Google News search operators work: \"exact phrase\", site:reuters.com, intitle:, OR, -word. Each term is searched in every edition below. If this, Topics and Google News URLs are all empty, the example search \"artificial intelligence\" is used and a free row says so.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Google News sections to read in every edition below. TOP_STORIES is the front page.",
            "items": {
              "type": "string",
              "enum": [
                "TOP_STORIES",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation (your country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "feedUrls": {
            "title": "Google News URLs",
            "type": "array",
            "description": "Any news.google.com address you can open in a browser: a topic page (https://news.google.com/topics/...), a publication page, a story page, a search page, or an RSS address. If the address has its own ceid=, that edition is used; otherwise it is read in every edition below.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Editions (country:language)",
            "type": "array",
            "description": "Google News editions to search, as COUNTRY:language. Examples: US:en, GB:en, CA:en, AU:en, IN:en, DE:de, FR:fr, ES:es, IT:it, NL:nl, JP:ja, KR:ko, BR:pt-419, MX:es-419, IN:hi, TW:zh-Hant, CN:zh-Hans. An edition Google News does not offer gets a free row and returns nothing. The same article found in two editions is returned and charged once.",
            "default": [
              "US:en"
            ],
            "items": {
              "type": "string"
            }
          },
          "timeRange": {
            "title": "Time range (search terms)",
            "enum": [
              "any",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Only articles published within this period. Ignored when a date range is set.",
            "default": "any"
          },
          "dateFrom": {
            "title": "From date (search terms)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First day to search, as 2026-11-01. With a date range each day is searched on its own, so you get far more than the roughly 100 articles one Google News search lists. Leave To date empty to search up to today. At most 366 days per run."
          },
          "dateTo": {
            "title": "To date (search terms)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last day to search, as 2026-11-08 (inclusive)."
          },
          "onlyNew": {
            "title": "Only new articles (watch mode)",
            "type": "boolean",
            "description": "On: return only articles this watch has not returned in an earlier run, across all your search terms, topics and editions. Schedule the Actor (for example every hour) and each run returns just the new articles. The first run returns everything currently listed.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name of the memory used by Only new articles. Use a different name for each separate watch list (for example one per client). Runs with the same name share the memory.",
            "default": "default"
          },
          "resetWatch": {
            "title": "Forget what this watch has seen",
            "type": "boolean",
            "description": "On: clear the memory of this watch name before the run, so every listed article counts as new again.",
            "default": false
          },
          "resolveUrls": {
            "title": "Original article URLs",
            "type": "boolean",
            "description": "On: each row's url is the publisher's own article address instead of the news.google.com redirect. Off: faster, and url is empty (googleNewsUrl is always filled).",
            "default": true
          },
          "maxItemsPerQuery": {
            "title": "Maximum articles per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Return at most this many articles for each search term (or topic or URL) in each edition. 0 = no per-search limit.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum articles",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many articles in this run. Must be at least 1.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}