{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper - Real Article URLs, Any Country",
    "description": "Scrape Google News search, topics and top stories in 50+ country editions. Returns the real publisher URL (Google redirects decoded), source, date and headline. Google operators, site filter and date-window slicing for deep history beyond 100 articles. HTTP-only, pay per article.",
    "version": "1.0",
    "x-build-id": "EZhRwWu4VpUq5jNox"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/randy-tools~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-randy-tools-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/randy-tools~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-randy-tools-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/randy-tools~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-randy-tools-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 Google News operators, e.g. \"tesla when:7d\", \"intitle:merger\", \"\\\"exact phrase\\\" site:reuters.com\". One search per query and edition.",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "title": "Only these sites",
            "type": "array",
            "description": "Restrict results to publisher domains, e.g. \"reuters.com\". Works alone (latest from those sites) or combined with queries.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Google News topic feeds.",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "topStories": {
            "title": "Top stories",
            "type": "boolean",
            "description": "Also scrape the front page (Top stories) of each edition.",
            "default": false
          },
          "editions": {
            "title": "Editions (country and language)",
            "type": "array",
            "description": "Google News editions to search. Each query runs once per edition. Default: United States (English).",
            "items": {
              "type": "string",
              "enum": [
                "US:en",
                "GB:en",
                "CA:en",
                "AU:en",
                "NZ:en",
                "IE:en",
                "IN:en",
                "SG:en",
                "ZA:en",
                "PH:en",
                "NG:en",
                "DE:de",
                "AT:de",
                "CH:de",
                "FR:fr",
                "BE:fr",
                "CA:fr",
                "IT:it",
                "ES:es",
                "MX:es-419",
                "AR:es-419",
                "CO:es-419",
                "CL:es-419",
                "US:es-419",
                "BR:pt-419",
                "PT:pt-150",
                "NL:nl",
                "BE:nl",
                "PL:pl",
                "CZ:cs",
                "SE:sv",
                "NO:no",
                "DK:da",
                "FI:fi",
                "GR:el",
                "HU:hu",
                "RO:ro",
                "TR:tr",
                "RU:ru",
                "UA:uk",
                "IL:he",
                "SA:ar",
                "AE:ar",
                "EG:ar",
                "JP:ja",
                "KR:ko",
                "TW:zh-Hant",
                "HK:zh-Hant",
                "ID:id",
                "TH:th",
                "VN:vi"
              ],
              "enumTitles": [
                "United States (English) (US:en)",
                "United Kingdom (GB:en)",
                "Canada (English) (CA:en)",
                "Australia (AU:en)",
                "New Zealand (NZ:en)",
                "Ireland (IE:en)",
                "India (English) (IN:en)",
                "Singapore (SG:en)",
                "South Africa (ZA:en)",
                "Philippines (PH:en)",
                "Nigeria (NG:en)",
                "Germany (DE:de)",
                "Austria (AT:de)",
                "Switzerland (German) (CH:de)",
                "France (FR:fr)",
                "Belgium (French) (BE:fr)",
                "Canada (French) (CA:fr)",
                "Italy (IT:it)",
                "Spain (ES:es)",
                "Mexico (MX:es-419)",
                "Argentina (AR:es-419)",
                "Colombia (CO:es-419)",
                "Chile (CL:es-419)",
                "United States (Spanish) (US:es-419)",
                "Brazil (BR:pt-419)",
                "Portugal (PT:pt-150)",
                "Netherlands (NL:nl)",
                "Belgium (Dutch) (BE:nl)",
                "Poland (PL:pl)",
                "Czechia (CZ:cs)",
                "Sweden (SE:sv)",
                "Norway (NO:no)",
                "Denmark (DK:da)",
                "Finland (FI:fi)",
                "Greece (GR:el)",
                "Hungary (HU:hu)",
                "Romania (RO:ro)",
                "Turkey (TR:tr)",
                "Russia (RU:ru)",
                "Ukraine (UA:uk)",
                "Israel (IL:he)",
                "Saudi Arabia (SA:ar)",
                "United Arab Emirates (AE:ar)",
                "Egypt (EG:ar)",
                "Japan (JP:ja)",
                "South Korea (KR:ko)",
                "Taiwan (TW:zh-Hant)",
                "Hong Kong (HK:zh-Hant)",
                "Indonesia (ID:id)",
                "Thailand (TH:th)",
                "Vietnam (VN:vi)"
              ]
            },
            "default": [
              "US:en"
            ]
          },
          "maxItemsPerQuery": {
            "title": "Max articles per query",
            "minimum": 1,
            "type": "integer",
            "description": "Per query, topic or edition. One feed holds about 100 articles; above that the run walks back through date windows automatically.",
            "default": 50
          },
          "when": {
            "title": "Recency",
            "enum": [
              "",
              "1h",
              "6h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles newer than this. Ignored when a date range is set or the query already has when:/after:/before:.",
            "default": ""
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive. Together with maxItemsPerQuery this pulls deep history by slicing into date windows."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive. Defaults to today."
          },
          "lookbackDays": {
            "title": "Deep-search lookback (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "When maxItemsPerQuery exceeds one feed and no start date is set, the run walks back at most this many days.",
            "default": 365
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Skip articles already output in this run (same story from several queries or editions).",
            "default": true
          },
          "decodeUrls": {
            "title": "Decode publisher URLs",
            "type": "boolean",
            "description": "Replace Google's redirect link with the real publisher URL. Costs two extra requests per article; if it fails the Google link is kept with urlDecoded=false.",
            "default": true
          },
          "decodeConcurrency": {
            "title": "Decode concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel link decodes. Keep low; Google throttles aggressive clients.",
            "default": 3
          },
          "fetchArticleMeta": {
            "title": "Fetch article image and description",
            "type": "boolean",
            "description": "Open each publisher page and add its og:image and og:description. Slower; some publishers block it. Needs decoded URLs.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Off by default: Google News works without one. If Google throttles the run, it switches to Apify datacenter proxy by itself. Enable to use a proxy from the start.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}