{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News and Publisher Feed Scraper",
    "description": "Google News plus RSS, Atom and JSON feeds, with word filters and recurring monitoring. Base rate: $0.95 per 1,000 articles, usage included. Publisher-link lookup is best effort. Maintained by CleanScrape.",
    "version": "0.2",
    "x-build-id": "sOnqTMaN6AketNZZk"
  },
  "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": "Enter one topic or company name per line. Leave empty when using only publisher feeds.",
            "items": {
              "type": "string"
            }
          },
          "edition": {
            "title": "Google News edition",
            "enum": [
              "US:en",
              "GB:en",
              "DE:de",
              "FI:fi",
              "FR:fr"
            ],
            "type": "string",
            "description": "Select country and language together. This does not translate your query or restrict publishers to that country.",
            "default": "US:en"
          },
          "timeRange": {
            "title": "Published within",
            "enum": [
              "day",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Applied to feed publication timestamps in UTC. Entries without a usable timestamp are excluded and counted in the run report.",
            "default": "week"
          },
          "maxArticles": {
            "title": "Maximum articles in total",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total upper limit across all sources, not a guaranteed result count. Start with 20. Source limits or the collection time budget can produce fewer articles; see RUN_REPORT.",
            "default": 20
          },
          "resolveUrls": {
            "title": "Look up publisher article links",
            "type": "boolean",
            "description": "Uses Google's article URL lookup and caches successful mappings. Unresolved links retain their Google URL. Upstream rate limits can prevent full resolution.",
            "default": true
          },
          "topics": {
            "title": "News sections",
            "type": "array",
            "description": "Optional Google News sections. These are separate from keyword searches; date filters apply locally to their feed entries.",
            "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": "Collect the selected edition's top-headlines feed.",
            "default": false
          },
          "feedUrls": {
            "title": "Publisher feed URLs",
            "type": "array",
            "description": "Public RSS, Atom or JSON Feed URLs. These feeds are collected directly, not filtered by your Google search terms.",
            "items": {
              "type": "string"
            }
          },
          "includeTerms": {
            "title": "Must contain these words or phrases",
            "type": "array",
            "description": "Optional literal filters applied to every source, including publisher feeds. One word or phrase per entry, up to 20 entries of 200 characters. Case-insensitive, whole-word matching; no stemming or translation. Leave empty to keep all otherwise eligible articles.",
            "items": {
              "type": "string"
            }
          },
          "excludeTerms": {
            "title": "Must not contain these words or phrases",
            "type": "array",
            "description": "Remove articles matching any entry in the selected text fields. Exclusions win over inclusions. Applied before link lookup and delivery; does not change the original article text.",
            "items": {
              "type": "string"
            }
          },
          "includeMode": {
            "title": "Match included terms",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Used only when Must contain has entries.",
            "default": "any"
          },
          "filterScope": {
            "title": "Look for words in",
            "enum": [
              "headline",
              "headlineAndSummary"
            ],
            "type": "string",
            "description": "Filters only the available feed text, not full article bodies. Summaries may be missing or repeat headlines. Phrases cannot span two fields.",
            "default": "headline"
          },
          "includePublishers": {
            "title": "Only these publisher domains",
            "type": "array",
            "description": "Optional domains such as bbc.com, not full URLs. Applies to collected results; does not force Google to return every story from these publishers.",
            "items": {
              "type": "string"
            }
          },
          "excludePublishers": {
            "title": "Exclude publisher domains",
            "type": "array",
            "description": "Optional domains such as example.com. Subdomains are included.",
            "items": {
              "type": "string"
            }
          },
          "newOnly": {
            "title": "Return only previously undelivered articles",
            "type": "boolean",
            "description": "Skip articles previously delivered to this customer and watch name. Requires a watch name; reuse the same sources and filters. Delivery history is retained for up to 90 days, subject to storage availability.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "minLength": 1,
            "maxLength": 80,
            "type": "string",
            "description": "For new-only monitoring, choose a name such as Industry news. Reuse it for the same sources and word filters. Use a different name when changing sources or filters."
          },
          "startDate": {
            "title": "Custom start date (UTC)",
            "type": "string",
            "description": "Optional YYYY-MM-DD. Supply both dates; overrides the time preset. Maximum 31 days."
          },
          "endDate": {
            "title": "Custom end date (UTC, inclusive)",
            "type": "string",
            "description": "Supply together with start date."
          },
          "splitByDay": {
            "title": "Search smaller date windows",
            "type": "boolean",
            "description": "Makes more Google feed requests to improve observed coverage. Does not guarantee complete history. Maximum 120 feed requests per run.",
            "default": false
          },
          "proxyMode": {
            "title": "Connection mode",
            "enum": [
              "datacenter",
              "direct"
            ],
            "type": "string",
            "description": "Managed connections include bounded session recovery. Datacenter usage is included in the article price. No residential bandwidth is used. Neither mode guarantees uninterrupted Google access.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}