Free plan

Validate contact fields

Check emails, phone numbers, IBANs and more in a table
POST
/v1/data/validate-fields

About this tool

This tool checks columns of a table to see if the values have the right shape, such as emails, phone numbers, web addresses, bank numbers, dates and postal codes. It does not look anything up online. It adds a valid yes or no column and a reason, can tidy values, or keep only good or bad rows.
For example, you check a list of emails for typing mistakes.

How to use it

  1. Choose this tool.
  2. Add your table with Upload or drag and drop.
  3. Choose which columns to check and what each one should be.
  4. Choose the country if needed, and whether to keep only good or bad rows, then press Generate.
  5. Download the checked table.

What you get back

You get your table with extra columns showing which values are valid and why not. Download it.
GOOD TO KNOW
Phone numbers are checked for length and country code, not for a live line. Card numbers use the Luhn check. Nothing is sent to other servers. Counts as one conversion.
TEST IT LIVE

Try Validate contact fields 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/validate-fields
Tool ID
data.validate-fields
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/validate-fields" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'fields={"Email":"email","Phone":"phone"}' \
  -F 'country=DE' \
  -F 'filter=all'

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.validateFields({
    "file": 'document.pdf',
    "fields": "{\"Email\":\"email\",\"Phone\":\"phone\"}",
    "country": "DE",
    "filter": "all"
  });
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()->validateFields([
    'file' => 'document.pdf',
    'fields' => '{"Email":"email","Phone":"phone"}',
    'country' => 'DE',
    'filter' => 'all',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Check columns of a table as e-mail addresses, phone numbers, web addresses, IBANs, BICs, card numbers, VAT numbers, postal codes, IP addresses, dates, UUIDs, ISBNs or colours (shape and check digits, nothing is looked up online); add a valid flag and a reason, rewrite values in their standard form, or keep only the good or bad rows.

Validate contact fields works from text and settings, so no file is needed. The required inputs are fields.

Validate contact fields is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/validate-fields 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.