import { FingerprintJsServerApiClient, Region } from'@fingerprintjs/fingerprintjs-pro-server-api';
// Init client with the given region and the secret api_keyconst client = newFingerprintJsServerApiClient({region: Region.Global, apiKey: "<api_key>"});
// Get visitor history
client.getVisitorHistory("<visitorId>").then(visitorHistory => {
console.log(visitorHistory);
});
{"visitorId":"Ibk1527CUFmcnjLwIs4A9","visits":[{"requestId":"0KSh65EnVoB85JBmloQK","incognito":true,"linkedId":"somelinkedId","time":"2019-05-21T16:40:13Z",// timestamp of the event with millisecond precision"timestamp":1582299576512,"url":"https://www.example.com/login","ip":"61.127.217.15","ipLocation":{"accuracyRadius":10,"latitude":49.982,"longitude":36.2566,"postalCode":"61202","timezone":"Europe/Dusseldorf","city":{"name":"Dusseldorf"},"continent":{"code":"EU","name":"Europe"},"country":{"code":"DE","name":"Germany"},"subdivisions":[{"isoCode":"63","name":"North Rhine-Westphalia"}],},"browserDetails":{"browserName":"Chrome","browserMajorVersion":"74","browserFullVersion":"74.0.3729","os":"Windows","osVersion":"7","device":"Other","userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) ....",},"confidence":{"score":0.97},"visitorFound":true,"firstSeenAt":{"global":"2022-03-16T11:26:45.362Z","subscription":"2022-03-16T11:31:01.101Z"},"lastSeenAt":{"global":"2022-03-16T11:28:34.023Z","subscription":null}}],// optional, if more results are available for pagination."lastTimestamp":1582299576512}
Release new version
Create a new branch
Run yarn release:(major|minor|patch) depending on the version you need
Make a pull request
After merging the pull request into the main branch and after successful tests, GitHub Action will publish a new version to the npm
update schema to support url field for botd result (b293c09)
FAQs
Node.js wrapper for FingerprintJS Sever API
The npm package @fingerprintjs/fingerprintjs-pro-server-api receives a total of 4,194 weekly downloads. As such, @fingerprintjs/fingerprintjs-pro-server-api popularity was classified as popular.
We found that @fingerprintjs/fingerprintjs-pro-server-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.
Package last updated on 25 Oct 2022
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
By Kirill Boychenko, Peter van der Zee - Jan 29, 2025