{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper",
    "description": "Google News articles by keyword over any date range (past the 100-result limit), plus top stories, topics and local news for 55 country editions. Headline, publisher, site, time and related coverage. Source filters and news alerts.",
    "version": "0.1",
    "x-build-id": "1NXS8USuRL0wg0e2v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/snappytools~google-news-rss-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-snappytools-google-news-rss-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/snappytools~google-news-rss-scraper/runs": {
      "post": {
        "operationId": "runs-sync-snappytools-google-news-rss-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/snappytools~google-news-rss-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-snappytools-google-news-rss-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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "Keywords, one per line. Google News search operators work: \"exact phrase\", site:reuters.com, OR, -word.",
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "title": "Topics",
            "type": "array",
            "description": "Google News sections for each country edition.",
            "items": {
              "type": "string",
              "enum": [
                "TOP",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "Local news",
            "type": "array",
            "description": "Cities or regions, one per line, such as \"Sydney\" or \"Texas\": Google News' local news for each.",
            "items": {
              "type": "string"
            }
          },
          "editions": {
            "title": "Country editions",
            "type": "array",
            "description": "Which Google News editions to read, each in its own language. Default: United States.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "CA",
                "AU",
                "IN",
                "IE",
                "NZ",
                "SG",
                "ZA",
                "MY",
                "PH",
                "NG",
                "KE",
                "PK",
                "DE",
                "AT",
                "CH",
                "FR",
                "BE",
                "ES",
                "MX",
                "AR",
                "CO",
                "CL",
                "PE",
                "IT",
                "NL",
                "BR",
                "PT",
                "PL",
                "SE",
                "NO",
                "DK",
                "FI",
                "CZ",
                "SK",
                "HU",
                "RO",
                "GR",
                "TR",
                "UA",
                "RU",
                "IL",
                "AE",
                "SA",
                "EG",
                "JP",
                "KR",
                "TW",
                "HK",
                "CN",
                "ID",
                "TH",
                "VN"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "Canada",
                "Australia",
                "India",
                "Ireland",
                "New Zealand",
                "Singapore",
                "South Africa",
                "Malaysia",
                "Philippines",
                "Nigeria",
                "Kenya",
                "Pakistan",
                "Germany",
                "Austria",
                "Switzerland",
                "France",
                "Belgium",
                "Spain",
                "Mexico",
                "Argentina",
                "Colombia",
                "Chile",
                "Peru",
                "Italy",
                "Netherlands",
                "Brazil",
                "Portugal",
                "Poland",
                "Sweden",
                "Norway",
                "Denmark",
                "Finland",
                "Czechia",
                "Slovakia",
                "Hungary",
                "Romania",
                "Greece",
                "Turkey",
                "Ukraine",
                "Russia",
                "Israel",
                "United Arab Emirates",
                "Saudi Arabia",
                "Egypt",
                "Japan",
                "South Korea",
                "Taiwan",
                "Hong Kong",
                "China",
                "Indonesia",
                "Thailand",
                "Vietnam"
              ]
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Searches only: articles from this date (YYYY-MM-DD). Searches over a date range are read one day at a time, so you get far more than Google's 100 per search."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Searches only: articles up to this date. Default: today."
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "Only recent articles.",
            "default": "any"
          },
          "maxArticlesPerSearch": {
            "title": "Maximum articles per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For each search, topic or place, per edition. Above 100, searches are read one day at a time (going back up to a year, or over your dates). Default 100."
          },
          "onlySources": {
            "title": "Only these sources",
            "type": "array",
            "description": "Publisher names or sites, such as \"Reuters\" or \"bbc.co.uk\".",
            "items": {
              "type": "string"
            }
          },
          "excludeSources": {
            "title": "Leave out these sources",
            "type": "array",
            "description": "Publisher names or sites to skip.",
            "items": {
              "type": "string"
            }
          },
          "includeRelated": {
            "title": "Include related coverage",
            "type": "boolean",
            "description": "For top stories and topics: the other outlets' headlines Google groups with each story.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new articles since my last run",
            "type": "boolean",
            "description": "Skip articles an earlier run already returned. Use it with a schedule for news alerts.",
            "default": false
          },
          "queries": {
            "title": "Queries (older setting)",
            "type": "array",
            "description": "Kept so older saved tasks keep working. Use Searches instead.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country code (older setting)",
            "type": "string",
            "description": "Kept so older saved tasks keep working. Use Country editions instead."
          },
          "language": {
            "title": "Language code (older setting)",
            "type": "string",
            "description": "Kept so older saved tasks keep working."
          },
          "maxItemsPerFeed": {
            "title": "Max items per feed (older setting)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Kept so older saved tasks keep working."
          },
          "maxAgeHours": {
            "title": "Max article age in hours (older setting)",
            "minimum": 0,
            "type": "integer",
            "description": "Kept so older saved tasks keep working."
          },
          "dedupeAcrossRuns": {
            "title": "De-duplicate across runs (older setting)",
            "type": "boolean",
            "description": "Kept so older saved tasks keep working."
          },
          "topics": {
            "title": "Topics (older setting)",
            "type": "array",
            "description": "Kept so older saved tasks keep working. Use Topics above instead.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}