{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper & API · News Search & Headlines",
    "description": "Google News scraper & news API, no API key: 1,994 articles from 20 searches in 22 s. News search by keyword with Google's operators, topic, place or publisher; 83 editions; last N hours or dates, past the 100 cap. Headline, publisher, time, related coverage; ticks add the real link, article text.",
    "version": "1.0",
    "x-build-id": "TzYiS6GZEdhNF3z7r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-data-api~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-data-api-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/instagram-data-api~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-instagram-data-api-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/instagram-data-api~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-data-api-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 keywords",
            "type": "array",
            "description": "One search per line, written as in Google News. Google's operators work: \"exact phrase\", OR, -word, intitle:word, site:reuters.com. Each search returns up to «Maximum articles per search».",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Google News sections of the chosen edition. A topic feed holds 30–70 articles and has no dates.",
            "items": {
              "type": "string",
              "enum": [
                "TOP",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation (the edition's country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "Places (local news)",
            "type": "array",
            "description": "City, region or country names — Google News' local feed of each place, e.g. New York, Bavaria, Tokyo.",
            "items": {
              "type": "string"
            }
          },
          "publishers": {
            "title": "Publishers (websites)",
            "type": "array",
            "description": "Domains like reuters.com, one per line. With keywords: each keyword is searched on each website (site:). Without keywords: the newest articles of each website.",
            "items": {
              "type": "string"
            }
          },
          "topicUrls": {
            "title": "Google News links",
            "type": "array",
            "description": "Any topic, section, location or search link copied from news.google.com.",
            "items": {
              "type": "string"
            }
          },
          "edition": {
            "title": "Country and language (edition)",
            "enum": [
              "US:en",
              "US:es-419",
              "GB:en",
              "CA:en",
              "CA:fr",
              "AU:en",
              "NZ:en",
              "IE:en",
              "IN:en",
              "IN:hi",
              "IN:bn",
              "IN:ta",
              "IN:te",
              "IN:ml",
              "IN:mr",
              "SG:en",
              "PH:en",
              "MY:en",
              "PK:en",
              "ID:en",
              "ID:id",
              "ZA:en",
              "NG:en",
              "KE:en",
              "GH:en",
              "UG:en",
              "TZ:en",
              "ZW:en",
              "BW:en",
              "NA:en",
              "ET:en",
              "IL:en",
              "IL:he",
              "DE:de",
              "AT:de",
              "CH:de",
              "CH:fr",
              "FR:fr",
              "BE:fr",
              "BE:nl",
              "NL:nl",
              "IT:it",
              "ES:es",
              "MX:es-419",
              "AR:es-419",
              "CO:es-419",
              "CL:es-419",
              "PE:es-419",
              "VE:es-419",
              "CU:es-419",
              "BR:pt-419",
              "PT:pt-150",
              "PL:pl",
              "CZ:cs",
              "SK:sk",
              "HU:hu",
              "RO:ro",
              "BG:bg",
              "GR:el",
              "TR:tr",
              "RU:ru",
              "UA:uk",
              "UA:ru",
              "RS:sr",
              "SI:sl",
              "LT:lt",
              "LV:lv",
              "SE:sv",
              "NO:no",
              "JP:ja",
              "KR:ko",
              "CN:zh-Hans",
              "TW:zh-Hant",
              "HK:zh-Hant",
              "TH:th",
              "VN:vi",
              "BD:bn",
              "AE:ar",
              "SA:ar",
              "EG:ar",
              "LB:ar",
              "MA:fr",
              "SN:fr"
            ],
            "type": "string",
            "description": "Google News has its own results for each country and language. Through the API you can also send `country` + `language`.",
            "default": "US:en"
          },
          "maxItemsPerQuery": {
            "title": "Maximum articles per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Google News shows about 100 articles per search. Ask for more and the Actor reads the period day by day (about 100 a day), newest first, until it has them.",
            "default": 100
          },
          "period": {
            "title": "Published in the last…",
            "type": "string",
            "description": "For example: 1 hour, 12 hours, 3 days, 2 weeks, 1 month, 1 year. Empty = any time. Works for keyword searches."
          },
          "dateFrom": {
            "title": "Published from (date)",
            "type": "string",
            "description": "First day, YYYY-MM-DD. Used instead of «Published in the last…». Google counts days in US Pacific time."
          },
          "dateTo": {
            "title": "Published to (date)",
            "type": "string",
            "description": "Last day, YYYY-MM-DD, included. Empty = until today."
          },
          "sort": {
            "title": "Order",
            "enum": [
              "relevance",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Google News has no «sort by date» of its own: «Newest first» reads the most recent days first and orders the articles by publish time.",
            "default": "relevance"
          },
          "resolvePublisherUrls": {
            "title": "Publisher's real link (+$1.00 per 1,000 links on Starter)",
            "type": "boolean",
            "description": "Google News gives its own redirect link. Tick to get the article's real address on the publisher's site in `url` (and the AMP address when Google has one). Charged per link delivered.",
            "default": false
          },
          "includeArticleDetails": {
            "title": "Article details: description, image, author, text (+$1.00 per 1,000 pages on Starter)",
            "type": "boolean",
            "description": "Opens each article on the publisher's site and adds its description, image, author, publish and update time, section, keywords and the article text. Needs the publisher's link, so that add-on is switched on and charged too. A page that refuses a plain request is not charged.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "The Actor remembers the articles it delivered (in the named key-value store «google-news-scraper-state») and the next run with the same monitor name delivers and charges only articles it has not delivered before. Schedule it to get a news alert feed.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share one memory. Empty = a name made from the searches and the edition, so the same input continues its own monitor."
          },
          "maxItems": {
            "title": "Maximum articles in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many articles. Empty = no total limit."
          },
          "deduplicate": {
            "title": "One row per article in a run",
            "type": "boolean",
            "description": "An article found by several searches is delivered and charged once (for the first search in your list). Untick to get it under every search.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Requests at once",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many requests run in parallel.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is enough and is the default. If it stops answering, feeds move to another route by themselves.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}