{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Insider Trading Scanner (AFM Directors' Dealings)",
    "description": "Read managers' transactions (MAR Art. 19) from the Dutch AFM register, convert values to EUR, and score open-market buys with a documented 0-100 heuristic and cluster detection. Covers AFM-supervised issuers only. Not investment advice.",
    "version": "0.0",
    "x-build-id": "WyKSwiuqdKjXVZZ3e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goobertje~eu-insider-trading-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goobertje-eu-insider-trading-scanner",
        "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/goobertje~eu-insider-trading-scanner/runs": {
      "post": {
        "operationId": "runs-sync-goobertje-eu-insider-trading-scanner",
        "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/goobertje~eu-insider-trading-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-goobertje-eu-insider-trading-scanner",
        "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": {
          "lookbackDays": {
            "title": "Lookback (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only transactions with a transaction date within this many days before today are output. The run walks the register from newest to oldest and stops at this date (it reads a further Cluster window of context for cluster detection). Range 1 to 365. Example: 14.",
            "default": 30
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of transactions (dataset items, each one billed) a run outputs; the newest matching ones are kept. Range 1 to 10000. Example: 100.",
            "default": 100
          },
          "openMarketOnly": {
            "title": "Open-market transactions only",
            "type": "boolean",
            "description": "If enabled, only plain-equity buys and sells are output. Option grants, share-plan awards, option exercises, share swaps, dividends, gifts, transfers, bond trades and rows without a positive price or quantity are skipped and not billed. Disable to get every row, flagged by isOpenMarket. Example: true.",
            "default": true
          },
          "transactionTypes": {
            "title": "Transaction types",
            "minItems": 1,
            "type": "array",
            "description": "Which normalised transaction types to output: buy, sell, other (everything that is neither, such as grants, gifts and dividends). Example: [\"buy\"] for buys only.",
            "items": {
              "type": "string",
              "enum": [
                "buy",
                "sell",
                "other"
              ],
              "enumTitles": [
                "Buy",
                "Sell",
                "Other (grants, gifts, exercises, dividends, ...)"
              ]
            },
            "default": [
              "buy",
              "sell"
            ]
          },
          "minConvictionScore": {
            "title": "Minimum conviction score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output open-market buys whose 0-100 conviction score is at least this value (sells and other rows have no score and are dropped when this is above 0). Range 0 to 100. Example: 50.",
            "default": 0
          },
          "minValueEur": {
            "title": "Minimum value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Only output transactions worth at least this many euros (price x quantity, converted with the ECB reference rate of the transaction date). Rows whose value cannot be computed are dropped when this is above 0. Example: 25000.",
            "default": 0
          },
          "clusterWindowDays": {
            "title": "Cluster window (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Cluster detection: other insiders of the same issuer who also made an open-market buy within plus or minus this many days raise the conviction score. Range 1 to 90. Example: 14.",
            "default": 14
          },
          "issuerContains": {
            "title": "Issuer name contains",
            "type": "array",
            "description": "Optional. Only output transactions whose issuer name contains one of these texts (case-insensitive). Example: [\"unilever\", \"asml\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "isins": {
            "title": "ISINs",
            "type": "array",
            "description": "Optional. Only output transactions in these ISINs (case-insensitive). Rows without an ISIN are skipped when this is set. Example: [\"NL0010273215\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxNotifications": {
            "title": "Max register notifications to read",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on the number of AFM notification pages fetched (one request each, at least 1 second apart; a notification holds one or more transaction rows). Range 1 to 10000. Example: 1500.",
            "default": 1500
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 1,
            "maximum": 30,
            "type": "number",
            "description": "Pause between requests to the AFM website to stay polite. Minimum 1, maximum 30. Example: 1.0.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}