Compare Data Files
About this tool
How to use it
- Choose this tool.
- Add the first (older) file with Upload or drag and drop.
- Add the second (newer) file in the second slot.
- Enter the key column that identifies each row, if there is one, then press Generate.
- Read or download the list of differences.
What you get back
Try Compare Data Files in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/data/diff" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'other=@photo.jpg' \
-F 'key=example' \
-F 'sheet=example' \
-F 'flatten=true'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.diff({
"file": 'document.pdf',
"other": 'photo.jpg',
"key": "example",
"sheet": "example",
"flatten": true
});
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()->diff([
'file' => 'document.pdf',
'other' => 'photo.jpg',
'key' => 'example',
'sheet' => 'example',
'flatten' => true,
]);
echo $result->requestId;