---

title: Activity signals
description: 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"] } }
```

| Field        | Type             | Meaning                                                                             |
| ------------ | ---------------- | ----------------------------------------------------------------------------------- |
| `value`      | boolean          | `true` when the visitor was marked as highly active when this event was identified. |
| `confidence` | number           | Always `1`: the mark is a count, not an inference.                                  |
| `reasons`    | array 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

| Rule            | Value                                                                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| What is counted | Each visitor's billable identifications in your environment. Replayed requests are not billable and do not count (see [Integrity](/signals/integrity)). |
| Counting period | The UTC day. The count starts again every day at midnight UTC.                                                                                          |
| Who is marked   | The busiest visitors of the UTC day, relative to your own traffic.                                                                                      |
| Scope           | Per 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}`](/api/visitors), 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 with                                                             | Often means                                                   |
| ------------------------------------------------------------------------- | ------------------------------------------------------------- |
| A `bad` [`bot`](/signals/bots) verdict                                    | Scraping or credential stuffing from one browser.             |
| Many accounts on one visitor (see below)                                  | One person running many accounts.                             |
| A [`vpn`](/signals/network#vpn) or [`proxy`](/signals/network#proxy) exit | Automated abuse rotating through exits.                       |
| Signups, password resets or promo redemptions                             | Abuse of a flow that a person uses a few times, not hundreds. |

`high_activity` is one of the parts of the [suspect score](/signals/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.

:::tip Keep your own counters
Store the `visitor_id`, `request_id`, `network.ip_prefix` and your own action name with each decision you make. A counter in your database (or in Redis with an expiry) is faster than a search per request and does not use your API rate limit. Use the searches below for investigations and for counters you cannot keep.
:::

### 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.

```bash
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:

```js title="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}`](/api/visitors) 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](/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:

```bash
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`](/signals/network#vpn) and the network's `as_class` in [`ip_geolocation`](/signals/network#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](/accounts) and in the [linked API reference](/api/linked).

## What to do

| Situation                                                  | Suggested handling                                                                                                       |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `high_activity` alone                                      | Log it. Look at it with the visitor's other signals.                                                                     |
| `high_activity` on a signup, a reset or a promo redemption | Add friction: a verified email or phone, or a second factor.                                                             |
| `high_activity` with a `bad` bot verdict                   | Rate limit or refuse.                                                                                                    |
| Your own counter over a limit                              | Slow 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](/limits). For flows built on these counts, see the [promo abuse guide](/guides/promo-abuse), the [account sharing guide](/guides/account-sharing) and the [fake signups guide](/guides/fake-signups).
