# Get user page visits

You can return all user’s page visits.

GET /users/:id/ping_hits/

Attributes Type Required Description
id integer yes A unique identifier for the user which is given by User.com automatically.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/users/:id/ping_hits/"

# Response

{
  "count": 2,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 6840283,
      "client": 490,
      "ip_address": "12.34.56.78",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36",
      "browser_family": "Chrome",
      "browser_version": "52.0.2743",
      "os_type": "Windows",
      "city": "New York",
      "country": "United States",
      "url": "http://mydomain.com/page2.html",
      "referer": "",
      "timestamp": "2016-09-07T08:16:08.860725Z",
      "extra_data": "{u'boolean_attribute': u'1'}",
      "timezone": "America/New_York",
      "resolution": "1920x938"
    },
    {
      "id": 6210852,
      "client": 490,
      "ip_address": "12.34.56.78",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36",
      "browser_family": "Chrome",
      "browser_version": "52.0.2743",
      "os_type": "Windows",
      "city": "New York",
      "country": "United States",
      "url": "http://mydomain.com/page1.html",
      "referer": "",
      "timestamp": "2016-08-31T12:22:49.549081Z",
      "extra_data": "{u'boolean_attribute': u'1'}",
      "timezone": "America/New_York",
      "resolution": "1920x938"
    }
  ]
}