{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper [only $0.7/1K]",
    "description": "Scrape Google News articles for any search query at scale. Get position, title, URL, source, date and snippet for up to 5,000 results per query, in any country and language, with time-based filtering. Supports bulk queries. Fast, reliable and cost-efficient.",
    "version": "1.0",
    "x-build-id": "KltAsVgCLEJEBwMn7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lofomachines~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lofomachines-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/lofomachines~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lofomachines-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/lofomachines~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lofomachines-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",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 1000,
            "uniqueItems": true,
            "type": "array",
            "description": "Enter 1–1000 search terms, one per line. Each query is scraped in parallel. Google operators such as <code>site:</code>, quotes, and minus terms are supported.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": [
              "artificial intelligence"
            ]
          },
          "maxItems": {
            "title": "Max results per query",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of news articles to collect for each query (100–5000). Google rarely serves more than a few hundred news results for a single query; use narrower queries or time filters to gather more.",
            "default": 100
          },
          "gl": {
            "title": "Country (gl)",
            "enum": [
              "ad",
              "ae",
              "af",
              "ag",
              "al",
              "am",
              "ao",
              "ar",
              "at",
              "au",
              "az",
              "ba",
              "bd",
              "be",
              "bf",
              "bg",
              "bh",
              "bi",
              "bj",
              "bn",
              "bo",
              "br",
              "bs",
              "bt",
              "bw",
              "by",
              "ca",
              "cd",
              "cf",
              "cg",
              "ch",
              "ci",
              "cl",
              "cm",
              "cn",
              "co",
              "cr",
              "cu",
              "cv",
              "cy",
              "cz",
              "de",
              "dj",
              "dk",
              "dm",
              "do",
              "dz",
              "ec",
              "ee",
              "eg",
              "es",
              "et",
              "fi",
              "fj",
              "fr",
              "ga",
              "ge",
              "gg",
              "gh",
              "gi",
              "gm",
              "gr",
              "gt",
              "gw",
              "gy",
              "hk",
              "hn",
              "hr",
              "ht",
              "hu",
              "id",
              "ie",
              "il",
              "im",
              "in",
              "iq",
              "is",
              "it",
              "je",
              "jm",
              "jo",
              "jp",
              "ke",
              "kg",
              "kh",
              "ki",
              "kr",
              "kw",
              "kz",
              "la",
              "lb",
              "li",
              "lk",
              "ls",
              "lt",
              "lu",
              "lv",
              "ly",
              "ma",
              "md",
              "me",
              "mg",
              "mk",
              "ml",
              "mm",
              "mn",
              "mt",
              "mu",
              "mv",
              "mw",
              "mx",
              "my",
              "mz",
              "na",
              "ne",
              "ng",
              "ni",
              "nl",
              "no",
              "np",
              "nr",
              "nz",
              "om",
              "pa",
              "pe",
              "pg",
              "ph",
              "pk",
              "pl",
              "ps",
              "pt",
              "py",
              "qa",
              "ro",
              "rs",
              "ru",
              "rw",
              "sa",
              "sc",
              "se",
              "sg",
              "si",
              "sk",
              "sl",
              "sm",
              "sn",
              "so",
              "st",
              "sv",
              "td",
              "tg",
              "th",
              "tj",
              "tl",
              "tm",
              "tn",
              "to",
              "tr",
              "tt",
              "tw",
              "tz",
              "ua",
              "ug",
              "uk",
              "us",
              "uy",
              "uz",
              "va",
              "ve",
              "vn",
              "vu",
              "ws",
              "xk",
              "ye",
              "za",
              "zm",
              "zw"
            ],
            "type": "string",
            "description": "Google country code used to localize results, e.g. <code>us</code> for United States. The correct Google domain is selected automatically.",
            "default": "us"
          },
          "hl": {
            "title": "Interface language (hl)",
            "enum": [
              "ar",
              "bg",
              "ca",
              "cs",
              "da",
              "de",
              "el",
              "en",
              "es",
              "et",
              "fi",
              "fr",
              "he",
              "hi",
              "hr",
              "hu",
              "id",
              "is",
              "it",
              "ja",
              "ko",
              "lt",
              "lv",
              "ms",
              "nl",
              "no",
              "pl",
              "pt",
              "ro",
              "ru",
              "sk",
              "sl",
              "sr",
              "sv",
              "th",
              "tr",
              "uk",
              "vi",
              "zh-cn",
              "zh-tw"
            ],
            "type": "string",
            "description": "Google interface language, e.g. <code>en</code> for English.",
            "default": "en"
          },
          "lr": {
            "title": "Result language (lr)",
            "enum": [
              "lang_ar",
              "lang_bg",
              "lang_ca",
              "lang_cs",
              "lang_da",
              "lang_de",
              "lang_el",
              "lang_en",
              "lang_es",
              "lang_et",
              "lang_fi",
              "lang_fr",
              "lang_he",
              "lang_hi",
              "lang_hr",
              "lang_hu",
              "lang_id",
              "lang_is",
              "lang_it",
              "lang_ja",
              "lang_ko",
              "lang_lt",
              "lang_lv",
              "lang_ms",
              "lang_nl",
              "lang_no",
              "lang_pl",
              "lang_pt",
              "lang_ro",
              "lang_ru",
              "lang_sk",
              "lang_sl",
              "lang_sr",
              "lang_sv",
              "lang_th",
              "lang_tr",
              "lang_uk",
              "lang_vi",
              "lang_zh-CN",
              "lang_zh-TW"
            ],
            "type": "string",
            "description": "Restrict results to a specific language, e.g. <code>lang_en</code> for English. Leave empty for all languages."
          },
          "cr": {
            "title": "Country restriction (cr)",
            "enum": [
              "countryAD",
              "countryAE",
              "countryAF",
              "countryAG",
              "countryAL",
              "countryAM",
              "countryAO",
              "countryAR",
              "countryAT",
              "countryAU",
              "countryAZ",
              "countryBA",
              "countryBD",
              "countryBE",
              "countryBF",
              "countryBG",
              "countryBH",
              "countryBI",
              "countryBJ",
              "countryBN",
              "countryBO",
              "countryBR",
              "countryBS",
              "countryBT",
              "countryBW",
              "countryBY",
              "countryCA",
              "countryCD",
              "countryCF",
              "countryCG",
              "countryCH",
              "countryCI",
              "countryCL",
              "countryCM",
              "countryCN",
              "countryCO",
              "countryCR",
              "countryCU",
              "countryCV",
              "countryCY",
              "countryCZ",
              "countryDE",
              "countryDJ",
              "countryDK",
              "countryDM",
              "countryDO",
              "countryDZ",
              "countryEC",
              "countryEE",
              "countryEG",
              "countryES",
              "countryET",
              "countryFI",
              "countryFJ",
              "countryFR",
              "countryGA",
              "countryGE",
              "countryGG",
              "countryGH",
              "countryGI",
              "countryGM",
              "countryGR",
              "countryGT",
              "countryGW",
              "countryGY",
              "countryHK",
              "countryHN",
              "countryHR",
              "countryHT",
              "countryHU",
              "countryID",
              "countryIE",
              "countryIL",
              "countryIM",
              "countryIN",
              "countryIQ",
              "countryIS",
              "countryIT",
              "countryJE",
              "countryJM",
              "countryJO",
              "countryJP",
              "countryKE",
              "countryKG",
              "countryKH",
              "countryKI",
              "countryKR",
              "countryKW",
              "countryKZ",
              "countryLA",
              "countryLB",
              "countryLI",
              "countryLK",
              "countryLS",
              "countryLT",
              "countryLU",
              "countryLV",
              "countryLY",
              "countryMA",
              "countryMD",
              "countryME",
              "countryMG",
              "countryMK",
              "countryML",
              "countryMM",
              "countryMN",
              "countryMT",
              "countryMU",
              "countryMV",
              "countryMW",
              "countryMX",
              "countryMY",
              "countryMZ",
              "countryNA",
              "countryNE",
              "countryNG",
              "countryNI",
              "countryNL",
              "countryNO",
              "countryNP",
              "countryNR",
              "countryNZ",
              "countryOM",
              "countryPA",
              "countryPE",
              "countryPG",
              "countryPH",
              "countryPK",
              "countryPL",
              "countryPS",
              "countryPT",
              "countryPY",
              "countryQA",
              "countryRO",
              "countryRS",
              "countryRU",
              "countryRW",
              "countrySA",
              "countrySC",
              "countrySE",
              "countrySG",
              "countrySI",
              "countrySK",
              "countrySL",
              "countrySM",
              "countrySN",
              "countrySO",
              "countryST",
              "countrySV",
              "countryTD",
              "countryTG",
              "countryTH",
              "countryTJ",
              "countryTL",
              "countryTM",
              "countryTN",
              "countryTO",
              "countryTR",
              "countryTT",
              "countryTW",
              "countryTZ",
              "countryUA",
              "countryUG",
              "countryUK",
              "countryUS",
              "countryUY",
              "countryUZ",
              "countryVA",
              "countryVE",
              "countryVN",
              "countryVU",
              "countryWS",
              "countryYE",
              "countryZA",
              "countryZM",
              "countryZW"
            ],
            "type": "string",
            "description": "Restrict results to documents from a specific country, e.g. <code>countryUS</code>. Leave empty for all countries."
          },
          "filter": {
            "title": "Filter similar results",
            "enum": [
              "1",
              "0"
            ],
            "type": "string",
            "description": "Whether to filter similar results. <code>1</code> removes re-published articles that share the same headline, <code>0</code> returns everything.",
            "default": "1"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "anytime",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Optionally focus results on recently published articles. Past month is a rolling 30-day window.",
            "default": "anytime"
          },
          "maxConcurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum simultaneous HTTP requests across all queries.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}