{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper & Monitor",
    "description": "Scrape Google News by keyword or topic in 62 country editions. Get real publisher URLs, more than 100 articles per query, and an only-new-articles mode for scheduled monitoring.",
    "version": "0.1",
    "x-build-id": "8ce8g1uT94hzCmFN7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/padmaraj1994~google-news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-padmaraj1994-google-news-monitor",
        "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/padmaraj1994~google-news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-padmaraj1994-google-news-monitor",
        "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/padmaraj1994~google-news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-padmaraj1994-google-news-monitor",
        "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 to search on Google News, one per line. Google News operators work: \"exact phrase\", OR, -exclude, site:reuters.com, intitle:word.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topic headlines",
            "type": "array",
            "description": "Also (or instead) get the current headlines of these Google News sections. Date filters don't apply to topics.",
            "items": {
              "type": "string",
              "enum": [
                "TOP_STORIES",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation (the edition's country)",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "editions": {
            "title": "Countries and languages",
            "type": "array",
            "description": "Google News editions to search. Every query and topic runs once per edition.",
            "items": {
              "type": "string",
              "enum": [
                "US:en",
                "GB:en",
                "IN:en",
                "AU:en",
                "CA:en",
                "IE:en",
                "NZ:en",
                "SG:en",
                "ZA:en",
                "NG:en",
                "PH:en",
                "PK:en",
                "MY:en",
                "KE:en",
                "CA:fr",
                "FR:fr",
                "BE:fr",
                "CH:fr",
                "DE:de",
                "AT:de",
                "CH:de",
                "ES:es",
                "MX:es-419",
                "AR:es-419",
                "CO:es-419",
                "CL:es-419",
                "US:es-419",
                "BR:pt-419",
                "PT:pt-150",
                "IT:it",
                "NL:nl",
                "BE:nl",
                "PL:pl",
                "SE:sv",
                "NO:no",
                "FI:fi",
                "CZ:cs",
                "HU:hu",
                "RO:ro",
                "GR:el",
                "TR:tr",
                "RU:ru",
                "UA:uk",
                "IL:he",
                "AE:ar",
                "SA:ar",
                "EG:ar",
                "IN:hi",
                "IN:bn",
                "IN:ta",
                "IN:te",
                "IN:mr",
                "IN:ml",
                "BD:bn",
                "JP:ja",
                "KR:ko",
                "CN:zh-Hans",
                "TW:zh-Hant",
                "HK:zh-Hant",
                "ID:id",
                "TH:th",
                "VN:vi"
              ],
              "enumTitles": [
                "United States (English)",
                "United Kingdom (English)",
                "India (English)",
                "Australia (English)",
                "Canada (English)",
                "Ireland (English)",
                "New Zealand (English)",
                "Singapore (English)",
                "South Africa (English)",
                "Nigeria (English)",
                "Philippines (English)",
                "Pakistan (English)",
                "Malaysia (English)",
                "Kenya (English)",
                "Canada (French)",
                "France (French)",
                "Belgium (French)",
                "Switzerland (French)",
                "Germany (German)",
                "Austria (German)",
                "Switzerland (German)",
                "Spain (Spanish)",
                "Mexico (Spanish)",
                "Argentina (Spanish)",
                "Colombia (Spanish)",
                "Chile (Spanish)",
                "United States (Spanish)",
                "Brazil (Portuguese)",
                "Portugal (Portuguese)",
                "Italy (Italian)",
                "Netherlands (Dutch)",
                "Belgium (Dutch)",
                "Poland (Polish)",
                "Sweden (Swedish)",
                "Norway (Norwegian)",
                "Finland (Finnish)",
                "Czechia (Czech)",
                "Hungary (Hungarian)",
                "Romania (Romanian)",
                "Greece (Greek)",
                "Türkiye (Turkish)",
                "Russia (Russian)",
                "Ukraine (Ukrainian)",
                "Israel (Hebrew)",
                "United Arab Emirates (Arabic)",
                "Saudi Arabia (Arabic)",
                "Egypt (Arabic)",
                "India (Hindi)",
                "India (Bengali)",
                "India (Tamil)",
                "India (Telugu)",
                "India (Marathi)",
                "India (Malayalam)",
                "Bangladesh (Bengali)",
                "Japan (Japanese)",
                "South Korea (Korean)",
                "China (Chinese, Simplified)",
                "Taiwan (Chinese, Traditional)",
                "Hong Kong (Chinese, Traditional)",
                "Indonesia (Indonesian)",
                "Thailand (Thai)",
                "Vietnam (Vietnamese)"
              ]
            },
            "default": [
              "US:en"
            ]
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "any",
              "1h",
              "12h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only articles published within this period. Ignored when you set a date range below.",
            "default": "any"
          },
          "maxArticlesPerQuery": {
            "title": "Max articles per query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Google returns at most 100 articles per search. Set a higher number to collect more: the Actor then searches one day at a time, newest first, across your time or date range (up to a year back).",
            "default": 100
          },
          "resolveUrls": {
            "title": "Get real article URLs",
            "type": "boolean",
            "description": "Turn Google News redirect links into the publisher's real article URL (in the \"url\" field). If one can't be resolved, \"url\" falls back to the Google News link.",
            "default": true
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only articles published on or after this day (Google uses Pacific Time). Leave empty for no lower limit (30 days before \"To date\")."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only articles published on or before this day. Leave empty for today."
          },
          "onlyNew": {
            "title": "Only new articles",
            "type": "boolean",
            "description": "Return only articles that previous runs of this Actor didn't return for the same query and edition. Schedule the Actor (e.g. hourly) to get a feed of fresh articles and pay only for new ones.",
            "default": false
          },
          "monitoringId": {
            "title": "Monitoring ID",
            "type": "string",
            "description": "Optional name that keeps the \"seen articles\" memory separate for different schedules that use the same queries."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed. Turn on Apify Proxy if Google starts limiting requests for very large runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}