{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper & API: Real Article URLs, Full Text",
    "description": "Search Google News by keyword (site:, intitle:, when: operators), topic or location for any country and language. Get headline, publisher, date and the real article URL, plus optional image, author and full text. Dedupe and only-new mode. $2 per 1,000 articles.",
    "version": "1.0",
    "x-build-id": "7933arfgyGdVh2gvo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidewell~google-news-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidewell-google-news-api",
        "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/tidewell~google-news-api/runs": {
      "post": {
        "operationId": "runs-sync-tidewell-google-news-api",
        "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/tidewell~google-news-api/run-sync": {
      "post": {
        "operationId": "run-sync-tidewell-google-news-api",
        "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": "One Google News search per line. Google News operators work: \"exact phrase\", OR, -exclude, site:reuters.com, intitle:tesla, inurl:, when:7d, after:2026-01-01, before:2026-02-01. A query with its own date operator ignores the time window below.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Google News topic headlines for each edition. 'Nation' is the edition's own country (U.S. for US:en).",
            "items": {
              "type": "string",
              "enum": [
                "TOP_STORIES",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation (edition's country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "Local news (locations)",
            "type": "array",
            "description": "Local headlines for a city, region or country name, as on Google News > Local, e.g. 'London', 'Austin, Texas', 'Bavaria'.",
            "items": {
              "type": "string"
            }
          },
          "googleNewsUrls": {
            "title": "Google News URLs or topic IDs",
            "type": "array",
            "description": "Paste any news.google.com page (a search, a topic, a publication or a story page) or its RSS URL, or a topic ID such as CAAqJggKIiBDQkFTRWdvSUwyMHZNRGRqTVhZU0FtVnVHZ0pWVXlnQVAB. The actor reads its RSS feed. A URL with its own hl/gl/ceid keeps that edition.",
            "items": {
              "type": "string"
            }
          },
          "editions": {
            "title": "Editions (country:language)",
            "type": "array",
            "description": "Google News edition as COUNTRY:language (the ceid parameter), one per line. Every query, topic and location runs once per edition. Examples: US:en, GB:en, IN:en, CA:fr, DE:de, FR:fr, ES:es, IT:it, NL:nl, BR:pt-419, MX:es-419, JP:ja, KR:ko, TW:zh-Hant, AU:en. hl and gl are derived from it (US:en = hl en-US, gl US).",
            "default": [
              "US:en"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Interface language (hl) override",
            "type": "string",
            "description": "Optional. Overrides the hl parameter for every edition, e.g. en-GB or es-419. Leave empty to derive it from the edition."
          },
          "timeWindow": {
            "title": "Time window",
            "enum": [
              "",
              "1h",
              "12h",
              "1d",
              "2d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles published within this window. Added to searches as when:, and applied to topic, location and URL feeds by publish date.",
            "default": ""
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Optional start date (YYYY-MM-DD), sent as after:. Overrides the time window."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Optional end date (YYYY-MM-DD), sent as before:."
          },
          "splitByDay": {
            "title": "Split searches by day (get more than 100 per query)",
            "type": "boolean",
            "description": "Google News returns at most about 100 articles per search. With a date range or a time window of 2 days or more, this runs each query once per day, so a 30-day window can return up to about 3,000 articles per query. Duplicates are removed.",
            "default": false
          },
          "maxItemsPerQuery": {
            "title": "Max articles per query / feed",
            "minimum": 0,
            "type": "integer",
            "description": "Cap per search, topic, location or URL feed (per edition, and per day when split by day). 0 = everything the feed returns (about 100 for a search).",
            "default": 100
          },
          "maxItems": {
            "title": "Max articles in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many articles across all feeds. 0 = no limit. You can also cap spending with the run's maximum cost.",
            "default": 1000
          },
          "resolveUrls": {
            "title": "Resolve real article URLs",
            "type": "boolean",
            "description": "Decode Google's news.google.com redirect links to the publisher's article URL (articleUrl). Articles whose link can't be decoded are returned with articleUrl null and are free.",
            "default": true
          },
          "fetchArticleDetails": {
            "title": "Fetch article details from the publisher page",
            "type": "boolean",
            "description": "Open each article on the publisher's site and add its description (snippet), image, author, published time, site name and language. Extra charge per page read successfully; pages that are blocked, paywalled or disallowed by robots.txt are free.",
            "default": false
          },
          "includeArticleText": {
            "title": "Include full article text",
            "type": "boolean",
            "description": "Also extract the main article text (and word count) from the publisher page. Turns on article details. Paywalled pages often return only the intro.",
            "default": false
          },
          "respectRobotsTxt": {
            "title": "Respect publishers' robots.txt",
            "type": "boolean",
            "description": "Skip publisher pages that robots.txt disallows. Publisher pages are always read politely: one request at a time per site, at least 1 second apart.",
            "default": true
          },
          "dedupe": {
            "title": "Remove duplicates across queries",
            "type": "boolean",
            "description": "An article found by several queries, topics or editions is returned once (matched by Google id, article URL, and title + publisher).",
            "default": true
          },
          "onlyNew": {
            "title": "Only new articles since the last run",
            "type": "boolean",
            "description": "For scheduled monitoring: skip articles returned by earlier runs with the same state key. Seen articles are kept for 45 days in the named key-value store 'google-news-state'.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name for the only-new memory. Use a different key per monitor (e.g. 'brand-acme', 'competitors') so they don't share history.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Google News RSS normally works without a proxy. If Google starts rate-limiting, turn Apify Proxy on: a blocked request then retries on a new IP.",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyForPublishers": {
            "title": "Use the proxy for publisher pages too",
            "type": "boolean",
            "description": "By default publisher pages are read directly. Turn on to send them through the proxy above.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}