knownprintDocs

Signals

Activity signals

The high_activity signal marks the busiest visitors on your site today; this page also shows how to measure velocity per visitor, account and network with the API.

Activity signals look at how much a visitor does on your site rather than at a single visit. knownprint computes one for you, high_activity, and gives you the searches to measure any other rate your business needs: identifications per visitor per hour, accounts per device, visitors per network.

high_activity

signals.high_activity is true when the visitor is among the busiest on your site today.

JSON
{ "high_activity": { "value": true, "confidence": 1, "reasons": ["top_2_percent_daily"] } }
FieldTypeMeaning
valuebooleantrue when the visitor was marked as highly active when this event was identified.
confidencenumberAlways 1: the mark is a count, not an inference.
reasonsarray of strings["top_2_percent_daily"] when true, empty when false.

It has no detail, and it is present on every new event.

How the mark is set

RuleValue
What is countedEach visitor's billable identifications in your environment. Replayed requests are not billable and do not count (see Integrity).
Counting periodThe UTC day. The count starts again every day at midnight UTC.
Who is markedThe busiest visitors of the UTC day, relative to your own traffic.
ScopePer environment: a test environment and a live environment are counted apart.

The event records the mark as it stood when the event was identified, so an earlier event of a visitor can say false and a later one true. A visitor's current mark is also in the labels array of GET /v1/visitors/{visitor_id}, as high_activity.

What it tells you

high_activity is relative to your own traffic: on a site where most visitors load one page a day, the busiest may make a few dozen identifications; on a busy web app, a few hundred. It marks outliers without you having to know your traffic's shape in advance.

High activity is not wrongdoing. Your most loyal customers, support staff, a shared office computer and your own testers can all be at the top. It becomes a signal when it meets something else:

Together withOften means
A bad bot verdictScraping or credential stuffing from one browser.
Many accounts on one visitor (see below)One person running many accounts.
A vpn or proxy exitAutomated abuse rotating through exits.
Signups, password resets or promo redemptionsAbuse of a flow that a person uses a few times, not hundreds.

high_activity is one of the parts of the suspect score.

Measure velocity yourself

The mark answers "is this visitor unusually busy today?". Most fraud rules need a sharper question: "how many times in the last ten minutes?", "how many accounts on this device?", "how many new visitors from this network this hour?". Your own database answers these best, because you know which identifications were logins, signups or payments. The event search gives you the same counts from knownprint's side.

Identifications per visitor

List a visitor's events since a moment, newest first. The search reads the events of the visitor and of every visitor id merged into it.

Shell
curl -G "$KNOWNPRINT_API/v1/events" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
  --data-urlencode "visitor_id=v_v4seh2kvj72ceuvw75efr6edt4" \
  --data-urlencode "start=2030-01-15T09:00:00Z" \
  --data-urlencode "limit=500"

A page holds at most 500 events (50 by default). When next_cursor is not null, more events follow: pass it as cursor to read the next page.

A Node helper that counts a visitor's identifications over the last ten minutes:

velocity.js
const API = process.env.KNOWNPRINT_API;
const KEY = process.env.KNOWNPRINT_SECRET_KEY;

export async function recentCount(visitorId, minutes, cap = 500) {
  const start = new Date(Date.now() - minutes * 60_000).toISOString();
  let cursor = null;
  let count = 0;
  do {
    const params = new URLSearchParams({ visitor_id: visitorId, start, limit: '500' });
    if (cursor) params.set('cursor', cursor);
    const res = await fetch(`${API}/v1/events?${params}`, {
      headers: { Authorization: `Bearer ${KEY}` },
    });
    if (!res.ok) throw new Error(`knownprint answered ${res.status}`);
    const page = await res.json();
    count += page.data.length;
    cursor = page.next_cursor;
  } while (cursor && count < cap);
  return count;
}

// Example: more than 20 identifications in ten minutes on a login page.
if ((await recentCount(event.visitor_id, 10)) > 20) {
  // slow down: a captcha, a delay or a second factor
}

Accounts per visitor

When your page passes your own account id as linkedId to the agent (or you set linked_id on the event afterwards), knownprint links accounts to visitors. GET /v1/visitors/{visitor_id} returns the visitor's linked_ids, along with event_count, first_seen_at and last_seen_at. Many linked ids on one visitor is the classic sign of multi-accounting. The Accounts page covers linking and the related-accounts searches.

Events per network

The ip filter takes an address or a range. Counting the events of one /24 or /48 over the last hour shows a network that suddenly sends many visitors:

Shell
curl -G "$KNOWNPRINT_API/v1/events" \
  -H "Authorization: Bearer $KNOWNPRINT_SECRET_KEY" \
  --data-urlencode "ip=203.0.113.0/24" \
  --data-urlencode "start=2030-01-15T09:00:00Z" \
  --data-urlencode "limit=500"

Use the event's network.ip_prefix as the range. Remember that a privacy relay, a mobile carrier or a company gateway puts many people behind one network: read vpn and the network's as_class in ip_geolocation before acting on a count.

Linked accounts

To see which other accounts and devices are tied to an account, use the linked id searches on Accounts and in the linked API reference.

What to do

SituationSuggested handling
high_activity aloneLog it. Look at it with the visitor's other signals.
high_activity on a signup, a reset or a promo redemptionAdd friction: a verified email or phone, or a second factor.
high_activity with a bad bot verdictRate limit or refuse.
Your own counter over a limitSlow the visitor down rather than block: a delay, a captcha, a second factor. Hard limits catch your best customers too.

The searches count against your API rate limits; see Limits. For flows built on these counts, see the promo abuse guide, the account sharing guide and the fake signups guide.