Get the public IP address of the visitor making a request

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>

Qubit Tracking Id for the property the request is made from. This will be provided by your CSM

<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
}
Last updated: February 2021
Did you find this article useful?