{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper | Articles by Keyword & Topic",
    "description": "Get Google News articles by keyword, topic, place or top stories: title, source, publish time, position, related coverage and Google News link. 86 editions (country + language), date ranges, many queries per run, no login.",
    "version": "0.0",
    "x-build-id": "9IurTufOM73Anfr3y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~google-news-articles-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-google-news-articles-search-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/genial_candlestand~google-news-articles-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-google-news-articles-search-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/genial_candlestand~google-news-articles-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-google-news-articles-search-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 keywords",
            "type": "array",
            "description": "Keywords to search on Google News, one per line. Operators work: \"exact phrase\", OR, -word, site:reuters.com, intitle:, source:, when:7d, after:YYYY-MM-DD before:YYYY-MM-DD. Do not put when:/after:/before: in a query when Time range or the dates below are set. One search gives up to ~100 articles; set Date from/Date to for more.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topic sections",
            "type": "array",
            "description": "Google News sections of the chosen edition (50–70 articles each, with related coverage).",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation (the edition's country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "topicIds": {
            "title": "Topic pages (ids or URLs)",
            "type": "array",
            "description": "Any Google News topic page: an id starting with CAAq, or a URL like https://news.google.com/topics/CAAq...; the hl/gl/ceid of the URL are ignored, the edition comes from Country and Language.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Local news (places)",
            "type": "array",
            "description": "Local news by place name, e.g. Chicago or München. Use a place in the edition's country and its local spelling; places outside that country or unknown to Google give no articles (a warning).",
            "items": {
              "type": "string"
            }
          },
          "topStories": {
            "title": "Top stories",
            "type": "boolean",
            "description": "Also fetch the top stories (home page) of the edition. They are fetched automatically when no keywords, topics, topic pages or places are given.",
            "default": false
          },
          "country": {
            "title": "Country (edition)",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Google News edition country, ISO 3166-1 alpha-2: US, GB, DE, FR, IN, BR, JP, MX, ... (UK is accepted as GB). 71 countries have an edition; others (e.g. DK) are an input error that lists the supported ones.",
            "default": "US"
          },
          "language": {
            "title": "Language (edition)",
            "type": "string",
            "description": "Edition language, ISO 639-1 (en, de, es, pt, zh, ...) or Google's code (es-419, pt-BR, zh-Hant). Only languages Google offers for the country work, e.g. US: en, es; IN: en, hi, bn, ta, te, ml, mr, gu; CA: en, fr; DE: de only. Empty = the country's main language."
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "any",
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles from the last hour/day/week/month/year. Searches use Google's when: filter; topics, topic pages, places and top stories are filtered by publish time. Not together with Date from/Date to.",
            "default": "any"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Only articles published on or after this day (YYYY-MM-DD). Each search is split into one search per day, so you get far more than 100 articles per keyword. Date to defaults to today. Not together with Time range."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Only articles published on or before this day (YYYY-MM-DD). Needs Date from; a future day is treated as today."
          },
          "maxItems": {
            "title": "Max articles",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of articles in the whole run (each article is one paid result).",
            "default": 1000
          },
          "maxItemsPerQuery": {
            "title": "Max articles per keyword / topic / place",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum articles for each keyword, topic, topic page, place and the top stories (a keyword with a date range counts as one). Empty = no limit."
          },
          "decodeUrls": {
            "title": "Publisher URL (paid add-on)",
            "type": "boolean",
            "description": "Add publisherUrl, the real article URL on the publisher's site, next to the Google News link. Charged per decoded article; slower (one Google page per article).",
            "default": false
          },
          "fetchArticleDetails": {
            "title": "Image, description, author (paid add-on)",
            "type": "boolean",
            "description": "Open each article on the publisher's site and add imageUrl, description and author. Turns on Publisher URL (needed to find the page). Charged per article with details; slower.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. The default Apify datacenter proxy works. With an add-on on, a residential proxy is replaced by datacenter (article pages are heavy).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}