fiftyone.ipintelligence
v4.5.102
Published
IP intelligence services for the 51Degrees Pipeline API
Readme
Node IP Intelligence
Introduction
This project contains 51Degrees IP Intelligence engines that can be used with the Pipeline API.
The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)
This package - fiftyone.ipintelligence
This package includes a pipeline builder that can toggle between the cloud and on-premise IP intelligence engines with simple parameter changes.
- If a
resourceKeyis supplied then a cloud pipeline is created. A resource key covering everything the examples display can be obtained from the 51Degrees configurator with a paid subscription. A free key from this configurator link populates only the Country, LocationConfidence, Ip and IpV6 properties. - If a
dataFileis supplied then an on-premise pipeline is created. A free 'Lite' data file can be downloaded with the scripts in the data repository, which is thecxx/datasubmodule of this repository.
It can be used like this:
const IpIntelligencePipelineBuilder =
require('fiftyone.ipintelligence').IpIntelligencePipelineBuilder;
const pipeline = new IpIntelligencePipelineBuilder({
resourceKey: 'your-resource-key'
}).build();
const flowData = pipeline.createFlowData();
flowData.evidence.add('query.client-ip', '8.8.8.8');
flowData.process().then(function () {
console.log(flowData.ip.registeredname.value);
});Installation
To install, use NPM call:
npm install fiftyone.ipintelligenceFind out more
- IP Intelligence
- IP Intelligence documentation
- Getting started
- Pricing
- https://github.com/51Degrees/51degrees-node
