Free plan

Contact cards

Turn a contact file into a table, or a table into contact cards
POST
/v1/data/contacts

About this tool

A .vcf file is a contact card file, the kind phones and email programs use for address books. This tool reads one (or thousands of cards) into a table you can open in a spreadsheet. It can also build a .vcf file from a table. You can merge duplicate people, sort by name and choose how phone numbers and emails are labelled.
For example, you export your phone contacts as a .vcf file and turn them into a spreadsheet to clean them up.

How to use it

  1. Choose this tool.
  2. Add your .vcf file or your table with Upload or drag and drop.
  3. Choose whether to read the file into a table or build contact cards. Automatic works for most files.
  4. Set options such as merging duplicates, sorting by name or the card version, then press Generate.
  5. Download the result.

What you get back

You get a table of contacts, or a new .vcf file you can import into a phone or email program. Download it.
GOOD TO KNOW
Photos are not copied into the table when reading. A row without any contact data is left out and counted in a warning.
TEST IT LIVE

Try Contact cards 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/contacts
Tool ID
data.contacts
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/contacts" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'action=auto' \
  -F 'contacts=[{"first_name":"Ada","last_name":"Lovelace","emails":"ada@example.com","phones":"+44 20 7946 0000"}]' \
  -F 'mapping={"full_name":"Column A"}'

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.contacts({
    "action": "auto",
    "contacts": "[{\"first_name\":\"Ada\",\"last_name\":\"Lovelace\",\"emails\":\"ada@example.com\",\"phones\":\"+44 20 7946 0000\"}]",
    "mapping": "{\"full_name\":\"Column A\"}"
  });
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()->contacts([
    'action' => 'auto',
    'contacts' => '[{"first_name":"Ada","last_name":"Lovelace","emails":"ada@example.com","phones":"+44 20 7946 0000"}]',
    'mapping' => '{"full_name":"Column A"}',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Read a .vcf contact file (vCard 2.1, 3.0 or 4.0, one or thousands of cards) into a table, or build a .vcf file from a table or a list of contacts, with name order, phone and e-mail types, duplicate merging and sorting.

Contact cards works from text and settings, so no file is needed. Every input is optional.

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

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