{
  "openapi": "3.0.1",
  "info": {
    "title": "PR Newswire Filing Monitor & Alert",
    "description": "Monitors PR Newswire for new press releases matching your stock tickers and keywords. Saves every filing to a dataset and sends real-time alerts via Telegram, Discord, or Slack when a match is found.",
    "version": "0.1",
    "x-build-id": "NMIehdhbbVCIDn0n6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraping_crew~prnewswire-filing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraping_crew-prnewswire-filing-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/scraping_crew~prnewswire-filing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-scraping_crew-prnewswire-filing-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/scraping_crew~prnewswire-filing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-scraping_crew-prnewswire-filing-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": {
          "tickers": {
            "title": "Tickers",
            "type": "string",
            "description": "Ticker symbols to watch, one per line (e.g. AAPL).",
            "default": "AAPL\nNRXP\nBAC"
          },
          "keywords": {
            "title": "Keywords / Phrases",
            "type": "string",
            "description": "Keywords or phrases to match in filing content, one per line.",
            "default": "Announces\nMerger\nRedeem"
          },
          "telegram_bot_token": {
            "title": "Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token from @BotFather."
          },
          "telegram_chat_id": {
            "title": "Telegram Chat ID",
            "type": "string",
            "description": "Chat or channel ID where alerts are sent (e.g. \"-xxxxxxx\" for a private group, or \"@yourchannel\")."
          },
          "discord_webhook": {
            "title": "Discord Webhook URL",
            "type": "string",
            "description": "Discord channel webhook URL."
          },
          "slack_webhook": {
            "title": "Slack Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL."
          },
          "target_industries": {
            "title": "Target Industries",
            "type": "string",
            "description": "Industry codes or names to include, one per line (e.g. HEA, MTC). Matched against the industry tags in the meta data. Leave empty to accept all industries.",
            "default": ""
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Languages to include. Leave empty to accept all languages. Note the listed languages are defined by PrNewsWire",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "ae",
                "ap",
                "br",
                "cs",
                "da",
                "de",
                "es",
                "fi",
                "fr",
                "id",
                "il",
                "in",
                "it",
                "jp",
                "kr",
                "mx",
                "nl",
                "no",
                "pl",
                "pt",
                "ru",
                "si",
                "sk",
                "sv",
                "vn"
              ],
              "enumTitles": [
                "English",
                "Arabic (UAE)",
                "Asia Pacific",
                "Portuguese (Brazil)",
                "Czech",
                "Danish",
                "German",
                "Spanish",
                "Finnish",
                "French",
                "Indonesian",
                "Hebrew (Israel)",
                "Hindi (India)",
                "Italian",
                "Japanese",
                "Korean",
                "Spanish (Mexico)",
                "Dutch",
                "Norwegian",
                "Polish",
                "Portuguese",
                "Russian",
                "Slovenian",
                "Slovak",
                "Swedish",
                "Vietnamese"
              ]
            },
            "default": []
          },
          "max_items": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of filings to collect per run. Set to 0 to disable the limit and collect all available items.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. PrNewsWire applies rate limits — a proxy can help avoid 429 errors on large runs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}