{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper API",
    "description": "Search Google News in 87 country and language editions, or read RSS, Atom and JSON publisher feeds. Export headlines, dates, publishers and links, with word filters and deduplication. $0.95 per 1,000 articles; no full article text. Maintained by CleanScrape.",
    "version": "0.2",
    "x-build-id": "vs14rpK7heMYTTFi4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-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/cleanscrape~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-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/cleanscrape~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-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 topics",
            "type": "array",
            "description": "What to search for, one per line, written the way you would search Google News. Leave empty to use only news sections or feeds.",
            "items": {
              "type": "string"
            }
          },
          "edition": {
            "title": "Google News edition",
            "enum": [
              "US:en",
              "AR:es-419",
              "AU:en",
              "AT:de",
              "BD:bn",
              "BE:nl",
              "BE:fr",
              "BW:en",
              "BR:pt-419",
              "BG:bg",
              "CA:en",
              "CA:fr",
              "CL:es-419",
              "CN:zh-Hans",
              "CO:es-419",
              "CU:es-419",
              "CZ:cs",
              "EG:ar",
              "EE:et",
              "ET:en",
              "FI:fi",
              "FR:fr",
              "DE:de",
              "GH:en",
              "GR:el",
              "HK:zh-Hant",
              "HU:hu",
              "IN:bn",
              "IN:en",
              "IN:gu",
              "IN:hi",
              "IN:ml",
              "IN:mr",
              "IN:ta",
              "IN:te",
              "ID:en",
              "ID:id",
              "IE:en",
              "IL:en",
              "IL:he",
              "IT:it",
              "JP:ja",
              "KE:en",
              "LV:lv",
              "LB:ar",
              "LT:lt",
              "MY:en",
              "MY:ms",
              "MX:es-419",
              "MA:fr",
              "NA:en",
              "NL:nl",
              "NZ:en",
              "NG:en",
              "NO:no",
              "PK:en",
              "PE:es-419",
              "PH:en",
              "PL:pl",
              "PT:pt-150",
              "RO:ro",
              "RU:ru",
              "SA:ar",
              "SN:fr",
              "RS:sr",
              "SG:en",
              "SK:sk",
              "SI:sl",
              "ZA:en",
              "KR:ko",
              "ES:es",
              "SE:sv",
              "CH:fr",
              "CH:de",
              "TW:zh-Hant",
              "TZ:en",
              "TH:th",
              "TR:tr",
              "UG:en",
              "UA:ru",
              "UA:uk",
              "AE:ar",
              "GB:en",
              "US:es-419",
              "VE:es-419",
              "VN:vi",
              "ZW:en"
            ],
            "type": "string",
            "description": "The country and language of Google News. It does not translate your search or limit publishers to that country.",
            "default": "US:en"
          },
          "timeRange": {
            "title": "Published within",
            "enum": [
              "day",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Articles published in this period.",
            "default": "week"
          },
          "maxArticles": {
            "title": "Maximum articles",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to 1,000. For more than 90, each day is searched separately to get past Google's limit of about 100 articles per search.",
            "default": 20
          },
          "topics": {
            "title": "News sections",
            "type": "array",
            "description": "Adds Google News sections such as Business or Technology. They are extra sources, not filters on your search.",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "National",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "topStories": {
            "title": "Include top headlines",
            "type": "boolean",
            "description": "Adds the edition's top headlines.",
            "default": false
          },
          "feedUrls": {
            "title": "Publisher feeds",
            "type": "array",
            "description": "RSS or Atom feed links, such as feeds.bbci.co.uk/news/technology/rss.xml. A site's homepage also works if the page links to its feed.",
            "items": {
              "type": "string"
            }
          },
          "includeTerms": {
            "title": "Must contain",
            "type": "array",
            "description": "Keep only articles that contain these words or phrases, one per line. Applies to every source.",
            "items": {
              "type": "string"
            }
          },
          "excludeTerms": {
            "title": "Must not contain",
            "type": "array",
            "description": "Leave out articles that contain any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "includeMode": {
            "title": "Must contain",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Whether an article needs any one of the words above, or all of them.",
            "default": "any"
          },
          "filterScope": {
            "title": "Look for words in",
            "enum": [
              "headline",
              "headlineAndSummary"
            ],
            "type": "string",
            "description": "Only the headline and the short summary in the feed are checked, not the full article.",
            "default": "headline"
          },
          "includePublishers": {
            "title": "Only these publishers",
            "type": "array",
            "description": "Websites or publisher names, such as bbc.com, reuters or Le Monde. Names with spaces match the feed's publisher name. Others are left out; Google is not asked for more of their stories.",
            "items": {
              "type": "string"
            }
          },
          "excludePublishers": {
            "title": "Leave out these publishers",
            "type": "array",
            "description": "Websites or publisher names to leave out, such as example.com or BBC News.",
            "items": {
              "type": "string"
            }
          },
          "newOnly": {
            "title": "Only articles not saved before",
            "type": "boolean",
            "description": "Skips articles saved by earlier runs of the same searches and sources. They are remembered for up to 90 days.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "minLength": 1,
            "maxLength": 80,
            "type": "string",
            "description": "Optional. Leave empty to reuse the history for these searches and sources, or enter a name such as Industry news. Use a new name to start a fresh history."
          },
          "startDate": {
            "title": "Start date (UTC)",
            "type": "string",
            "description": "Use your own dates instead of Published within. Without an end date, the range runs to today. Up to 31 days."
          },
          "endDate": {
            "title": "End date (UTC, optional)",
            "type": "string",
            "description": "The last day to include."
          },
          "splitByDay": {
            "title": "Search each day separately",
            "type": "boolean",
            "description": "Finds more articles for busy topics. Used automatically for more than 90 articles.",
            "default": false
          },
          "resolveUrls": {
            "title": "Look up publisher links",
            "type": "boolean",
            "description": "Replaces Google News links with the publisher's own article link. This takes a few seconds per article; turn it off for a fast run.",
            "default": true
          },
          "proxyMode": {
            "title": "Connection",
            "enum": [
              "datacenter",
              "direct"
            ],
            "type": "string",
            "description": "Leave this as it is. The connection cost is included in the article price.",
            "default": "datacenter"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}