Skip to main content
Deprecation NoticeThis page documents the Node Server SDK for Server API v3. The Node Server SDK now supports Server API v4. Please use the latest Node Server SDK instead.

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.