{
  "openapi": "3.0.1",
  "info": {
    "title": "CSV, JSON & Excel Converter: XLSX, NDJSON, XML, Parquet",
    "description": "Convert data files in bulk between CSV, TSV, JSON, JSON Lines, Excel, XML, Parquet, HTML and Markdown. Flattens nested JSON, auto-detects delimiters and encodings, exports Apify datasets. $2 per 1,000 files.",
    "version": "0.1",
    "x-build-id": "M4hjHDyQ1a2ucAaM5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~csv-json-excel-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-csv-json-excel-converter",
        "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/plotpointtech~csv-json-excel-converter/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-csv-json-excel-converter",
        "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/plotpointtech~csv-json-excel-converter/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-csv-json-excel-converter",
        "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": {
          "files": {
            "title": "File URLs",
            "type": "array",
            "description": "Direct links to CSV, TSV, JSON, NDJSON/JSON Lines, Excel (XLSX/XLS), XML or Parquet files.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "uploadedFile": {
            "title": "Or upload a file",
            "type": "string",
            "description": "Upload a data file from your computer."
          },
          "datasetId": {
            "title": "Or convert an Apify dataset",
            "type": "string",
            "description": "An Apify dataset (for example the output of another Actor) to export."
          },
          "outputFormats": {
            "title": "Convert to",
            "type": "array",
            "description": "One output file per input and format.",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "csv",
                "xlsx",
                "ndjson",
                "tsv",
                "xml",
                "parquet",
                "html",
                "markdown"
              ],
              "enumTitles": [
                "JSON",
                "CSV",
                "Excel (XLSX)",
                "NDJSON / JSON Lines",
                "TSV",
                "XML",
                "Parquet",
                "HTML table",
                "Markdown table"
              ]
            },
            "default": [
              "json",
              "xlsx"
            ]
          },
          "inputFormat": {
            "title": "Input format",
            "enum": [
              "auto",
              "csv",
              "tsv",
              "json",
              "ndjson",
              "xlsx",
              "xls",
              "xml",
              "parquet"
            ],
            "type": "string",
            "description": "Auto-detected from the file name and content.",
            "default": "auto"
          },
          "hasHeader": {
            "title": "First row is a header (CSV/Excel)",
            "type": "boolean",
            "description": "Turn off if the file has no header row; columns are then numbered.",
            "default": true
          },
          "delimiter": {
            "title": "CSV delimiter",
            "type": "string",
            "description": "Leave empty to auto-detect (comma, semicolon, tab, pipe)."
          },
          "encoding": {
            "title": "Text encoding",
            "enum": [
              "auto",
              "utf-8",
              "latin-1",
              "cp1252",
              "utf-16"
            ],
            "type": "string",
            "description": "Auto-detected if not set.",
            "default": "auto"
          },
          "sheets": {
            "title": "Excel sheets",
            "type": "array",
            "description": "Sheet names or numbers (1 = first) to convert. Empty = all sheets.",
            "items": {
              "type": "string"
            }
          },
          "jsonPath": {
            "title": "JSON records path",
            "type": "string",
            "description": "Dot path to the list of records inside a JSON file, for example data.items. Empty = auto-detect the largest list."
          },
          "flattenJson": {
            "title": "Flatten nested JSON",
            "type": "boolean",
            "description": "Turn nested objects into columns such as address.city.",
            "default": true
          },
          "flattenSeparator": {
            "title": "Flatten separator",
            "type": "string",
            "description": "Character between nested keys in column names.",
            "default": "."
          },
          "xmlXpath": {
            "title": "XML row XPath",
            "type": "string",
            "description": "XPath of the repeating row element, for example //item. Empty = auto."
          },
          "outputDelimiter": {
            "title": "Output CSV delimiter",
            "type": "string",
            "description": "Use ; for European Excel.",
            "default": ","
          },
          "excelFriendlyCsv": {
            "title": "Excel-friendly CSV (UTF-8 BOM)",
            "type": "boolean",
            "description": "Adds a byte-order mark so Excel opens accents and non-Latin text correctly.",
            "default": true
          },
          "maxFileSizeMb": {
            "title": "Maximum file size (MB)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Larger files are skipped.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}