{
  "openapi": "3.0.1",
  "info": {
    "title": "DeltaLote — Dataset Diff & Change Detector",
    "description": "Compare two snapshots from JSON, CSV or Apify datasets. Detect added and missing records and field-level changes using your chosen keys. Get before/after values, a JSON report and a CSV of changes. Useful for tracking catalogs, prices and stock.",
    "version": "0.0",
    "x-build-id": "b0d7Mjs6GO1FyJKOQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/proficient_rockpool~deltalote-dataset-diff/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-proficient_rockpool-deltalote-dataset-diff",
        "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/proficient_rockpool~deltalote-dataset-diff/runs": {
      "post": {
        "operationId": "runs-sync-proficient_rockpool-deltalote-dataset-diff",
        "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/proficient_rockpool~deltalote-dataset-diff/run-sync": {
      "post": {
        "operationId": "run-sync-proficient_rockpool-deltalote-dataset-diff",
        "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",
        "required": [
          "format",
          "keyFields"
        ],
        "properties": {
          "format": {
            "title": "Input format",
            "enum": [
              "json",
              "csv",
              "datasets"
            ],
            "type": "string",
            "description": "Supply both snapshots in the selected format. Inactive-format fields are ignored.",
            "default": "json"
          },
          "previous": {
            "title": "Previous JSON snapshot",
            "maxItems": 5000,
            "type": "array",
            "description": "Baseline records. Each row must be an object; maximum 5,000 rows."
          },
          "current": {
            "title": "Current JSON snapshot",
            "maxItems": 5000,
            "type": "array",
            "description": "Latest records. Maximum 5,000 rows. Empty current requires explicit permission."
          },
          "previousCsv": {
            "title": "Previous CSV snapshot",
            "type": "string",
            "description": "CSV text including one unique header row. Used only in CSV mode."
          },
          "currentCsv": {
            "title": "Current CSV snapshot",
            "type": "string",
            "description": "Current CSV text including a header. Used only in CSV mode."
          },
          "delimiter": {
            "title": "CSV delimiter",
            "enum": [
              ",",
              ";",
              "\t"
            ],
            "type": "string",
            "description": "CSV column separator. Comma is the default; select semicolon for many European exports.",
            "default": ","
          },
          "previousDatasetId": {
            "title": "Previous Apify dataset",
            "type": "string",
            "description": "Select a stable dataset from a completed run. Read-only access to this selected resource."
          },
          "currentDatasetId": {
            "title": "Current Apify dataset",
            "type": "string",
            "description": "Select the newer completed dataset. Sources are never modified."
          },
          "keyFields": {
            "title": "Identity fields",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Top-level field names. Combine fields for composite keys. Keys must be unique; types and whitespace are exact.",
            "default": [
              "sku"
            ],
            "items": {
              "type": "string"
            }
          },
          "compareFields": {
            "title": "Compare only these fields",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Empty = all top-level fields except keys and ignored fields. Dot characters are literal, not nested paths.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ignoreFields": {
            "title": "Ignore fields",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional noise fields such as crawl timestamps. A misspelled field fails validation.",
            "items": {
              "type": "string"
            }
          },
          "numericFields": {
            "title": "Normalize decimal fields",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional exact decimal comparison. Plain decimals only; no currency signs or thousands grouping. Keys cannot be normalized.",
            "items": {
              "type": "string"
            }
          },
          "decimalSeparator": {
            "title": "Decimal separator in numeric strings",
            "enum": [
              ".",
              ","
            ],
            "type": "string",
            "description": "Applies only to selected numeric fields. Thousands separators are not accepted.",
            "default": "."
          },
          "trimStrings": {
            "title": "Trim string values before comparison",
            "type": "boolean",
            "description": "Applies to compared values, never to identifiers. Original values remain in reports.",
            "default": false
          },
          "ignoreCase": {
            "title": "Ignore string case",
            "type": "boolean",
            "description": "Optional Unicode lowercase comparison. Identifiers remain exact.",
            "default": false
          },
          "allowEmptyCurrent": {
            "title": "Allow intentionally empty current snapshot",
            "type": "boolean",
            "description": "Keep off to protect against a failed upstream crawl looking like a complete disappearance.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}