---
updatedAt: 2025-11-05T21:12:50.000Z
agentTools:
  projectIndex: https://developers.short.io/llms.txt
---

# List of raw clicks

Returns list of latest raw clicks

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Statistics API",
    "version": "2"
  },
  "paths": {
    "/domain/{domainId}/last_clicks": {
      "post": {
        "summary": "List of raw clicks",
        "operationId": "postDomainDomainidLast_clicks",
        "description": "Returns list of latest raw clicks",
        "parameters": [
          {
            "description": "Domain identifier",
            "x-constraint": {
              "sign": "positive"
            },
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Model15"
              }
            }
          }
        },
        "tags": [
          "domain"
        ],
        "security": [
          {
            "api_key": []
          }
        ],
        "responses": {
          "200": {
            "description": "last click list",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/LastClick"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://statistics.short.io/statistics"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "For authentication you need an API key. You can find it in your\n                      [Integrations page](https://app.short.io/settings/integrations/api-key)\n                      "
      }
    },
    "schemas": {
      "CountriesFilter": {
        "type": "array",
        "description": "Return clicks from provided countries",
        "x-constraint": {
          "unique": true
        },
        "items": {
          "type": "string",
          "x-constraint": {
            "length": 2
          }
        }
      },
      "dt": {
        "type": "array",
        "x-constraint": {
          "length": 2
        },
        "items": {
          "type": "string",
          "format": "date"
        }
      },
      "BrowsersFilter": {
        "type": "array",
        "description": "Return clicks from provided browsers",
        "x-constraint": {
          "unique": true
        },
        "items": {
          "type": "string"
        }
      },
      "SocialsFilter": {
        "type": "array",
        "description": "Return clicks from provided social networks",
        "x-constraint": {
          "unique": true
        },
        "items": {
          "type": "string"
        }
      },
      "BrowserVersionsFilter": {
        "type": "array",
        "description": "Return clicks from provided browser versions",
        "x-constraint": {
          "unique": true
        },
        "items": {
          "type": "string"
        }
      },
      "StatusesFilter": {
        "type": "array",
        "description": "Return clicks with provided statuses",
        "items": {
          "type": "number"
        }
      },
      "PathsFilter": {
        "type": "array",
        "description": "Return clicks with provided paths",
        "items": {
          "type": "string"
        }
      },
      "ProtocolsFilter": {
        "type": "array",
        "description": "Return clicks with provided protocols",
        "items": {
          "type": "string"
        }
      },
      "ReferrerFilter": {
        "type": "array",
        "description": "Return clicks from provided referrers",
        "items": {
          "type": "string"
        }
      },
      "UTMSourceFilter": {
        "type": "array",
        "description": "Return clicks from provided utm sources",
        "items": {
          "type": "string"
        }
      },
      "UTMMediumFilter": {
        "type": "array",
        "description": "Return clicks from provided utm mediums",
        "items": {
          "type": "string"
        }
      },
      "UTMCampaignFilter": {
        "type": "array",
        "description": "Return clicks from provided utm campaigns",
        "items": {
          "type": "string"
        }
      },
      "period": {
        "type": "string",
        "description": "One of predefined time intervals. Select custom to provide custom dates",
        "default": "last30",
        "enum": [
          "custom",
          "today",
          "yesterday",
          "total",
          "week",
          "month",
          "lastmonth",
          "last7",
          "last30"
        ]
      },
      "Model11": {
        "type": "array",
        "description": "Return clicks with provided methods",
        "items": {
          "type": "string"
        }
      },
      "Model12": {
        "type": "object",
        "description": "Filter records by provided values",
        "properties": {
          "countries": {
            "$ref": "#/components/schemas/CountriesFilter"
          },
          "dt": {
            "$ref": "#/components/schemas/dt"
          },
          "browsers": {
            "$ref": "#/components/schemas/BrowsersFilter"
          },
          "human": {
            "type": "boolean",
            "description": "Returns human clicks only if true"
          },
          "socials": {
            "$ref": "#/components/schemas/SocialsFilter"
          },
          "browserVersions": {
            "$ref": "#/components/schemas/BrowserVersionsFilter"
          },
          "statuses": {
            "$ref": "#/components/schemas/StatusesFilter"
          },
          "paths": {
            "$ref": "#/components/schemas/PathsFilter"
          },
          "protos": {
            "$ref": "#/components/schemas/ProtocolsFilter"
          },
          "methods": {
            "$ref": "#/components/schemas/Model11"
          },
          "refhosts": {
            "$ref": "#/components/schemas/ReferrerFilter"
          },
          "utmSources": {
            "$ref": "#/components/schemas/UTMSourceFilter"
          },
          "utmMediums": {
            "$ref": "#/components/schemas/UTMMediumFilter"
          },
          "utmCampaigns": {
            "$ref": "#/components/schemas/UTMCampaignFilter"
          }
        }
      },
      "Model13": {
        "type": "array",
        "description": "Return clicks with provided methods",
        "items": {
          "type": "string"
        }
      },
      "Model14": {
        "type": "object",
        "description": "Exclude records with provided values",
        "properties": {
          "countries": {
            "$ref": "#/components/schemas/CountriesFilter"
          },
          "dt": {
            "$ref": "#/components/schemas/dt"
          },
          "browsers": {
            "$ref": "#/components/schemas/BrowsersFilter"
          },
          "human": {
            "type": "boolean",
            "description": "Returns human clicks only if true"
          },
          "socials": {
            "$ref": "#/components/schemas/SocialsFilter"
          },
          "browserVersions": {
            "$ref": "#/components/schemas/BrowserVersionsFilter"
          },
          "statuses": {
            "$ref": "#/components/schemas/StatusesFilter"
          },
          "paths": {
            "$ref": "#/components/schemas/PathsFilter"
          },
          "protos": {
            "$ref": "#/components/schemas/ProtocolsFilter"
          },
          "methods": {
            "$ref": "#/components/schemas/Model13"
          },
          "refhosts": {
            "$ref": "#/components/schemas/ReferrerFilter"
          },
          "utmSources": {
            "$ref": "#/components/schemas/UTMSourceFilter"
          },
          "utmMediums": {
            "$ref": "#/components/schemas/UTMMediumFilter"
          },
          "utmCampaigns": {
            "$ref": "#/components/schemas/UTMCampaignFilter"
          }
        }
      },
      "Model15": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "number",
            "description": "Limit records to receive",
            "default": 30,
            "x-constraint": {
              "sign": "positive"
            }
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "description": "Returns statistics for clicks before given date. Required if period is custom"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "description": "Returns statistics for clicks after given date. Required if period is custom"
          },
          "beforeDate": {
            "type": "string",
            "format": "date",
            "description": "Parameter is used for pagination"
          },
          "afterDate": {
            "type": "string",
            "format": "date",
            "description": "Parameter is used for pagination"
          },
          "period": {
            "$ref": "#/components/schemas/period"
          },
          "tz": {
            "type": "string",
            "description": "Timezone name",
            "default": "UTC"
          },
          "include": {
            "$ref": "#/components/schemas/Model12"
          },
          "exclude": {
            "$ref": "#/components/schemas/Model14"
          }
        }
      },
      "method": {
        "type": "string",
        "description": "Request method",
        "enum": [
          "GET",
          "POST",
          "PUT",
          "DELETE",
          "HEAD"
        ]
      },
      "proto": {
        "type": "string",
        "description": "Visitor's protocol",
        "enum": [
          "http",
          "https"
        ]
      },
      "LastClick": {
        "type": "object",
        "properties": {
          "ab_path": {
            "type": "string",
            "description": "TBD"
          },
          "browser": {
            "type": "string",
            "description": "Visitor browser name",
            "example": "Chrome"
          },
          "browser_version": {
            "type": "string",
            "description": "Visitor browser version",
            "example": "79"
          },
          "city": {
            "type": "string",
            "description": "Visitor's city",
            "example": "Chrome"
          },
          "country": {
            "type": "string",
            "description": "Visitor's country",
            "example": "United States"
          },
          "geoname_id": {
            "type": "string",
            "description": "Geoname ID of the city",
            "example": "5393015"
          },
          "dt": {
            "type": "string",
            "format": "date",
            "description": "Date and time of the visit",
            "example": "2019-09-10T12:44:55.000Z"
          },
          "goal_completed": {
            "type": "string",
            "description": "TBD"
          },
          "host": {
            "type": "string",
            "description": "Domain name",
            "example": "example.link"
          },
          "human": {
            "type": "boolean",
            "description": "True if user is a human"
          },
          "ip": {
            "type": "string",
            "description": "Visitor's IP (for visitors outside of EU). EU visitors have last 2 octets hidden (GDPR)",
            "example": "::ffff:54.250.253.235",
            "x-format": {
              "ip": {
                "cidr": "optional"
              }
            }
          },
          "method": {
            "$ref": "#/components/schemas/method"
          },
          "os": {
            "type": "string",
            "description": "Visitor's OS",
            "example": "Windows"
          },
          "path": {
            "type": "string",
            "description": "Visitor's path",
            "example": "/abc123"
          },
          "proto": {
            "$ref": "#/components/schemas/proto"
          },
          "ref": {
            "type": "string",
            "description": "Visitor's full referrer",
            "example": "https://example.com/test"
          },
          "refhost": {
            "type": "string",
            "description": "Visitor's referrer host",
            "example": "example.com"
          },
          "ua": {
            "type": "string",
            "description": "Visitor's user agent",
            "example": "Mozilla/5.0 (Macintosh; Intel Mac OS X)"
          },
          "social": {
            "type": "string",
            "description": "Visitor's social network",
            "example": "Facebook"
          },
          "utm_campaign": {
            "type": "string",
            "description": "UTM campaign for the link",
            "example": "new_year"
          },
          "st": {
            "type": "number",
            "description": "HTTP status code for the link",
            "example": 302,
            "minimum": 200,
            "maximum": 599
          },
          "utm_source": {
            "type": "string",
            "description": "TBD"
          },
          "url": {
            "type": "string",
            "description": "Full shart URL"
          },
          "utm_medium": {
            "type": "string",
            "description": "TBD"
          }
        },
        "required": [
          "dt",
          "human",
          "method",
          "path"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```