Increment

For every Prefetch Pageviews API call to increment count, you need to pass a JWT token. The token endpoint is what provides the JWT token.

Increment count

Request

POST
/v1/pageviews/page-id-1/increment
curl -X POST "https://prefetch.io/api/v1/pageviews/page-id-1/increment" \
  -H "Content-Type: application/json" \
  -d '{"token": "{{token}}"}'

Response

{
  "count": 178
}

Was this page helpful?