Skip to main content
The traffic analytics endpoints give you detailed visibility into researcher activity on your HackGATE-protected sites. You can count total requests, identify the most active researchers, see which paths they have discovered, and pull timeline charts — all scoped to a time window you define. For multi-site rollups, use the summary endpoints that accept an array of URLs. All traffic endpoints require a valid Bearer token in the Authorization header.

Common query parameters

Most single-site endpoints share these query parameters:
url
string
required
The hackgatedName of the HackGATE site to query. This is the subdomain identifier assigned when the site was created.
gte
string
required
Start of the time range, as an ISO 8601 date-time string (for example, 2025-07-01T00:00:00Z).
lte
string
required
End of the time range, as an ISO 8601 date-time string (for example, 2025-07-14T23:59:59Z).

Single-site endpoints

GET /api/analytics/getTotalRequest

GET https://api-admin.hackgate.io/api/analytics/getTotalRequest
Returns the total number of requests made through the HackGATE proxy for the specified site and time range.
curl "https://api-admin.hackgate.io/api/analytics/getTotalRequest?url=my-site&gte=2025-07-01T00:00:00Z&lte=2025-07-14T23:59:59Z" \
  -H "Authorization: Bearer <token>"

Multi-site summary endpoints

Use these endpoints when you need aggregated traffic data across multiple HackGATE sites in a single request. Both accept a JSON body instead of query parameters.

POST /api/analytics/getSummaryTrafficTable

POST https://api-admin.hackgate.io/api/analytics/getSummaryTrafficTable
Returns a tabular traffic summary aggregated across the sites you specify.

Body parameters

urls
string[]
required
Array of hackgatedName values identifying the sites to include in the summary.
gte
string
required
Start of the time range as an ISO 8601 date-time string.
lte
string
required
End of the time range as an ISO 8601 date-time string.

Example

curl -X POST https://api-admin.hackgate.io/api/analytics/getSummaryTrafficTable \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["site-alpha", "site-beta"],
    "gte": "2025-07-01T00:00:00Z",
    "lte": "2025-07-14T23:59:59Z"
  }'