{
  "openapi": "3.0.1",
  "info": {
    "title": "RIA Change Radar: Form ADV Alerts & GTM Triggers",
    "description": "Watch the RIA firms you name (by CRD or name+state) or a state/AUM filter and get typed changes from the filed SEC Form ADV on your schedule: crossed AUM band, advisers added/removed, custody, new registrant, scope, disclosure. Per-firm memory dedupes so you never see a change twice.",
    "version": "0.0",
    "x-build-id": "Wkynp7nTABfE4oXst"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yungstentech~ria-adv-change-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yungstentech-ria-adv-change-radar",
        "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/yungstentech~ria-adv-change-radar/runs": {
      "post": {
        "operationId": "runs-sync-yungstentech-ria-adv-change-radar",
        "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/yungstentech~ria-adv-change-radar/run-sync": {
      "post": {
        "operationId": "run-sync-yungstentech-ria-adv-change-radar",
        "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": [
              "check",
              "watch",
              "unwatch",
              "list-events",
              "report"
            ],
            "type": "string",
            "description": "check = point-in-time ADV pull per firm; watch = enroll firms in per-firm memory and get typed change events on your schedule; unwatch = drop firms from a watch; list-events = summarize a watch; report = a one-off cohort-exposure report.",
            "default": "check"
          },
          "firms": {
            "title": "Firms (CRD numbers or {name, state})",
            "type": "array",
            "description": "The RIA firms to check or watch. Each item is a CRD number (e.g. 105958) or a {\"name\": \"...\", \"state\": \"XX\"} object. Name+state resolves to a CRD only on an unambiguous match; an ambiguous name returns a needs_confirmation row and is NOT watched or charged."
          },
          "cohortFilter": {
            "title": "Cohort filter (report / cohort watch)",
            "type": "object",
            "description": "Match a set of firms by {state, minAum, maxAum, registrationScope: 'sec'|'era'}. A cohort watch runs a free preview first (matched count + monthly price) and enrolls nothing until confirmCohort is true; a 500-firm hard cap and a volume step-down above 100 firms bound an unguarded filter. In report mode the predicate is applied at BOTH feed endpoints and the CRD union is diffed."
          },
          "reportStartDate": {
            "title": "Report start date (report mode)",
            "type": "string",
            "description": "report mode only: the earlier of the two SEC feed snapshots to diff, as YYYY-MM-DD. Leave blank to use a trailing default window ending at the newest available feed. The report compares these two point-in-time snapshots only; it does not claim coverage of the days between them."
          },
          "reportEndDate": {
            "title": "Report end date (report mode)",
            "type": "string",
            "description": "report mode only: the later of the two SEC feed snapshots to diff, as YYYY-MM-DD. Leave blank to use the newest available feed."
          },
          "confirmCohort": {
            "title": "Confirm cohort enrollment",
            "type": "boolean",
            "description": "A cohort watch enrolls (and starts billing per matched firm) only when this is true. Leave false to get the free preview first.",
            "default": false
          },
          "triggers": {
            "title": "Triggers to fire",
            "type": "array",
            "description": "Subset of: crossed_aum_threshold (an actual upward band crossing, old < band <= new), regulatory_aum_changed (a filed RAUM move that stays within a band), advisers_added, advisers_removed, custody_changed, new_registrant, registration_scope_changed, new_disclosure, office_moved. Default is all. (deregistered is always reported.)"
          },
          "aumBands": {
            "title": "AUM bands for crossed_aum_threshold ($)",
            "type": "array",
            "description": "Thresholds for crossed_aum_threshold: a firm fires it only when its filed RAUM crosses a band upward (old < band <= new), reporting the highest band actually crossed. A move that stays inside one band fires regulatory_aum_changed instead. Default [100M, 250M, 1B, 5B]."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "Optional https:// endpoint that receives a best-effort POST of the changes found this run. The dataset is always the durable record. Put a secret token in the URL if you need origin verification."
          },
          "watchId": {
            "title": "Watch ID",
            "type": "string",
            "description": "Names this watch's memory namespace (its own key-value store). Use one watchId per portfolio you track. Lowercase letters, digits and hyphens, 1-40 chars.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}