Skip to main content
POST
/
api
/
v2
/
stats
/
visit
Visit stats
curl --request POST \
  --url https://{search_zone}-api.doofinder.com/api/v2/stats/visit \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "store": "<string>",
  "dfid": "<string>",
  "hashid": "<string>",
  "ip": "<string>",
  "page_type": "<string>",
  "session_id": "<string>",
  "url": "<string>",
  "user_agent": "<string>",
  "user_id": "<string>"
}
'
"<unknown>"

Authorizations

Authorization
string
header
required

Doofinder API key. Pass it as: Authorization: Token <api_key>

Body

application/json
store
string
required

Identifier of store. In the store setup section, you will find the store ID information.

Required string length: 1 - 36
dfid
string
hashid
string

Unique id of the search engine. In the search engine selector, you will find the hashid information

Pattern: ^[a-f0-9]{32}$
ip
string
deprecated

Unique address that identifies a device. Detected automatically by the server.

page_type
string
session_id
string | null

Identifier of search session

Maximum string length: 32
url
string

Page URI visited by the user

user_agent
string
deprecated

Identifier of device. Detected automatically by the server.

user_id
string

Identifier of user

Maximum string length: 36

Response

OK

Response returned over register stat operation.