{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper: Articles, Headlines & News Monitoring",
    "description": "Google News headlines and articles by search query, topic or place, any country, language, past hour to date range. $1.90 per 1,000 articles; error rows free, no start fee. Title, publisher, time, link, optional real publisher URL, image. Past the 100-article RSS limit; only-new mode for monitoring.",
    "version": "0.1",
    "x-build-id": "OJY1eXBP5Rc9ld6Gg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-for-agents~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-for-agents-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/data-for-agents~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data-for-agents-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/data-for-agents~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data-for-agents-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",
            "maxItems": 1000,
            "type": "array",
            "description": "Words or phrases to search on Google News, one per line. Google's operators work: \"exact phrase\", OR, -word, intitle:word, and -site:example.com to leave a publisher out. Give at least one query, topic or location; one run takes up to 1,000 of them in all, each up to 500 characters.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "uniqueItems": true,
            "type": "array",
            "description": "Google News sections to read, with or without search queries. A section holds 30 to 70 current stories plus the other articles on each story, about 300 rows in all: set Max articles per query to 500 to get all of them. Sections ignore the time window and the site filter.",
            "items": {
              "type": "string",
              "enum": [
                "TOP_STORIES",
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SCIENCE",
                "SPORTS",
                "HEALTH"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Science",
                "Sports",
                "Health"
              ]
            }
          },
          "locations": {
            "title": "Locations",
            "maxItems": 1000,
            "type": "array",
            "description": "Local news for a place, one per line: a city, region or country name, for example New York, London or Bavaria. A place holds up to 70 current stories and ignores the time window and the site filter.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "pattern": "^\\s*[A-Za-z]{2}\\s*$",
            "type": "string",
            "description": "Two-letter country code of the Google News edition, for example US, GB (United Kingdom), DE, FR, JP, IN, BR.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "pattern": "^\\s*[A-Za-z]{2,3}(-[A-Za-z0-9]{2,4})?\\s*$",
            "type": "string",
            "description": "Language code of the edition, for example en, de, fr, ja, hi, pt-BR. It must be a language Google News offers in that country: US with en or es, DE with de, IN with en or hi.",
            "default": "en"
          },
          "timeWindow": {
            "title": "Time window",
            "enum": [
              "any",
              "1h",
              "1d",
              "7d",
              "30d",
              "1y"
            ],
            "type": "string",
            "description": "How far back to look. A start date replaces it. With an end date alone, it counts back from that date.",
            "default": "7d"
          },
          "dateFrom": {
            "title": "Start date",
            "type": "string",
            "description": "First day to include, as YYYY-MM-DD. Optional. A range can be up to 400 days long."
          },
          "dateTo": {
            "title": "End date",
            "type": "string",
            "description": "Last day to include, as YYYY-MM-DD. Optional. Empty means today. Without a start date, the time window counts back from this day."
          },
          "site": {
            "title": "Only this site",
            "type": "string",
            "description": "Return only articles from one publisher's domain, for example reuters.com. Optional."
          },
          "maxItemsPerQuery": {
            "title": "Max articles per query",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many articles to get for each search query, topic and location. Up to 100 usually takes one request. Above 100 the search is read again in smaller time slices: hour windows for the last 12 hours, then one day at a time, about 100 articles a day at most. One run returns at most 200,000 articles in all.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new articles",
            "type": "boolean",
            "description": "Return only articles that earlier runs with the same queries, topics, locations, country, language and site did not return. Use it with a schedule to get, and pay for, each article once. Do not start two runs of the same input at the same moment: both would return the same new articles.",
            "default": false
          },
          "resolveArticles": {
            "title": "Publisher URL and image",
            "type": "boolean",
            "description": "Adds the article's own address on the publisher's site (article_url) and its preview image (image_url) to each row. A headless browser opens each Google News link like a reader does, so it takes about 1 to 3 seconds per article, runs with 2 GB of memory and has its own price per article found. Off by default.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}