Fields¶
A lookup answers with a summary of one address. A list answers with one record per
address. This page lists their fields. Fields that are not filled are null, never
missing, so a parser can rely on every field being there. The only exceptions are a
lookup's scores and history, which are there only when you ask for them. The CSV
file has fewer columns. They are at the end.
A lookup¶
GET /v1/ip/{address} says whether to block the address, and until when. Add
include=scores for its rank and score on each list, include=history for every day
it was on a list, or include=scores,history for both.
| Field | Type | Meaning |
|---|---|---|
ip |
str |
IPv4 or IPv6 address in canonical text form. |
listed |
bool |
True while expires_at is today or later (UTC). |
observed |
'in_window' | 'before_window' | 'outside_plan' | 'never' |
in_window: on a list inside your plan's history window, with all the details. before_window: on a list only before your window. Then first_seen, last_seen and days_seen say when and how often, and nothing else is shown. outside_plan: we list it, but your plan does not show where. It is on a list your plan does not include, or below the top your plan shows. Then listed is false, and the other fields cover only what your plan shows. never: no list ever included it, as far as you can see on your plan's delay. That does not mean it is safe. |
lists |
list[str] |
The lists the address is on now: their newest day you can see includes it. See /v1/lists. |
first_seen |
date | None |
The first day any list included the address, over its whole history. This goes back before your plan's history window. |
last_seen |
date | None |
The most recent day any list included the address. When observed is before_window, this is before your plan's history window. |
days_seen |
int |
On how many days any list included the address, over its whole history. This counts days before your plan's history window too. |
days_seen_30d |
int |
On how many of the last 30 days any list included the address. |
expires_at |
date | None |
The last day to keep blocking the address. For each list, its last day on the list plus the days that list keeps it (14 for persistent and top-contributors, 7 for the others). The latest of these wins. You can apply your own rule instead. |
as_of |
date | None |
The newest day of the lists you can see. This answer is as of that day. On the Community and Academic plans, lists arrive 7 days late, so it is 7 or more days ago. |
history_from |
date | None |
The first day of your plan's history window. Lists, scores and history start there. Null when your plan has no limit. |
schema_version |
str |
Version of this format. |
scores |
dict[str, ModelScore] | None |
Only with include=scores. The address's most recent day on each list in your window, by list id, with its rank and score on that list. |
history |
list[HistoryEntry] | None |
Only with include=history. Every day the address was on a list, inside your plan's history window, newest first. Costs 1 credit per 100 entries. |
A record in a list¶
| Field | Type | Meaning |
|---|---|---|
ip |
str |
IPv4 or IPv6 address in canonical text form. |
listed |
bool |
True while expires_at is today or later (UTC). |
observed |
'in_window' | 'before_window' | 'outside_plan' | 'never' |
in_window: on a list inside your plan's history window, with all the details. before_window: on a list only before your window. Then first_seen, last_seen and days_seen say when and how often, and nothing else is shown. outside_plan: we list it, but your plan does not show where. It is on a list your plan does not include, or below the top your plan shows. Then listed is false, and the other fields cover only what your plan shows. never: no list ever included it, as far as you can see on your plan's delay. That does not mean it is safe. |
top_percent |
float | None |
Where the address stands in the list: 100 * rank / N. 0.5 means the top 0.5%. Lower is better. For that list and day. Null for the complete lists (all-last-day, all-last-7-days), which are not ranked. |
raw_score |
float | None |
The score behind top_percent, for lists that have one. |
rank |
int | None |
The position behind top_percent, starting at 1. |
lists |
list[str] |
The ids of the lists whose newest day contains the address. See /v1/lists. |
scores |
dict[str, ModelScore] |
The address's most recent day on each list, by list id. |
first_seen |
date | None |
The first day any list included the address, over its whole history. This goes back before your plan's history window. |
last_seen |
date | None |
The most recent day any list included the address. When observed is before_window, this is before your plan's history window. |
days_seen |
int |
On how many days any list included the address, over its whole history. This counts days before your plan's history window too. |
days_seen_30d |
int |
On how many of the last 30 days any list included the address. |
expires_at |
date | None |
The last day to keep blocking the address. For each list, its last day on the list plus the days that list keeps it (14 for persistent and top-contributors, 7 for the others). The latest of these wins. You can apply your own rule instead. |
schema_version |
str |
Version of this format. |
attack_category |
str | None |
Reserved. Null for now. |
targeted_ports |
list[int] | None |
Reserved. Null for now. |
asn |
int | None |
Reserved. Null for now. |
country |
str | None |
Reserved, as an ISO 3166-1 alpha-2 code. Null for now. |
is_hosting |
bool | None |
Reserved. Null for now. |
sensor_count |
int | None |
Reserved. Null for now. |
One list in scores¶
scores holds the address's most recent day in each list, keyed by list id.
| Field | Type | Meaning |
|---|---|---|
day |
date |
The most recent day the address was on this list. |
top_percent |
float | None |
Where the address stands in that day's list: 100 * rank / N. 0.5 means the top 0.5%, and 100 the end of the list. Lower is better. Null for the complete lists, which are not ranked. |
raw_score |
float | None |
The score the method gave the address, for lists that have one. |
rank |
int |
Position in that day's list, starting at 1. |
One day in history¶
With include=history, a lookup adds history: every day the address was on a list,
inside your plan's window, newest first.
| Field | Type | Meaning |
|---|---|---|
date |
date |
The day the address was on the list. |
list |
str |
The list id. |
top_percent |
float | None |
Where it stood that day. Lower is better. |
rank |
int |
Its position that day, starting at 1. |
A page of a list¶
GET /v1/lists/{id} returns the records of one day inside this envelope.
| Field | Type | Meaning |
|---|---|---|
list |
str |
The list id. |
method |
str |
The AIP model that produced the list. |
date |
date |
The day of the list. |
generated_at |
datetime | None |
When AIP made the list. |
checksum |
str | None |
The SHA-256 of the file AIP published. |
total |
int |
How many addresses of this day you can see. |
limit |
int |
The page size you asked for. |
offset |
int |
How many addresses this page skipped. |
truncated |
bool |
True when your plan shows only the top of this list. total is then how many you can see. |
schema_version |
str |
Version of this format. |
The CSV file¶
A list downloaded with format=csv has a header row, then one row per address. The
columns are these, in this order. They mean the same as the fields above.
ip,top_percent,raw_score,rank,lists,first_seen,last_seen,days_seen,days_seen_30d,expires_at
An empty cell means null. lists holds the list ids, separated by |.