Free plan

Transform Data

Clean up a table with steps like filter, sort, rename and remove
POST
/v1/data/transform

About this tool

This tool changes a table with a list of simple steps, done in order. The steps are choose columns, drop columns, rename, filter rows, sort, limit, set a value, change a type and remove duplicates. There is no code to write, only these fixed steps.
For example, you keep customers from Spain, sort them by date and remove duplicates.

How to use it

  1. Choose this tool.
  2. Add your table with Upload or drag and drop.
  3. Add your steps in the order you want them done.
  4. Choose the format of the result, then press Generate.
  5. Download the changed table.

What you get back

You get a new table with all your steps applied. Download it.
GOOD TO KNOW
Same answer shape as /v1/data/convert. This endpoint does not support async jobs.
TEST IT LIVE

Try Transform Data in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/transform
Tool ID
data.transform
Authentication
API key
Accepts
XLSX, ODS, MD, HTML, XLS, CSV +9 more
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/transform" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'to=xlsx' \
  -F 'limit=0' \
  -F 'output_bundle=zip'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.transform({
    "file": 'document.pdf',
    "to": "xlsx",
    "limit": 0,
    "output_bundle": "zip"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->transform([
    'file' => 'document.pdf',
    'to' => 'xlsx',
    'limit' => 0,
    'output_bundle' => 'zip',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Apply a declarative list of operations (select, drop, rename, filter, sort, limit, offset, set, cast, dedupe) to a table and write it in any format. No expressions or code: only the fixed operations.

Transform Data accepts XLSX, ODS, MD, HTML, XLS, CSV, JSON, XML, TSV, NDJSON, YAML, TOML and 3 more. You can send several files in one request.

Transform Data is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/transform with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.