{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper",
    "description": "Collect Google News headlines by search, topic, edition or location. Return publisher, publication time, story clusters and matched searches, with optional publisher links, article text and scheduled new-only delivery.",
    "version": "0.1",
    "x-build-id": "MvXMWe3sHrewBGbDW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-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/automatic~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-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/automatic~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-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 queries",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Search strings; quotes, OR, -term, site:, intitle:, when:, after: and before: pass through. Max 20.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "News topics",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Choose WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE or HEALTH. Max 20.",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "News locations",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Place names for current local news, such as London. Max 20.",
            "items": {
              "type": "string"
            }
          },
          "topHeadlines": {
            "title": "Top headlines",
            "type": "boolean",
            "description": "Include current top headlines for the selected edition. A bare start samples 10 headlines."
          },
          "language": {
            "title": "Edition language",
            "type": "string",
            "description": "Exact language code from a supported language/country pair; see README. Omitted: en-US."
          },
          "country": {
            "title": "Edition country",
            "type": "string",
            "description": "Exact uppercase country code from a supported language/country pair; see README. Omitted: US."
          },
          "publishedWithin": {
            "title": "Published within",
            "type": "string",
            "description": "Recent window, 1h..99h or 1d..31d, such as 6h. Search operator plus local UTC filtering; other feeds are filtered locally."
          },
          "dateFrom": {
            "title": "Publication date from",
            "type": "string",
            "description": "Inclusive UTC date YYYY-MM-DD. Supply both dates; queries only, at most 31 days. Search is split by day."
          },
          "dateTo": {
            "title": "Publication date to",
            "type": "string",
            "description": "Inclusive UTC date YYYY-MM-DD. Supply both dates; queries only, at most 31 days. Search is split by day."
          },
          "sites": {
            "title": "Include publisher domains",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Only articles from these lowercase domains or their subdomains, without schemes or paths. Max 20.",
            "items": {
              "type": "string"
            }
          },
          "excludeSites": {
            "title": "Exclude publisher domains",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Exclude these lowercase domains and their subdomains. Max 20.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerQuery": {
            "title": "Articles per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap per original search, topic, headline or location source, across date slices. Omitted: 100, or 10 for sample."
          },
          "maxResults": {
            "title": "Total article limit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum dataset rows. Omitted: 100, or 10 for sample. Bare-start sample always capped at 10."
          },
          "resolvePublisherUrls": {
            "title": "Resolve publisher URLs",
            "type": "boolean",
            "description": "Try to recover the original article URL. Failures retain the Google link and a reason. Omitted: false."
          },
          "fetchArticleText": {
            "title": "Extract article text",
            "type": "boolean",
            "description": "Fetch resolved publisher HTML for article text and metadata. Enables URL resolution. Omitted: false."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new articles",
            "type": "boolean",
            "description": "Remember delivered IDs in a named store. Repeated runs with the same state key skip them. Omitted: false."
          },
          "stateKey": {
            "title": "Scheduled feed state key",
            "type": "string",
            "description": "Name up to 64 characters. Omitted: derived from source and edition filters. Retains 20,000 IDs for 90 days from delivery."
          },
          "deduplicate": {
            "title": "Deduplicate across sources",
            "type": "boolean",
            "description": "Deliver an article once with every observed matched source in matchedQueries. Omitted: true."
          },
          "proxyConfiguration": {
            "title": "Optional connection configuration",
            "type": "object",
            "description": "Optional explicit connection configuration on Apify. Omit for direct connections. Local runs allow only 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}