{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper - Search, Headlines & AI Briefing",
    "description": "Google News scraper: keywords, topics or cities in 70 countries → headlines with outlet, date, link and related coverage, plus an AI briefing that cites its sources. 📰",
    "version": "1.0",
    "x-build-id": "QKCul4eogU8udOseU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~google-news-scraper-ai-briefing/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-google-news-scraper-ai-briefing",
        "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/helenisapi~google-news-scraper-ai-briefing/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-google-news-scraper-ai-briefing",
        "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/helenisapi~google-news-scraper-ai-briefing/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-google-news-scraper-ai-briefing",
        "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",
            "type": "array",
            "description": "Keywords to search Google News for, one query per item, e.g. [\"artificial intelligence\", \"Nvidia earnings\"]. Google News syntax works: \"exact phrase\", OR, -exclude, intitle:word, site:reuters.com. Each query returns up to `maxArticles` article rows from the `period` time window. Required unless `topics` or `locations` is set (at least one of the three).",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Headline topics",
            "type": "array",
            "description": "Google News sections whose top stories to fetch, one per item, e.g. [\"business\", \"technology\"]. Allowed values: top, world, nation, business, technology, entertainment, sports, science, health; any other value is skipped. Returns current headlines (`period` does not apply). Optional: use with or instead of `queries` and `locations`.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Local news",
            "type": "array",
            "description": "Cities or regions whose local headlines to fetch, one per item, e.g. [\"Chicago\", \"Lyon\", \"Bavaria\"]. Returns the current local top stories of each place (`period` does not apply). Optional: use with or instead of `queries` and `topics`.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code of the Google News edition to read, e.g. US, GB, FR, DE, IN, JP, BR (70 countries supported). Applies to queries, topics and locations alike. Default US.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code of the edition, e.g. en, fr, hi, only needed when the country has several (CA: en or fr; IN: en, hi, bn, ta...). Leave empty to use the main language of `country`."
          },
          "period": {
            "title": "Time window (searches)",
            "enum": [
              "1h",
              "6h",
              "12h",
              "1d",
              "3d",
              "7d",
              "30d",
              "1y",
              "any"
            ],
            "type": "string",
            "description": "How far back the keyword searches in `queries` go: 1h, 6h, 12h = the last hours; 1d = the last 24 hours (default); 3d, 7d, 30d = the last days; 1y = the last year; any = no time limit. Topics and locations always return current headlines.",
            "default": "1d"
          },
          "maxArticles": {
            "title": "Articles per query, topic or location",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum article rows per query, topic or location, 1-100 (default 20). Each article row is charged. Apify free-plan runs read at most 3 feeds of 20 articles.",
            "default": 20
          },
          "aiBriefing": {
            "title": "Write an AI briefing of each feed",
            "type": "boolean",
            "description": "true (default): after the articles of each query, topic or location, add one row with type \"briefing\": headline, summary, key points, angles, what to watch, people, organizations and places, each point citing its article numbers. Written from the headlines and charged per briefing. false: article rows only.",
            "default": true
          },
          "briefingLanguage": {
            "title": "Briefing language",
            "type": "string",
            "description": "Two-letter language code the AI briefings are written in, e.g. en, fr, de. Leave empty to write them in the language of the edition. Lets you read foreign news in your own language."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}