{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper - Articles, Real URLs & Full Text",
    "description": "Scrape Google News by keyword, topic, site or top stories in 38 country editions. Get real publisher URLs (decoded), dates, sources, related coverage and optional full article text for AI/RAG. Split by day past the 100-result cap. HTTP-only, no login. $1.50/1,000 articles.",
    "version": "0.2",
    "x-build-id": "MuqcHVgGuDv0FefTo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/consequential_programmer~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-consequential_programmer-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/consequential_programmer~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-consequential_programmer-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/consequential_programmer~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-consequential_programmer-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 operators work: \"exact phrase\", OR, -exclude, intitle:word, site:example.com. Each query returns up to 100 articles per feed (use dates + 'Split by day' to get more).",
            "default": [
              "artificial intelligence"
            ],
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "🗂️ Topics",
            "type": "array",
            "description": "Google News topic sections to scrape (latest headlines for each topic).",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation / U.S.",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "topStories": {
            "title": "📰 Top stories (front page)",
            "type": "boolean",
            "description": "Also scrape the Google News front page (top stories) for each edition.",
            "default": false
          },
          "sites": {
            "title": "🌐 Only from these sites",
            "type": "array",
            "description": "Optional. Restrict results to these publishers' domains (e.g. reuters.com, bbc.co.uk). Combined with your queries via site:. With no query, scrapes the latest Google News articles from these sites.",
            "items": {
              "type": "string"
            }
          },
          "editions": {
            "title": "🌍 Country & language editions",
            "type": "array",
            "description": "Google News edition(s) to search. Each edition is a separate feed, so results differ by country/language.",
            "items": {
              "type": "string",
              "enum": [
                "US:en",
                "GB:en",
                "AU:en",
                "CA:en",
                "IN:en",
                "IE:en",
                "NZ:en",
                "SG:en",
                "ZA:en",
                "PH:en",
                "NG:en",
                "PK:en",
                "DE:de",
                "AT:de",
                "CH:de",
                "FR:fr",
                "CA:fr",
                "ES:es",
                "MX:es-419",
                "AR:es-419",
                "IT:it",
                "NL:nl",
                "BE:nl",
                "BR:pt-419",
                "PT:pt-150",
                "PL:pl",
                "SE:sv",
                "NO:no",
                "TR:tr",
                "JP:ja",
                "KR:ko",
                "IN:hi",
                "ID:id",
                "UA:uk",
                "IL:he",
                "AE:ar",
                "TW:zh-Hant",
                "CN:zh-Hans"
              ],
              "enumTitles": [
                "United States (English)",
                "United Kingdom (English)",
                "Australia (English)",
                "Canada (English)",
                "India (English)",
                "Ireland (English)",
                "New Zealand (English)",
                "Singapore (English)",
                "South Africa (English)",
                "Philippines (English)",
                "Nigeria (English)",
                "Pakistan (English)",
                "Germany (Deutsch)",
                "Austria (Deutsch)",
                "Switzerland (Deutsch)",
                "France (Français)",
                "Canada (Français)",
                "Spain (Español)",
                "Mexico (Español)",
                "Argentina (Español)",
                "Italy (Italiano)",
                "Netherlands (Nederlands)",
                "Belgium (Nederlands)",
                "Brazil (Português)",
                "Portugal (Português)",
                "Poland (Polski)",
                "Sweden (Svenska)",
                "Norway (Norsk)",
                "Turkey (Türkçe)",
                "Japan (日本語)",
                "South Korea (한국어)",
                "India (हिन्दी)",
                "Indonesia (Bahasa)",
                "Ukraine (Українська)",
                "Israel (עברית)",
                "UAE (العربية)",
                "Taiwan (中文繁體)",
                "China (中文简体)"
              ]
            },
            "default": [
              "US:en"
            ]
          },
          "timeRange": {
            "title": "⏱️ Time range",
            "enum": [
              "any",
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles published in this recent window. Ignored when you set dates below.",
            "default": "any"
          },
          "dateFrom": {
            "title": "📅 Published after (date)",
            "type": "string",
            "description": "Optional start date (YYYY-MM-DD) or relative like '30 days'. Search queries only."
          },
          "dateTo": {
            "title": "📅 Published before (date)",
            "type": "string",
            "description": "Optional end date (YYYY-MM-DD), inclusive. Defaults to today when 'Published after' is set."
          },
          "splitByDay": {
            "title": "Split date range by day",
            "type": "boolean",
            "description": "Run one search per day between the two dates (up to 100 articles per day per query) instead of one search for the whole range. Great for historical news monitoring and building datasets.",
            "default": true
          },
          "maxArticlesPerQuery": {
            "title": "Max articles per query / topic",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap per search query, topic or top-stories feed (per edition). With 'Split by day' this applies to the query total across all days.",
            "default": 100
          },
          "maxArticles": {
            "title": "Max articles in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap for the whole run (0 = no limit). Keeps cost predictable.",
            "default": 0
          },
          "resolveUrls": {
            "title": "🔗 Resolve real publisher URLs",
            "type": "boolean",
            "description": "Decode Google's news.google.com/rss/articles/... redirect links into the original article URL (e.g. https://www.reuters.com/...). Included in the article price.",
            "default": true
          },
          "extractFullText": {
            "title": "📄 Extract full article text",
            "type": "boolean",
            "description": "Open each publisher page and extract the clean article text, author, description, main image and word count (ideal for AI / RAG / sentiment). Charged as an add-on only when text is actually extracted - paywalled or blocked pages are free.",
            "default": false
          },
          "maxTextChars": {
            "title": "Max text length",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Truncate article text to this many characters (0 = full text).",
            "default": 0
          },
          "includeRelatedCoverage": {
            "title": "Include related coverage",
            "type": "boolean",
            "description": "For topic / top-stories feeds, add the other outlets Google groups under the same story (title, source, link).",
            "default": true
          },
          "excludeSources": {
            "title": "🚫 Exclude sources",
            "type": "array",
            "description": "Skip articles whose source name or domain contains any of these (case-insensitive), e.g. 'yahoo', 'msn.com'. Skipped articles are not charged.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests. Keep it low (default 5) to stay polite and avoid Google rate limits.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}