{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Scraper",
    "description": "Scrape Google News by search term, topic or link. Get headline, publisher, publish date and the real article URL, plus snippet, image, author and keywords when available. Filter by date, country, language and publisher. Bulk input, live results, no login needed.",
    "version": "1.0",
    "x-build-id": "paMrjLduQsgavEkQK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~google-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-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/insights_data~google-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-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/insights_data~google-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-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 terms",
            "type": "array",
            "description": "What to look for in Google News, one per line. Quotes, OR and intitle: work like in Google. Each search term is collected on its own.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "🔗 Google News links",
            "type": "array",
            "description": "Optional. Google News search, topic or section links (news.google.com/search?q=..., /topics/..., /topics/.../sections/...). One per line. Each link is collected on its own.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "🗞️ Headline topics",
            "type": "array",
            "description": "Optional. Collect the current headlines of these sections of Google News.",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "world",
                "nation",
                "business",
                "technology",
                "entertainment",
                "sports",
                "science",
                "health"
              ],
              "enumTitles": [
                "Top stories",
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "maxItems": {
            "title": "🧮 Max articles per input",
            "minimum": 0,
            "type": "integer",
            "description": "How many articles to collect for each search term, topic and link. 0 = everything Google gives (about 100 per request, more when you set dates).",
            "default": 10
          },
          "country": {
            "title": "🌎 Country edition",
            "enum": [
              "AR",
              "AU",
              "AT",
              "BD",
              "BE",
              "BW",
              "BR",
              "BG",
              "CA",
              "CL",
              "CO",
              "CU",
              "CZ",
              "EG",
              "ET",
              "FR",
              "DE",
              "GH",
              "GR",
              "HK",
              "HU",
              "IN",
              "ID",
              "IE",
              "IL",
              "IT",
              "JP",
              "KE",
              "LV",
              "LB",
              "LT",
              "MY",
              "MX",
              "MA",
              "NA",
              "NL",
              "NZ",
              "NG",
              "NO",
              "PK",
              "PE",
              "PH",
              "PL",
              "PT",
              "RO",
              "RU",
              "SA",
              "SN",
              "RS",
              "SG",
              "SK",
              "SI",
              "ZA",
              "KR",
              "SE",
              "CH",
              "TW",
              "TZ",
              "TH",
              "TR",
              "AE",
              "UG",
              "UA",
              "GB",
              "US",
              "VE",
              "VN",
              "ZW"
            ],
            "type": "string",
            "description": "The Google News edition to read. It decides which stories and publishers you see.",
            "default": "US"
          },
          "language": {
            "title": "🗣️ News language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt-BR",
              "pt-PT",
              "nl",
              "ru",
              "uk",
              "pl",
              "cs",
              "sk",
              "sl",
              "sr",
              "bg",
              "ro",
              "hu",
              "el",
              "tr",
              "ar",
              "he",
              "hi",
              "bn",
              "ta",
              "te",
              "mr",
              "ml",
              "id",
              "ms",
              "th",
              "vi",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "sv",
              "no",
              "da",
              "fi",
              "lt",
              "lv",
              "et",
              "sw",
              "af",
              "am",
              "zu"
            ],
            "type": "string",
            "description": "The language of the news. If Google has no edition for this country and language pair, it serves the closest one and rows say which.",
            "default": "en"
          },
          "sort": {
            "title": "↕️ Sort order",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Google's own order, or the newest articles first.",
            "default": "relevance"
          },
          "timePeriod": {
            "title": "⏱️ Time period",
            "enum": [
              "any",
              "1h",
              "24h",
              "7d",
              "2w",
              "3m",
              "1y"
            ],
            "type": "string",
            "description": "Only articles from the last hour, day, week and so on. Ignored when you set a From or To date.",
            "default": "any"
          },
          "dateFrom": {
            "title": "🗓️ From date",
            "type": "string",
            "description": "Only articles published on or after this day. Pick a date, or use a value such as 3 days, 1 week, 2 months or 1 year. Setting dates also lets one input go beyond 100 articles."
          },
          "dateTo": {
            "title": "🏁 To date",
            "type": "string",
            "description": "Only articles published on or before this day (included). Same formats as From date."
          },
          "includeSites": {
            "title": "✅ Only these publishers",
            "type": "array",
            "description": "Keep only articles from these sites, for example bbc.com or reuters.com. One per line. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "excludeSites": {
            "title": "🚫 Skip these publishers",
            "type": "array",
            "description": "Never return articles from these sites, for example pinterest.com. One per line.",
            "items": {
              "type": "string"
            }
          },
          "resolveUrls": {
            "title": "🔓 Real publisher links",
            "type": "boolean",
            "description": "Return the publisher's own link instead of the news.google.com redirect link.",
            "default": true
          },
          "articleDetails": {
            "title": "📝 Article details",
            "type": "boolean",
            "description": "Open each article for its summary, picture, author, section, keywords and times. A few publishers block this and stay empty. Switch off for the fastest run.",
            "default": true
          },
          "fullText": {
            "title": "📖 Full article text",
            "type": "boolean",
            "description": "Also return the readable text of each article. Needs Article details.",
            "default": false
          },
          "skipKnownFrom": {
            "title": "♻️ Skip articles from an earlier run",
            "type": "string",
            "description": "Pick the dataset of an earlier run. Articles already in it are skipped, so you only collect and pay for new articles."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "The run starts without a proxy and switches to a proxy by itself when Google limits requests. Choose a proxy here to start with it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}