{
  "openapi": "3.0.1",
  "info": {
    "title": "Brand & News Monitor 📰 (Google News alerts to Slack & API)",
    "description": "Google Alerts as an API: brand and competitor mentions from Google News, GDELT and Hacker News as structured JSON, deduplicated so you only ever pay for new mentions, with a Slack digest built in. $8 per 1,000 mentions, no subscription.",
    "version": "0.1",
    "x-build-id": "bqgX5QYALlu4YO0dB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~brand-news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-brand-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/tagadanar~brand-news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-brand-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/tagadanar~brand-news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-brand-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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords / brand names",
            "type": "array",
            "description": "Brands, product names or search terms to monitor, e.g. <code>Apify</code>. Each one is checked against every source below.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitor names (optional)",
            "type": "array",
            "description": "Also monitored like the keywords above, but tagged <code>isCompetitor: true</code> on the output so you can filter your own mentions from competitor mentions.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "fr",
              "de",
              "es"
            ],
            "type": "string",
            "description": "Language for Google News results.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "FR",
              "DE",
              "ES",
              "CA"
            ],
            "type": "string",
            "description": "Country edition for Google News results.",
            "default": "US"
          },
          "useGoogleNews": {
            "title": "Use Google News",
            "type": "boolean",
            "description": "Search Google News (major and local news outlets, press releases).",
            "default": true
          },
          "useGdelt": {
            "title": "Use GDELT",
            "type": "boolean",
            "description": "Search the GDELT global news index, a broader secondary net over online news worldwide.",
            "default": true
          },
          "useHackerNews": {
            "title": "Use Hacker News",
            "type": "boolean",
            "description": "Search Hacker News stories and comments discussion, useful for developer tools, tech products and startups.",
            "default": true
          },
          "maxAgeDays": {
            "title": "Only mentions from the last N days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Drop anything older than this. Also sets the GDELT lookback window.",
            "default": 7
          },
          "strictMatch": {
            "title": "Strict match (whole word / phrase)",
            "type": "boolean",
            "description": "Require the keyword as a whole word or phrase in the title, instead of a loose substring match. Turn this on for short or ambiguous brand names (e.g. <code>Mistral</code> also being a wind, or <code>Orange</code> also being a fruit) to cut unrelated noise.",
            "default": false
          },
          "maxResults": {
            "title": "Max mentions",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many mentions across all keywords and sources.",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitor mode (new mentions only)",
            "type": "boolean",
            "description": "Remember what previous runs already reported and return only <b>new</b> mentions. Schedule this actor daily (as a Task, so it keeps its own memory) for a live alert feed, charged for new mentions only.",
            "default": false
          },
          "webhookUrl": {
            "title": "Slack / webhook URL",
            "type": "string",
            "description": "Optional. A Slack incoming-webhook URL (or any endpoint accepting a JSON <code>{\"text\": ...}</code> body) that receives a digest of the new mentions. Pairs with monitor mode and a daily schedule."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}