{
  "openapi": "3.0.1",
  "info": {
    "title": "PDF-Preislisten zu Excel & Preisvergleich (DACH)",
    "description": "Extrahiert Artikelnummern und Preise aus PDF-Preislisten mit Textschicht. Liefert Excel, CSV, JSON und einen Prüfbericht mit Quellenangaben. Optionaler Vergleich zweier Listen bei passenden Einheiten und Preisbasen. Keine OCR; Ergebnisse vor Verwendung prüfen.",
    "version": "0.0",
    "x-build-id": "7Rj7Wb2oEke3me6iW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rooted_inference~dach-pdf-price-check-prototyp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rooted_inference-dach-pdf-price-check-prototyp",
        "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/rooted_inference~dach-pdf-price-check-prototyp/runs": {
      "post": {
        "operationId": "runs-sync-rooted_inference-dach-pdf-price-check-prototyp",
        "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/rooted_inference~dach-pdf-price-check-prototyp/run-sync": {
      "post": {
        "operationId": "run-sync-rooted_inference-dach-pdf-price-check-prototyp",
        "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": {
          "demoMode": {
            "title": "Run fictional demo",
            "type": "boolean",
            "description": "Process only two bundled fictional price lists. No PDF URL is fetched and the report is marked as synthetic demo data. Disable this to process your own URLs.",
            "default": false
          },
          "pdfUrl": {
            "title": "Current price list PDF",
            "pattern": "^https://[^\\s]+$",
            "type": "string",
            "description": "Required unless fictional demo mode is enabled. Public HTTPS URL of the current price list. Private networks and authenticated URLs are not supported."
          },
          "previousPdfUrl": {
            "title": "Previous price list PDF (optional)",
            "pattern": "^https://[^\\s]+$",
            "type": "string",
            "description": "Public HTTPS URL of an older version. Only identical article numbers with compatible price basis and units can be compared."
          },
          "tableMode": {
            "title": "Table detection",
            "enum": [
              "auto",
              "lines",
              "layout",
              "text"
            ],
            "type": "string",
            "description": "Automatic tries grid tables, then bounded header-guided layout, then aligned text. Explicit layout also supports underlined three-column category / Product code / List price EUR, CHF, USD or GBP tables with single-line, aligned rows. Ambiguous sections and multipart codes require review.",
            "default": "auto"
          },
          "decimalSeparator": {
            "title": "Decimal separator",
            "enum": [
              ",",
              "."
            ],
            "type": "string",
            "description": "Comma: 1.234,56. Period: 1,234.56. Ambiguous or malformed amounts are flagged instead of guessed.",
            "default": ","
          },
          "defaultCurrency": {
            "title": "Default currency",
            "enum": [
              "EUR",
              "CHF",
              "USD",
              "GBP"
            ],
            "type": "string",
            "description": "Used only where the selected price column does not state a currency. Select the currency of the document.",
            "default": "EUR"
          },
          "maxPages": {
            "title": "Maximum pages per PDF",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Processing stops at this limit and the report marks the document as incomplete.",
            "default": 30
          },
          "maxFileMb": {
            "title": "Maximum download size per PDF (MiB)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Files exceeding this limit are rejected before parsing. Both PDFs are limited individually.",
            "default": 20
          },
          "columns": {
            "title": "Explicit column indexes (optional)",
            "type": "object",
            "description": "Override detected columns with zero-based indexes, e.g. {\"price\":3} to select one of several price columns. For tables without headers include sku and price, e.g. {\"sku\":0,\"description\":1,\"price\":3,\"unit\":2}. Applies to the current document and, unless overridden under Previous PDF settings, the older document. A previous columns override replaces this entire mapping.",
            "properties": {
              "sku": {
                "title": "Article number column",
                "description": "Zero-based index of the article number column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "description": {
                "title": "Description column",
                "description": "Zero-based index of the product description column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "price": {
                "title": "Price column",
                "description": "Zero-based index of the selected price column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "currency": {
                "title": "Currency column",
                "description": "Zero-based index of the currency column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "price_basis": {
                "title": "Net/gross basis column",
                "description": "Zero-based index of the net or gross price basis column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "unit": {
                "title": "Unit column",
                "description": "Zero-based index of the price unit column.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "additionalProperties": false
          },
          "priceBasis": {
            "title": "Select net or gross price column",
            "enum": [
              "auto",
              "net",
              "gross"
            ],
            "type": "string",
            "description": "Select a column explicitly labelled net or gross. Automatic leaves multiple price columns unresolved. This selection never relabels gross prices as net.",
            "default": "auto"
          },
          "assumedPriceBasis": {
            "title": "Declare missing net/gross basis (optional)",
            "enum": [
              "unknown",
              "net",
              "gross"
            ],
            "type": "string",
            "description": "Use only after checking the source document, e.g. a general note outside the table. Applies only to unlabelled columns and is disclosed in every report. No tax conversion.",
            "default": "unknown"
          },
          "defaultUnit": {
            "title": "Declare missing price unit (optional)",
            "maxLength": 80,
            "type": "string",
            "description": "Use only if the same price unit applies to all unlabelled rows, e.g. 100 pieces. Packaging quantity is not a price unit. This assumption is disclosed. Leave blank if uncertain."
          },
          "pageNumbers": {
            "title": "Only these PDF pages (optional)",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One-based PDF page numbers, e.g. [3,5,6]. Applies to both documents unless overridden under Previous PDF settings; the report explicitly marks selected-page scope. Leave unset to process from the beginning up to the page limit.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          "previousOptions": {
            "title": "Previous PDF settings (optional)",
            "type": "object",
            "description": "Override extraction settings only for the older PDF. Omitted fields inherit the top-level settings. Example: {\"pageNumbers\":[2],\"columns\":{\"price\":3}}. Column mappings replace the entire inherited map. Global page/file limits still apply; source URLs and file paths are not permitted here. Effective settings appear in the report summary.",
            "properties": {
              "pageNumbers": {
                "title": "Only these PDF pages (optional)",
                "description": "One-based pages of the older PDF only, e.g. [2,3]. Omit to inherit the top-level page selection; selected-page scope is disclosed.",
                "type": "array",
                "editor": "json",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 10000
                },
                "minItems": 1,
                "maxItems": 100
              },
              "tableMode": {
                "title": "Table detection",
                "type": "string",
                "description": "Automatic tries grid tables, then bounded header-guided layout, then aligned text. Explicit layout also supports underlined three-column category / Product code / List price EUR, CHF, USD or GBP tables with single-line, aligned rows. Ambiguous sections and multipart codes require review.",
                "editor": "select",
                "enum": [
                  "auto",
                  "lines",
                  "layout",
                  "text"
                ],
                "enumTitles": [
                  "Automatic",
                  "Table grid",
                  "Header-guided layout",
                  "Aligned text"
                ]
              },
              "columns": {
                "title": "Explicit column indexes (optional)",
                "type": "object",
                "description": "Zero-based columns of the older PDF only. This replaces the complete top-level column map; omit to inherit it. Include every explicit field needed for this older layout.",
                "editor": "json",
                "properties": {
                  "sku": {
                    "title": "Article number column",
                    "description": "Zero-based index of the article number column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "description": {
                    "title": "Description column",
                    "description": "Zero-based index of the product description column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "price": {
                    "title": "Price column",
                    "description": "Zero-based index of the selected price column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "currency": {
                    "title": "Currency column",
                    "description": "Zero-based index of the currency column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "price_basis": {
                    "title": "Net/gross basis column",
                    "description": "Zero-based index of the net or gross price basis column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "unit": {
                    "title": "Unit column",
                    "description": "Zero-based index of the price unit column.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  }
                },
                "additionalProperties": false
              },
              "decimalSeparator": {
                "title": "Decimal separator",
                "type": "string",
                "description": "Comma: 1.234,56. Period: 1,234.56. Ambiguous or malformed amounts are flagged instead of guessed.",
                "editor": "select",
                "enum": [
                  ",",
                  "."
                ],
                "enumTitles": [
                  "Comma (German/Austrian format)",
                  "Period (English format)"
                ]
              },
              "defaultCurrency": {
                "title": "Default currency",
                "type": "string",
                "description": "Used only where the selected price column does not state a currency. Select the currency of the document.",
                "editor": "select",
                "enum": [
                  "EUR",
                  "CHF",
                  "USD",
                  "GBP"
                ]
              },
              "priceBasis": {
                "title": "Select net or gross price column",
                "description": "Select a column explicitly labelled net or gross. Automatic leaves multiple price columns unresolved. This selection never relabels gross prices as net.",
                "type": "string",
                "editor": "select",
                "enum": [
                  "auto",
                  "net",
                  "gross"
                ],
                "enumTitles": [
                  "Automatic (reject ambiguous columns)",
                  "Net",
                  "Gross"
                ]
              },
              "assumedPriceBasis": {
                "title": "Declare missing net/gross basis (optional)",
                "description": "Use only after checking the source document, e.g. a general note outside the table. Applies only to unlabelled columns and is disclosed in every report. No tax conversion.",
                "type": "string",
                "editor": "select",
                "enum": [
                  "unknown",
                  "net",
                  "gross"
                ],
                "enumTitles": [
                  "Leave unknown",
                  "I confirm net prices",
                  "I confirm gross prices"
                ]
              },
              "defaultUnit": {
                "title": "Declare missing price unit (optional)",
                "description": "Use only if the same price unit applies to all unlabelled rows, e.g. 100 pieces. Packaging quantity is not a price unit. This assumption is disclosed. Leave blank if uncertain.",
                "type": "string",
                "editor": "textfield",
                "maxLength": 80
              }
            },
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}