{
  "openapi": "3.0.1",
  "info": {
    "title": "Terms, Privacy & Pricing Page Change Monitor with Diff Alerts",
    "description": "Watch terms of service, privacy policy, pricing, refund and changelog pages on any site. Each run says what changed in plain text: sections, added and removed lines, price changes, new effective dates and keywords such as arbitration or AI training. Can find a domain's policy pages for you.",
    "version": "0.1",
    "x-build-id": "s6DCmWpTZWXzoXXgX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~policy-pricing-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-policy-pricing-change-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/dottti~policy-pricing-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-dottti-policy-pricing-change-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/dottti~policy-pricing-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-policy-pricing-change-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": {
          "pages": {
            "title": "Pages to watch",
            "type": "array",
            "description": "One page address per line: terms of service, privacy policy, pricing, refund or shipping policy, API terms, changelog, or any other page. Optionally add a label and a type, separated by \" | \", for example: Acme terms | https://acme.example/terms | terms. Types: terms, privacy, pricing, refund, changelog, other (guessed when left out). Empty, with no domains below = a demo with three example pages.",
            "items": {
              "type": "string"
            }
          },
          "discoverDomains": {
            "title": "Find policy pages on these domains",
            "type": "array",
            "description": "One domain per line (example.com). The actor reads the homepage links (header and footer), a Legal or Policies page if the site has one, and the sitemap, picks the pages of the types below, and watches them like the pages above. Pages not found are listed in a free status row.",
            "items": {
              "type": "string"
            }
          },
          "discoverTypes": {
            "title": "Page types to find",
            "type": "array",
            "description": "Which pages to look for on the domains above: terms, privacy, pricing, refund (also returns, shipping and cancellation policies), changelog.",
            "default": [
              "terms",
              "privacy",
              "pricing",
              "refund"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyChanged": {
            "title": "Only changed pages (alerts)",
            "type": "boolean",
            "description": "Return only pages that changed since the last run with the same alert name. The first run returns every page as first_seen (the baseline). Unchanged pages are still checked and saved, just not shown. Use with a schedule and a Slack or e-mail integration. The three demo pages are always shown.",
            "default": true
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Name of the saved snapshots this run compares with. Use a different name for each separate watch list or schedule.",
            "default": "default"
          },
          "keywords": {
            "title": "Keywords to flag",
            "type": "array",
            "description": "Words looked for in the page (keywordsMatched) and in the changed lines (keywordsInChange). Case is ignored and parts of words match (terminat matches termination), except short all-capital words such as AI, which match as whole words.",
            "default": [
              "arbitration",
              "class action",
              "AI",
              "artificial intelligence",
              "machine learning",
              "training",
              "data sharing",
              "share your",
              "sell your",
              "third part",
              "advertis",
              "price",
              "fee",
              "cancel",
              "refund",
              "auto-renew",
              "terminat",
              "liability",
              "indemn",
              "retention",
              "subprocessor",
              "jurisdiction"
            ],
            "items": {
              "type": "string"
            }
          },
          "extractPrices": {
            "title": "Read prices",
            "enum": [
              "auto",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Read currency amounts with the nearest plan name and compare them with the last run. auto = on pricing pages only; always = on every page; never = off.",
            "default": "auto"
          },
          "maxDiffLines": {
            "title": "Changed lines shown per page",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "At most this many added and this many removed lines are listed per page (each cut at 400 characters). The counts linesAdded and linesRemoved are always complete.",
            "default": 20
          },
          "includeSnapshot": {
            "title": "Include page text",
            "type": "boolean",
            "description": "Add the page's extracted text (headings marked with #) to each row, cut at the length below.",
            "default": false
          },
          "maxSnapshotLength": {
            "title": "Page text length (characters)",
            "minimum": 100,
            "maximum": 200000,
            "type": "integer",
            "description": "Longest page text included when Include page text is on.",
            "default": 5000
          },
          "contentSelector": {
            "title": "Only this part of the page (CSS selector)",
            "type": "string",
            "description": "Compare only the first element matching this CSS selector, for example #terms or .pricing-table. Empty = the main text, found automatically. When it matches nothing on a page, the main text is used and a free status row says so."
          },
          "ignoreSelectors": {
            "title": "Parts of the page to ignore (CSS selectors)",
            "type": "array",
            "description": "Elements removed before comparing, one CSS selector per line, for example .testimonials or #live-chat. Navigation, headers, footers, cookie banners and scripts are always removed.",
            "items": {
              "type": "string"
            }
          },
          "ignorePatterns": {
            "title": "Lines to ignore (regular expressions)",
            "type": "array",
            "description": "Lines matching any of these regular expressions (case is ignored) are left out before comparing, for example ^Customers served: or Updated every hour. Dates of visit, clock times, view counters, copyright years and session ids are always ignored.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max pages per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after checking this many pages (given and found together).",
            "default": 100
          },
          "requestDelayMs": {
            "title": "Delay between requests to the same site (ms)",
            "minimum": 250,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause between two requests to the same host. A longer crawl-delay in the site's robots.txt is followed. Different sites are checked in parallel.",
            "default": 1000
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries per request on network errors, 5xx and 429 answers (a Retry-After of up to 60 seconds is honoured).",
            "default": 2
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Longest wait for one page.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}