{
  "openapi": "3.0.1",
  "info": {
    "title": "Parquet Converter – Parquet to CSV, JSON & Excel and Back",
    "description": "Convert Apache Parquet files to CSV, JSON, JSONL or Excel, or CSV/JSON/Excel and Apify datasets to Parquet, in bulk from URLs. Shows the schema, row count and column types; you can select columns and choose Snappy or ZSTD compression. Fast, with no code, Python or DuckDB to install. $0.006 per file.",
    "version": "0.1",
    "x-build-id": "mGkFmFVzb3T4p3AYC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~parquet-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-parquet-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/gazidev~parquet-converter/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-parquet-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/gazidev~parquet-converter/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-parquet-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": {
          "fileUrls": {
            "title": "File URLs",
            "type": "array",
            "description": "Public URLs of Parquet files (converted to CSV / JSON / JSONL / Excel) or of CSV, TSV, JSON, JSON Lines or Excel (XLSX) files (converted to Parquet). One output file per URL. GitHub 'blob', Dropbox, Google Drive and Google Sheets share links are turned into direct downloads. S3 / GCS / Azure: use a pre-signed or public HTTPS link. Leave everything empty to convert an example Parquet file.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Apify dataset (to Parquet)",
            "type": "string",
            "description": "An Apify dataset, e.g. the output of a scraper run, converted to one Parquet file. Nested objects become dot columns (address.city). In an integration use {{resource.defaultDatasetId}}."
          },
          "direction": {
            "title": "Direction",
            "enum": [
              "auto",
              "from-parquet",
              "to-parquet"
            ],
            "type": "string",
            "description": "Auto: Parquet files are converted to the output format below, every other file (and the dataset) to Parquet. 'To Parquet' also re-writes Parquet files (change compression, keep some columns, cut rows).",
            "default": "auto"
          },
          "outputFormat": {
            "title": "Output format (from Parquet)",
            "enum": [
              "csv",
              "json",
              "jsonl",
              "xlsx",
              "schema-only"
            ],
            "type": "string",
            "description": "Format for Parquet inputs. 'Schema + preview only' writes no file: it returns the column names and types, row count, row groups, codec and the first 5 rows (a Parquet viewer).",
            "default": "csv"
          },
          "compression": {
            "title": "Parquet compression (to Parquet)",
            "enum": [
              "snappy",
              "zstd",
              "gzip",
              "none"
            ],
            "type": "string",
            "description": "Codec of the Parquet files written. Snappy is the most compatible (Spark, Pandas, DuckDB, BigQuery, Athena); ZSTD makes smaller files.",
            "default": "snappy"
          },
          "columns": {
            "title": "Columns to keep",
            "type": "array",
            "description": "Only these columns, in this order (top-level Parquet column names, or flattened names like address.city for JSON / dataset inputs). Empty = all columns.",
            "items": {
              "type": "string"
            }
          },
          "maxRows": {
            "title": "Max rows per file",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each input after this many rows (0 = no limit). Useful for a quick sample of a big file.",
            "default": 0
          },
          "csvDelimiter": {
            "title": "CSV delimiter (output)",
            "enum": [
              ",",
              ";",
              "tab",
              "|"
            ],
            "type": "string",
            "description": "Delimiter of the CSV written from Parquet.",
            "default": ","
          },
          "excelBom": {
            "title": "UTF-8 BOM in CSV (for Excel)",
            "type": "boolean",
            "description": "Start the CSV with a byte-order mark so Excel shows accents and non-Latin text correctly. Off by default (data tools prefer no BOM).",
            "default": false
          },
          "inputDelimiter": {
            "title": "Input CSV delimiter (to Parquet)",
            "enum": [
              "auto",
              ",",
              ";",
              "tab",
              "|"
            ],
            "type": "string",
            "description": "Delimiter of the CSV files you convert to Parquet. Auto-detect works for comma, semicolon, tab and pipe.",
            "default": "auto"
          },
          "keepAsText": {
            "title": "Keep these columns as text (to Parquet)",
            "type": "array",
            "description": "Column types are detected automatically (integers, decimals, booleans, timestamps). List columns that must stay strings, e.g. zip codes or IDs with leading zeros (01234).",
            "items": {
              "type": "string"
            }
          },
          "httpHeaders": {
            "title": "HTTP headers for the URLs",
            "type": "object",
            "description": "Optional headers sent with every download, e.g. {\"Authorization\": \"Bearer ...\"}. They are stored in the run input, so prefer a short-lived token."
          },
          "maxFileSizeMb": {
            "title": "Max download size (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Larger downloads are rejected (not charged). Raise the run memory for files above ~100 MB (Parquet expands several times in memory).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}