{
  "openapi": "3.0.1",
  "info": {
    "title": "CSV to Excel & JSON to CSV Converter API",
    "description": "CSV to Excel, JSON to CSV and XLSX converter: convert between CSV, TSV, JSON, NDJSON and Excel XLSX from URLs, base64 or inline JSON. Delimiter and encoding detection, nested JSON flattening, typed cells. For n8n, Make and AI agents. $0.003 per file.",
    "version": "1.0",
    "x-build-id": "SjJGmrhuPYpqVae8Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ferrolark~data-convert/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ferrolark-data-convert",
        "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/ferrolark~data-convert/runs": {
      "post": {
        "operationId": "runs-sync-ferrolark-data-convert",
        "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/ferrolark~data-convert/run-sync": {
      "post": {
        "operationId": "run-sync-ferrolark-data-convert",
        "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 CSV, TSV, JSON, NDJSON/JSONL or XLSX files. Up to 20 files and 50 MB per run (500,000 rows per file).",
            "items": {
              "type": "string"
            }
          },
          "files": {
            "title": "Files as base64 (optional)",
            "type": "array",
            "description": "For n8n/Make binaries: a list of {\"base64\": \"...\", \"name\": \"orders.csv\"} objects."
          },
          "data": {
            "title": "Inline data (optional)",
            "type": "array",
            "description": "Rows as JSON, for example the output of a previous n8n node: [{\"sku\": \"A-1\", \"qty\": 3}]."
          },
          "dataFileName": {
            "title": "Name for inline data",
            "type": "string",
            "description": "Output file name (without extension) for the inline data.",
            "default": "data"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "xlsx",
              "csv",
              "tsv",
              "json",
              "ndjson"
            ],
            "type": "string",
            "description": "Target format.",
            "default": "xlsx"
          },
          "inputFormat": {
            "title": "Input format",
            "enum": [
              "auto",
              "csv",
              "tsv",
              "json",
              "ndjson",
              "xlsx"
            ],
            "type": "string",
            "description": "Auto detects from the content.",
            "default": "auto"
          },
          "inputDelimiter": {
            "title": "CSV delimiter",
            "type": "string",
            "description": "Empty = auto-detect (comma, semicolon, tab or pipe). Use \\t for tab."
          },
          "hasHeader": {
            "title": "First row is the header (CSV/XLSX)",
            "type": "boolean",
            "description": "Turn off for files without a header row; columns are then named column_1, column_2, ...",
            "default": true
          },
          "sheet": {
            "title": "XLSX sheet",
            "type": "string",
            "description": "Sheet to read. Default: the first one."
          },
          "jsonPath": {
            "title": "JSON path to the rows",
            "type": "string",
            "description": "For example data.items. By default a single top-level array of objects is found automatically."
          },
          "inferTypes": {
            "title": "Detect numbers and booleans in CSV",
            "type": "boolean",
            "description": "Numbers become numbers; values with leading zeros (zip codes, IDs) stay text.",
            "default": true
          },
          "flatten": {
            "title": "Flatten nested JSON",
            "type": "boolean",
            "description": "For CSV/XLSX output: {\"user\": {\"name\": ...}} becomes a user.name column.",
            "default": true
          },
          "arrays": {
            "title": "Arrays in CSV/XLSX",
            "enum": [
              "json",
              "index"
            ],
            "type": "string",
            "description": "How lists are written.",
            "default": "json"
          },
          "columns": {
            "title": "Column order (optional)",
            "type": "array",
            "description": "Put these columns first, in this order. Other columns follow.",
            "items": {
              "type": "string"
            }
          },
          "outputDelimiter": {
            "title": "CSV output delimiter",
            "type": "string",
            "description": "Use ; for European Excel.",
            "default": ","
          },
          "sheetName": {
            "title": "XLSX sheet name",
            "type": "string",
            "description": "Default: Sheet1 (or the input sheet's name)."
          },
          "prettyJson": {
            "title": "Pretty-print JSON",
            "type": "boolean",
            "description": "Indent JSON output.",
            "default": false
          },
          "createZip": {
            "title": "Also create a ZIP",
            "type": "boolean",
            "description": "Bundle all outputs in one ZIP (free).",
            "default": true
          },
          "createShareableUrl": {
            "title": "Create shareable download links",
            "type": "boolean",
            "description": "Also return signed links that work without an Apify token. Anyone with a link can download that file.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}