{
  "openapi": "3.0.1",
  "info": {
    "title": "LEI Change Monitor: GLEIF Parent, Status, Renewal",
    "description": "Monitor LEIs in the GLEIF Golden Copy and get one row per change since your last run: parent, ultimate parent, registration status, renewal date, legal name, legal address, jurisdiction. $5 per 1,000 changes, $0.10 per 1,000 LEIs checked. Independent tool, not affiliated with GLEIF.",
    "version": "0.0",
    "x-build-id": "AWxFm5cKs76LdDeca"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/conserving_celerytop~gleif-ownership-change-monitor-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-conserving_celerytop-gleif-ownership-change-monitor-api",
        "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/conserving_celerytop~gleif-ownership-change-monitor-api/runs": {
      "post": {
        "operationId": "runs-sync-conserving_celerytop-gleif-ownership-change-monitor-api",
        "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/conserving_celerytop~gleif-ownership-change-monitor-api/run-sync": {
      "post": {
        "operationId": "run-sync-conserving_celerytop-gleif-ownership-change-monitor-api",
        "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": {
          "leis": {
            "title": "LEIs",
            "maxItems": 2000,
            "type": "array",
            "description": "Enter one 20-character LEI per line. The Actor checks the format and the check digits before any request. Add up to 2,000 LEIs per run.",
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names",
            "maxItems": 200,
            "type": "array",
            "description": "Enter one legal name per line. The Actor looks up the best matching LEI and adds it to the list. A row of type name-resolved shows the LEI it picked and a confidence note. Enter the LEI instead when several companies share a name.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "changes",
              "snapshot"
            ],
            "type": "string",
            "description": "Pick changes to compare with the state saved by the previous run. Pick snapshot to read the current state of each LEI. Snapshot leaves the saved state as it is.",
            "default": "changes"
          },
          "changeTypes": {
            "title": "Change types",
            "type": "array",
            "description": "Pick the change types to report. Leave the list empty to report all types. A type left out keeps its stored value, so a later run that selects it still reports the change.",
            "items": {
              "type": "string",
              "enum": [
                "direct-parent-changed",
                "ultimate-parent-changed",
                "direct-parent-exception-changed",
                "ultimate-parent-exception-changed",
                "registration-status-changed",
                "renewal-date-passed",
                "next-renewal-date-changed",
                "legal-name-changed",
                "legal-address-changed",
                "jurisdiction-changed",
                "entity-status-changed"
              ],
              "enumTitles": [
                "Direct parent changed",
                "Ultimate parent changed",
                "Direct parent reporting exception changed",
                "Ultimate parent reporting exception changed",
                "Registration status changed (lapsed, retired, annulled, duplicate)",
                "Renewal date passed",
                "Next renewal date changed",
                "Legal name changed",
                "Legal address changed",
                "Jurisdiction changed",
                "Entity status changed (active or inactive)"
              ]
            }
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "Return only LEIs with a change. Switch it off to also get one unchanged row for every other LEI. Unchanged rows are free.",
            "default": true
          },
          "emitBaseline": {
            "title": "Emit baseline",
            "type": "boolean",
            "description": "Return one baseline row with the current state for every LEI that the monitor sees for the first time. Baseline rows are free.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Enter a short name for this watch list, using letters, digits, dots, hyphens and underscores. The state is saved in the named key-value store gleif-monitor-state under this name. Use one name for each watch list and each set of change types.",
            "default": "default"
          },
          "includeParents": {
            "title": "Include parents",
            "type": "boolean",
            "description": "Check the direct parent, the ultimate parent and their reporting exceptions. This adds up to two requests per LEI. Switch it off for a fast check of status, renewal, name, address and jurisdiction at 50 LEIs per request.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}