{
  "openapi": "3.0.1",
  "info": {
    "title": "TSV to CSV Converter: Delimiters, Quotes, Line Endings",
    "description": "Convert TSV to CSV, CSV to TSV, or semicolon / pipe / custom separated files from URLs or Apify datasets. Handles quoted cells, quote-all, trimming, LF/CRLF and UTF-8 / BOM / Shift_JIS / cp1252 output. Empty input = free demo.",
    "version": "0.1",
    "x-build-id": "zg7szPqgNYKWy2TbY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ucchiii~tsv-csv-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ucchiii-tsv-csv-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/ucchiii~tsv-csv-converter/runs": {
      "post": {
        "operationId": "runs-sync-ucchiii-tsv-csv-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/ucchiii~tsv-csv-converter/run-sync": {
      "post": {
        "operationId": "run-sync-ucchiii-tsv-csv-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 http(s) links to TSV, CSV or other delimited text files, one per entry (up to 50 files and 50 MB each). Links to internal networks are blocked. Leave this AND 'Apify datasets with files' empty to run a free demo on a built-in sample (not charged).",
            "items": {
              "type": "string"
            }
          },
          "datasetIds": {
            "title": "Apify datasets with files",
            "type": "array",
            "description": "Optional. Dataset IDs whose items each hold one file: 'contentBase64' (the file bytes, base64-encoded) and optionally 'fileName'. Each item becomes one output file."
          },
          "inputDelimiter": {
            "title": "Input delimiter",
            "enum": [
              "auto",
              "comma",
              "tab",
              "semicolon",
              "pipe",
              "custom"
            ],
            "type": "string",
            "description": "Column separator of the source files. 'auto' looks at the first lines and picks comma, semicolon, tab or pipe. Choose it yourself for other characters. Default: auto.",
            "default": "auto"
          },
          "customInputDelimiter": {
            "title": "Custom input delimiter",
            "maxLength": 1,
            "type": "string",
            "description": "One character; used only when the input delimiter is 'custom', for example ~ or ^."
          },
          "outputDelimiter": {
            "title": "Output delimiter",
            "enum": [
              "comma",
              "tab",
              "semicolon",
              "pipe",
              "custom"
            ],
            "type": "string",
            "description": "Column separator of the converted file. Cells that contain it are wrapped in quotes automatically. Default: comma.",
            "default": "comma"
          },
          "customOutputDelimiter": {
            "title": "Custom output delimiter",
            "maxLength": 1,
            "type": "string",
            "description": "One character; used only when the output delimiter is 'custom', for example ~ or ^. A quote mark or a space is not allowed."
          },
          "quoteAll": {
            "title": "Quote every cell",
            "type": "boolean",
            "description": "Wraps every cell in double quotes, not only the ones that need it. Some importers require this. Default: off (quotes only where needed).",
            "default": false
          },
          "trimCells": {
            "title": "Trim spaces around cells",
            "type": "boolean",
            "description": "Removes leading and trailing spaces, tabs and line breaks from every cell, including the header. Default: off.",
            "default": false
          },
          "lineEnding": {
            "title": "Line endings",
            "enum": [
              "lf",
              "crlf"
            ],
            "type": "string",
            "description": "Line break between rows. Line breaks inside quoted cells are kept as they are. Default: lf.",
            "default": "lf"
          },
          "outputEncoding": {
            "title": "Output encoding",
            "enum": [
              "utf-8",
              "utf-8-bom",
              "shift_jis",
              "cp1252"
            ],
            "type": "string",
            "description": "Encoding of the converted file. A character the encoding cannot hold makes that file fail (free) instead of being changed. The input encoding is always detected for you. Default: utf-8.",
            "default": "utf-8"
          },
          "hasHeader": {
            "title": "First row is a header",
            "type": "boolean",
            "description": "Rows are counted without the header row, and the price follows the row count. Turn off for files without a header (every row is counted). Default: on.",
            "default": true
          },
          "fileName": {
            "title": "Output file name",
            "type": "string",
            "description": "File name without extension; the extension follows the output delimiter (.csv, .tsv or .txt) and, with several sources, a number is added. Only letters, digits, dot, dash and underscore are kept. Empty = derived from each source name."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}