{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper",
    "description": "Unlock timely news insights with our Google News data retrieval tool. Get the latest news on any news at any time, and more. Effortless and powerful. 📰🔍 #NewsData",
    "version": "0.0",
    "x-build-id": "oPXaPPBN9BLt8NPCX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epctex~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epctex-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/epctex~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epctex-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/epctex~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epctex-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": [
          "proxy"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "URLs to start with. It should be search, topic, category, or list URL",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search queries",
            "type": "array",
            "description": "The keywords that you can search on Google News",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Region Language Pair",
            "enum": [
              "US:en",
              "AU:en",
              "BW:en",
              "CA:en",
              "ET:en",
              "GH:en",
              "IN:en",
              "ID:en",
              "IE:en",
              "IL:en",
              "KE:en",
              "LV:en",
              "MY:en",
              "NA:en",
              "NZ:en",
              "NG:en",
              "PK:en",
              "PH:en",
              "SG:en",
              "ZA:en",
              "TZ:en",
              "UG:en",
              "GB:en",
              "ZW:en",
              "ID:id",
              "CZ:cs",
              "DE:de",
              "AT:de",
              "CH:de",
              "AR:es-419",
              "CL:es-419",
              "CO:es-419",
              "CU:es-419",
              "ES:es",
              "US:es-419",
              "MX:es-419",
              "PE:es-419",
              "VE:es-419",
              "BE:fr",
              "CA:fr",
              "FR:fr",
              "MA:fr",
              "SN:fr",
              "CH:fr",
              "IT:it",
              "LV:lv",
              "LT:lt",
              "HU:hu",
              "BE:nl",
              "NL:nl",
              "NO:no",
              "PL:pl",
              "BR:pt-419",
              "PT:pt-150",
              "RO:ro",
              "SK:sk",
              "SI:sl",
              "SE:sv",
              "VN:vi",
              "TR:tr",
              "GR:el",
              "BG:bg",
              "RU:ru",
              "UA:ru",
              "RS:sr",
              "UA:uk",
              "IL:he",
              "AE:ar",
              "SA:ar",
              "LB:ar",
              "EG:ar",
              "IN:mr",
              "IN:hi",
              "BD:bn",
              "IN:bn",
              "IN:ta",
              "IN:te",
              "IN:ml",
              "TH:th",
              "CN:zh-Hans",
              "TW:zh-Hant",
              "HK:zh-Hant",
              "JP:ja",
              "KR:ko"
            ],
            "type": "string",
            "description": "This value determines language and region for the news. This setting only applies to Search queries, not the start URLs.",
            "default": "US:en"
          },
          "date": {
            "title": "Date",
            "enum": [
              "",
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Date of the news. This setting only applies to Search queries, not the start URLs.",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum number of listing items",
            "type": "integer",
            "description": "Maximum number of items that you want as output. Default is all"
          },
          "maxNewsPerEachItem": {
            "title": "Maximum number of news per each listing items",
            "type": "integer",
            "description": "Maximum number of news per each items that you want as output. Default is all"
          },
          "decodeArticleUrls": {
            "title": "Decode Article URLs",
            "type": "boolean",
            "description": "When enabled, the actor will resolve and decode Google News article links, adding the final, real article URL to a separate field in the output.",
            "default": false
          },
          "extendOutputFunction": {
            "title": "Extend output function",
            "type": "string",
            "description": "Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output"
          },
          "customMapFunction": {
            "title": "Custom map function",
            "type": "string",
            "description": "Function that takes each of the objects as argument and returns data that will be mapped by the function itself."
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}