Docs
SDKs & Libraries

SDKs & Libraries

Client libraries and tools for integrating APIVult APIs.

APIVult APIs follow a standard REST interface, which means they work with any HTTP client. Below are recommended libraries and code snippets for popular languages.

Python

Use the requests library:

pip install requests
import requests
 
def apivult_request(endpoint, payload, api_key):
    return requests.post(
        f"https://api.apivult.com{endpoint}",
        headers={
            "Content-Type": "application/json",
            "X-API-Key": api_key,
        },
        json=payload,
    ).json()
 
# Example: validate an email
result = apivult_request(
    "/v1/dev/dataforge/validate",
    {"type": "email", "value": "[email protected]"},
    "YOUR_API_KEY",
)

Node.js

Use the native fetch API (Node 18+):

const API_KEY = process.env.APIVULT_API_KEY;
 
async function apivultRequest(endpoint, payload) {
  const response = await fetch(`https://api.apivult.com${endpoint}`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "X-API-Key": API_KEY,
    },
    body: JSON.stringify(payload),
  });
  return response.json();
}

PHP

function apivultRequest(string $endpoint, array $payload, string $apiKey): array {
    $ch = curl_init("https://api.apivult.com" . $endpoint);
    curl_setopt_array($ch, [
        CURLOPT_POST => true,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            "Content-Type: application/json",
            "X-API-Key: $apiKey",
        ],
        CURLOPT_POSTFIELDS => json_encode($payload),
    ]);
    $result = curl_exec($ch);
    curl_close($ch);
    return json_decode($result, true);
}

Postman

Import this base request into Postman to get started quickly:

  • Method: POST
  • URL: https://api.apivult.com/v1/dev/dataforge/validate
  • Headers:
    • Content-Type: application/json
    • X-API-Key: {{api_key}}
  • Body (raw JSON): {"type": "email", "value": "[email protected]"}

Set api_key as a Postman environment variable to reuse across all requests.