Get an IP address

This is for:

Developer

Qubit’s IP Address API returns the public IP address of the visitor making a request.

Unique values

Before using the Counters API, you will require the following unique values:

Name Description

<tracking_id>

CEH tracking ID for the property the request is made from. This will be provided by your Customer Success manager at Coveo.

<visitor_id>

Unique site visitor ID, generated by the Smartserve script on the page and is set in the cookies qb_permanent and qbTracker.

Retrieving from the Geolocation API

To get the IP address of the current user, make a GET request to the following URL: https://orca.qubitproducts.com/misc/ip?cid=<visitor_id>&id=<tracking_id>

Example response

{
  ip: "86.13.100.143",
  sysTime_ms: 1441232732044
}