Regions
Fingerprint is available in the following regions
Region | Code | Base API URL |
---|---|---|
Global (US) | not required, defaults to us | https://api.fpjs.io |
EU | eu | https://eu.api.fpjs.io |
Asia (Mumbai) | ap | https://ap.api.fpjs.io |
Non-global Region users
If you chose a non-global region during registration, please add this to the JS agent initialization:
FingerprintJS.load({
apiKey: '<<browserToken>>',
// note that you don't need to specify the region
// if you use the global endpoint
+ region: 'eu'
})
FingerprintJS.load({
apiKey: '<<browserToken>>',
// note that you don't need to specify the region
// if you use the global endpoint
+ region: 'ap'
})
In the following examples we will use the EU region code for simplicity:
<script>
// Initialize the agent at application startup.
const fpPromise = import('https://fpjscdn.net/v3/<<browserToken>>')
.then(FingerprintJS => FingerprintJS.load({
// note that you don't need to specify the region
// if you use the global endpoint
region: 'eu'
}));
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => console.log(result.visitorId));
</script>
import FingerprintJS from '@fingerprintjs/fingerprintjs-pro'
const fpPromise = FingerprintJS.load({
apiKey: '<<browserToken>>',
// note that you don't need to specify the region
// if you use the global endpoint
region: 'eu'
})
// When you need the visitor identifier:
fpPromise
.then(fp => fp.get())
.then(result => console.log(result.visitorId))
Updated about 2 months ago
What’s Next