---
title: "Ingest pageview"
method: POST
path: "/ingest"
tags: ["Ingest"]
---

# Ingest pageview

`POST /ingest`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/ingest`
- Auth: none declared

Ingests a pageview hit from the browser tracker. This public endpoint expects the compact hk.js payload and browser Origin request context. The tracker sends initial hk_qr attribution as qr when a visitor arrives through a dynamic QR redirect. HitKeep uses the resolved request IP transiently for exclusions, spam filtering, and country, region, city, provider, and ASN lookup, stores derived country, region, city, provider, and ASN context, and does not store the raw visitor IP. Trusted server-side pageviews should use POST /api/ingest/server/pageview instead.

## Request body

- object
  - `lang` string
  - `page_id` string, uuid, required
  - `path` string, required
  - `qr` string, uuid: Initial hk_qr attribution captured by the browser tracker.
  - `referrer` string
  - `sc_h` integer
  - `sc_w` integer
  - `session_id` string, uuid, required
  - `u_cmp` string
  - `u_cnt` string
  - `u_med` string
  - `u_src` string
  - `u_trm` string
  - `ua` string
  - `unique` boolean
  - `vp_h` integer
  - `vp_w` integer

## Response `202`

Accepted

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
