Get clicks

GET /accounts/{account_id}/clicks

Fetch all clicks processed by ClickGUARD in the given period

Available on: AuditGUARD AlertGUARD PremiumGUARD EliteGUARD

Path parameters

Query parameters

  • period string Required

    Period to fetch the clicks for.

    Values are TODAY, YESTERDAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, LAST_30_DAYS, or LAST_3_MONTHS.

  • sort string

    Sort the clicks by a specified parameter. Use '-' prefix to indicate a descending sort. Default: '-timestamp'.

    Values are timestamp or ip.

  • offset number

    Paginating parameter. Offset the result by a specified number. Default: 0.

  • limit number

    Paginating parameter. Limit the number of result by a specified number. Max: 100. Default: 50.

  • status string

    Status of the click

    Values are NORMAL, SUSPICIOUS, FLAGGED, or INVALID.

  • ppc boolean

    Filter ad clicks or organic clicks only

  • gclid string

    Google assigned click ID

  • converted boolean

    Filter by conversion

  • ip string

    IP address of a click

  • ip-range string

    IP address range (CIDR notation) of a click

  • Device ID of a click

  • campaign string

    Campaign ID of an ad click

  • keyword string

    Keyword ID from an ad click

  • Domain placement of an ad click

  • country string

    Originating country of a click

Responses

  • Successful operation

    Hide response attributes Show response attributes array[object]
    • id string

      Unique identifier of a click

    • timestamp string(date-time)

      The timestamp of the moment click happened

    • ip string

      IP address where the click came from

    • ip_type number

      IP address version, can be 4 or 6

    • hostname string | null

      Domain hostname corresponding to the IP address.

    • ppc boolean

      Flag indicating if this was a paid click

    • gclid string | null

      Google Ads click ID.

    • status string

      The status of the click.

      Values are ORGANIC, NORMAL, SUSPICIOUS, FLAGGED, INVALID, or IGNORED.

    • referrer string | null

      The click referrer domain.

    • flags array[string]

      An array of applied flags

    • notes array[string]

      An array of items describing why the rule was triggered

    • actions array[object]

      An array of items with information on taken actions

      Hide actions attributes Show actions attributes array[object]
      • tag string

        Type of rule that triggered this action

      • verbal string

        Verbal description of the action taken

    • The identified device type.

      Values are mobile, computer, or tablet.

    • device_id string | null

      The unique device ID generated by post-click tracking.

    • browser string | null

      The name of the used web browser.

    • browser_version string | null

      The version of the used web browser.

    • os string | null

      The name of the used operating system.

    • os_version string | null

      The version of the used operating system.

    • domain string

      The domain of the landing page. Will be Google domain in case of parallel tracking.

    • url string

      The full URL of the landing page. Will be Google URL in case of parallel tracking.

    • campaign_id string | null

      Google Ads campaign ID for the ad click.

    • campaign_name string | null

      Google Ads campaign name for the ad click.

    • adgroup_id string | null

      Google Ads ad group ID for the ad click.

    • adgroup_name string | null

      Google Ads ad group name for the ad click.

    • ad_id string | null

      Google Ads ad ID for the ad click.

    • keyword_id string | null

      Google Ads keyword ID for the ad click.

    • keywords string | null

      Google Ads keywords text for the ad click.

    • ad_url string | null

      The landing page URL defined in the ad.

    • The flag indicating the ad click was tracked with parallel tracking.

    • network string | null

      The corresponding ad network.

    • match_type string | null

      The keyword match type.

    • placement string | null

      The placement domain for the ad clicks on the display network.

    • continent_code string | null

      ISO code for the continent in clicks geolocation.

    • continent string | null

      Common name for the continent in clicks geolocation.

    • country_code string | null

      ISO code for the country in clicks geolocation.

    • country string | null

      Common name for the country in clicks geolocation.

    • city string | null

      The city name in clicks geolocation.

    • region string | null

      The region name in clicks geolocation.

    • zip_code string | null

      The zip code in clicks geolocation.

    • timezone string | null

      The ISO timezone in clicks geolocation.

    • aso string | null

      The address supporting organization.

    • isp string | null

      The internet service provider.

    • crawler string | null

      The crawler name if the click came from a crawler bot.

    • proxy string | null

      The proxy type if the click originated from a detected proxy.

    • threat_level string | null

      The determined general threat level for this click.

      Values are low, medium, or high.

    • If the click was whitelisted according to ClickGUARD settings.

    • converted boolean

      If the click has converted using conversion tracking code.

    • converted_comment string | null

      Comment added to the conversion.

    • converted_value number | null

      Value added to the conversion.

    • time_spent number | null

      Time the visitor spent on the website in miliseconds.

    • page_views number | null

      Number of pages the visitor viewed on the website.

    • user_interaction string | null

      Website interaction level determined by the post-click analysis.

      Values are none, low, medium, or high.

    • bot_probaility string | null

      Bot probability level determined by the post-click analysis.

      Values are low, medium, or high.

