Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fingerprint.com/llms.txt

Use this file to discover all available pages before exploring further.

How to install

Add @fingerprintjs/fingerprintjs-pro-server-api as a dependency to your application via npm or yarn.
Bash
npm install @fingerprintjs/fingerprintjs-pro-server-api
bash
yarn add @fingerprintjs/fingerprintjs-pro-server-api
Initialize the client instance and use it to make API requests. You need to specify your secret API key and region.
TypeScript
import { FingerprintJsServerApiClient, Region } from "@fingerprintjs/fingerprintjs-pro-server-api";

const client = new FingerprintJsServerApiClient({
  apiKey: "SECRET_API_KEY",
  region: Region.Global,
});

// Get visit history of a specific visitor
client.getVisits("VISITOR_ID").then((visitorHistory) => {
  console.log(visitorHistory);
});

// Get a specific identification event
client.getEvent("REQUEST_ID").then((event) => {
  console.log(event);
});

Documentation

You can find the full documentation in the official GitHub repository.