{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News Monitor: New Articles and AI Tags",
    "description": "Returns Google News articles for your companies, keywords or topics in any country and language: headline, publisher, UTC date and link. Monitor mode returns only articles you have not seen. Optional AI tags flag funding, layoffs, acquisitions and more.",
    "version": "0.0",
    "x-build-id": "z4VNeRNmuiDk3hv42"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brightknot~google-news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brightknot-google-news-monitor",
        "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/brightknot~google-news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-brightknot-google-news-monitor",
        "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/brightknot~google-news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-brightknot-google-news-monitor",
        "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": "Companies, keywords or phrases to search, one per item. Google News operators work: quotes for an exact name (\"Stripe\"), OR, a minus sign to exclude (-sports), site:reuters.com, intitle:funding. Give queries, topics, or both.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topic headlines",
            "type": "array",
            "description": "Also read Google News top headlines for these sections, in each edition.",
            "items": {
              "type": "string",
              "enum": [
                "WORLD",
                "NATION",
                "BUSINESS",
                "TECHNOLOGY",
                "ENTERTAINMENT",
                "SPORTS",
                "SCIENCE",
                "HEALTH"
              ],
              "enumTitles": [
                "World",
                "Nation",
                "Business",
                "Technology",
                "Entertainment",
                "Sports",
                "Science",
                "Health"
              ]
            }
          },
          "editions": {
            "title": "Editions (country:language)",
            "type": "array",
            "description": "Google News editions to read, as COUNTRY:language, e.g. US:en, GB:en, IN:en, AE:en, AE:ar, DE:de, FR:fr. Each edition has its own results. Default US:en.",
            "items": {
              "type": "string"
            }
          },
          "when": {
            "title": "Time window",
            "enum": [
              "1h",
              "12h",
              "1d",
              "7d",
              "30d",
              "1y",
              "any"
            ],
            "type": "string",
            "description": "Adds Google's when: operator to each search query. Does not apply to topic headlines.",
            "default": "7d"
          },
          "sinceHours": {
            "title": "Only articles from the last N hours",
            "minimum": 0,
            "maximum": 8784,
            "type": "integer",
            "description": "An exact age filter applied after reading, for queries and topics. Leave empty or 0 for no filter."
          },
          "maxArticlesPerQuery": {
            "title": "Max articles per query per edition",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Newest first. Google News returns up to about 100 articles per feed.",
            "default": 100
          },
          "includeSources": {
            "title": "Only these publishers",
            "type": "array",
            "description": "Keep only articles whose publisher name or domain contains one of these, e.g. reuters, bloomberg.com. Empty means all.",
            "items": {
              "type": "string"
            }
          },
          "excludeSources": {
            "title": "Skip these publishers",
            "type": "array",
            "description": "Drop articles whose publisher name or domain contains one of these, e.g. press release sites.",
            "items": {
              "type": "string"
            }
          },
          "dedupeAcrossQueries": {
            "title": "One row per article",
            "type": "boolean",
            "description": "When the same article matches several queries, topics or editions, return it once and list all matches in matched_queries and editions.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode: only new articles",
            "type": "boolean",
            "description": "Remember which articles were returned and, on later runs, return only articles not returned before. Schedule it hourly or daily and you only pay for new articles. For a one-off search set it to false, otherwise a repeat call with the same monitor name can return 0 rows.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps a separate memory of seen articles for each name. Use one name per schedule or client.",
            "default": "default"
          },
          "aiTags": {
            "title": "AI tags: event type, sentiment, companies",
            "type": "boolean",
            "description": "Label each returned article as funding, acquisition, layoffs, hiring expansion, leadership change, product launch, partnership, earnings, legal or regulatory, security incident or other, with sentiment and the companies named. Uses a small AI model through Apify's OpenRouter proxy; the model cost is added to your Apify bill.",
            "default": false
          },
          "eventTypes": {
            "title": "Only these event types",
            "type": "array",
            "description": "Return only articles with these AI event types. Turns AI tags on.",
            "items": {
              "type": "string",
              "enum": [
                "funding",
                "acquisition",
                "layoffs",
                "hiring_expansion",
                "leadership_change",
                "product_launch",
                "partnership",
                "earnings",
                "legal_regulatory",
                "security_incident",
                "other"
              ],
              "enumTitles": [
                "Funding",
                "Acquisition",
                "Layoffs",
                "Hiring expansion",
                "Leadership change",
                "Product launch",
                "Partnership",
                "Earnings",
                "Legal or regulatory",
                "Security incident",
                "Other"
              ]
            }
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "OpenRouter model id used for AI tags.",
            "default": "anthropic/claude-haiku-5.5"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many feeds are read at the same time.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}