GET /accounts/{account_id}/clicks
curl \
 -X GET https://api.clickguard.com/accounts/{account_id}/clicks?period=TODAY \
 -H "X-API-KEY: $API_KEY"
Response examples (200)
"[\n  {\n    \"id\": \"609e2427d01f3d001281d35d\",\n    \"gclid\": \"Cj0KCQjw1PSDBhDbARIsAPeTqrerWB...ekt7et0ktYV8aArAPEALw_wcB\",\n    \"ppc\": true,\n    \"timestamp\": \"2021-04-20T00:45:27.459Z\",\n    \"ip\": \"97.111.222.131\",\n    \"ip_type\": 4,\n    \"hostname\": \"97-111-222-131.hostname.net\",\n    \"device_id\": \"onXVkAzc0YP9sY3iYNR7Hg\",\n    \"device_type\": \"computer\",\n    \"browser\": \"Safari\",\n    \"browser_version\": \"14.0.3\",\n    \"os\": \"Mac OS\",\n    \"os_version\": \"10.15.7\",\n    \"url\": \"www.example.com/landing-page/\",\n    \"domain\": \"www.example.com\",\n    \"campaign_id\": \"7542701111\",\n    \"campaign_name\": \"Remarketing\",\n    \"adgroup_id\": \"549562811111\",\n    \"adgroup_name\": \"My ad group\",\n    \"ad_id\": \"5137478632222\",\n    \"keyword_id\": \"313330082222\",\n    \"keywords\": \"my keyword\",\n    \"ad_url\": \"www.example.com/landing-page/\",\n    \"parallel_tracking\": false,\n    \"network\": \"google\",\n    \"match_type\": \"phrase\",\n    \"placement\": null,\n    \"continent_code\": \"NA\",\n    \"continent\": \"North America\",\n    \"country_code\": \"US\",\n    \"country\": \"United States\",\n    \"city\": \"Davenport\",\n    \"region\": \"Scott (Iowa)\",\n    \"zip_code\": \"52800\",\n    \"timezone\": \"America/Chicago\",\n    \"aso\": \"EPICISP-US\",\n    \"isp\": \"EpicISP\",\n    \"crawler\": false,\n    \"proxy\": false,\n    \"threat_level\": \"low\",\n    \"whitelisted\": false,\n    \"status\": \"FLAGGED\",\n    \"flags\": [\n      \"CONVERTED\"\n    ],\n    \"notes\": [\n      \"there was a total of 1 converting ad clicks from the given device ID in the past 24 hours where maximum allowed clicks is 0 (rule: Block After Conversion [By ClickGUARD])\"\n    ],\n    \"actions\": [\n      {\n        \"tag\": \"conversion\",\n        \"verbal\": \"IP address blocked for 14 days for 33 campaigns.\"\n      }\n    ],\n    \"converted\": true,\n    \"converted_comment\": \"App Signup\",\n    \"time_spent\": 121257,\n    \"page_views\": 1,\n    \"user_interaction\": \"medium\",\n    \"bot_probability\": \"low\"\n  }\n]"
Response examples (200)
[
  {
    "id": "string",
    "timestamp": "2024-05-04T09:42:00+00:00",
    "ip": "string",
    "ip_type": 42.0,
    "hostname": "string",
    "ppc": true,
    "gclid": "string",
    "status": "ORGANIC",
    "referrer": "string",
    "flags": [
      "string"
    ],
    "notes": [
      "string"
    ],
    "actions": [
      {
        "tag": "string",
        "verbal": "string"
      }
    ],
    "device_type": "mobile",
    "device_id": "string",
    "browser": "string",
    "browser_version": "string",
    "os": "string",
    "os_version": "string",
    "domain": "string",
    "url": "string",
    "campaign_id": "string",
    "campaign_name": "string",
    "adgroup_id": "string",
    "adgroup_name": "string",
    "ad_id": "string",
    "keyword_id": "string",
    "keywords": "string",
    "ad_url": "string",
    "parallel_tracking": true,
    "network": "string",
    "match_type": "string",
    "placement": "string",
    "continent_code": "string",
    "continent": "string",
    "country_code": "string",
    "country": "string",
    "city": "string",
    "region": "string",
    "zip_code": "string",
    "timezone": "string",
    "aso": "string",
    "isp": "string",
    "crawler": "string",
    "proxy": "string",
    "threat_level": "low",
    "whitelisted": true,
    "converted": true,
    "converted_comment": "string",
    "converted_value": 42.0,
    "time_spent": 42.0,
    "page_views": 42.0,
    "user_interaction": "none",
    "bot_probaility": "low"
  }
]