{
  "openapi": "3.0.1",
  "info": {
    "title": "LLM Model Watchlist & Change Alerts",
    "description": "Track only what changed for the LLM models you run in production: prices, context limits, deprecations, shutdown dates, days until shutdown and the recommended replacement. Webhook alerts, catalog and cost-estimate modes. No API keys.",
    "version": "0.1",
    "x-build-id": "AItRHvsqpx5GU2MaC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taiw~llm-model-watchlist-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taiw-llm-model-watchlist-alerts",
        "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/taiw~llm-model-watchlist-alerts/runs": {
      "post": {
        "operationId": "runs-sync-taiw-llm-model-watchlist-alerts",
        "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/taiw~llm-model-watchlist-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-taiw-llm-model-watchlist-alerts",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "watch",
              "catalog",
              "costEstimate"
            ],
            "type": "string",
            "description": "watch: changes for your watchlist (first run = free baseline). catalog: models and prices across vendors. costEstimate: monthly cost of usage profiles on your models, with cheaper alternatives.",
            "default": "watch"
          },
          "watchlist": {
            "title": "Watchlist (model ids)",
            "type": "array",
            "description": "Model ids as you call them in code, for example claude-sonnet-4-5 or gpt-4o. Add * at the end for a prefix, for example gpt-4o*. Dated snapshot ids and undated aliases are mapped to each other, and the mapping is reported. Unknown ids produce a warning with the closest matches. Leave empty in catalog mode to list every model of the chosen vendors.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors",
            "type": "array",
            "description": "Vendors to read. Default: OpenAI, Anthropic, Google, Mistral, Cohere, xAI, DeepSeek, Groq and Amazon Bedrock. Azure, Vertex, Together and Fireworks come from the open datasets only.",
            "items": {
              "type": "string",
              "enum": [
                "openai",
                "anthropic",
                "google",
                "mistral",
                "cohere",
                "xai",
                "deepseek",
                "groq",
                "bedrock",
                "azure",
                "google-vertex",
                "together",
                "fireworks"
              ]
            },
            "default": [
              "openai",
              "anthropic",
              "google",
              "mistral",
              "cohere",
              "xai",
              "deepseek",
              "groq",
              "bedrock"
            ]
          },
          "changeTypes": {
            "title": "Change types to report",
            "type": "array",
            "description": "Keep only these kinds of changes (watch mode). Empty = all. shutdown_approaching is the alert for models whose shutdown date is within the alert window.",
            "items": {
              "type": "string",
              "enum": [
                "price_change",
                "context_change",
                "new_deprecation",
                "shutdown_date_change",
                "new_model",
                "model_removed",
                "replacement_change",
                "shutdown_approaching"
              ]
            },
            "default": [
              "price_change",
              "context_change",
              "new_deprecation",
              "shutdown_date_change",
              "new_model",
              "model_removed",
              "replacement_change",
              "shutdown_approaching"
            ]
          },
          "alertWhenShutdownWithinDays": {
            "title": "Shutdown alert window (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Watched models whose shutdown date is within this many days get a shutdown_approaching alert, then again at 30, 14, 7 and 1 days.",
            "default": 90
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "On (default): the first run stores a free baseline and later runs return only changes. Off: every run also returns the current row of each watched model (charged as catalog-model rows).",
            "default": true
          },
          "usageProfiles": {
            "title": "Usage profiles (costEstimate)",
            "type": "array",
            "description": "For costEstimate mode: a list of { name, inputTokensPerMonth, outputTokensPerMonth, cachedInputShare (0 to 1), batchShare (0 to 1) }. Billed once per profile.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD"
            ],
            "type": "string",
            "description": "Only USD is supported in this version.",
            "default": "USD"
          },
          "pricePer": {
            "title": "Price unit",
            "enum": [
              "1M tokens"
            ],
            "type": "string",
            "description": "All token prices are per 1M tokens.",
            "default": "1M tokens"
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "https address that receives a compact JSON summary when there are changes (Slack, Make, n8n, Zapier, Google Sheets scripts). A failing webhook never fails the run."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard limit on rows saved (and charged) in one run.",
            "default": 50
          },
          "canary": {
            "title": "Canary (health check)",
            "type": "boolean",
            "description": "Runs a free check of every source adapter (fetch, parse, plausibility) and reports pass or fail. No paid events. With a webhook URL set, a failure is sent as an alert.",
            "default": false
          },
          "asOfDate": {
            "title": "As-of date (optional)",
            "type": "string",
            "description": "YYYY-MM-DD used to compute days until shutdown. Default: today (UTC). Useful for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}