Key Logs (CSV)
/v1/keys/{key}/lookupsReturns a CSV of the paid lookups made on a key, with the information recorded against each one.
This method requires a user_token, which can be found on your accounts page.
You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
The Content-Type returned is CSV (text/csv). For a non-200 response it reverts to JSON, with the error code and message in the body.
CSV Format
The CSV has no header row. Columns, in order:
- Timestamp (ISO 8601)
- IP address the request was received from
- Search term
- URL the request originated from
- Lookup type
- Tags
- Lookups consumed
- Licensee name (sublicensing keys only)
- Source IP address
The source IP column carries the address forwarded in the IDPC-Source-IP header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
Data Redaction
We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
By default we redact PII older than 28 days. You can change this period from your dashboard.
Set the interval to 0 days to prevent PII collection altogether.
Path parameters
keystringAPI Key
The API Key to retrieve. Begins
ak_.
Query parameters
user_tokenstring optionalPrivate User Token
A secret key used for sensitive operations on your account and API Keys.
Your user token can be retrieved and managed from your accounts page.
Typically begins
uk_...startinteger optionalStart Timestamp
A start date/time in the form of a UNIX Timestamp in milliseconds. E.g.
1418556452651endinteger optionalEnd Timestamp
An end date/time in the form of a UNIX Timestamp in milliseconds. E.g.
1418556477882licenseestring optionalLicensee Key
Uniquely identifies a licensee.
Response
The response is a CSV file with the following columns:
- Timestamp — Lookup timestamp (ISO 8601 format)
- IP Address — Client IP address (redacted after configured interval)
- Query — Search term or postcode (redacted after configured interval)
- Referrer — Request referrer URL
- Lookup Type — Method used (
Postcode Lookup,Address Lookup, etc.) - Tags — Associated transaction tags (comma-separated)
Data Redaction
Personally Identifiable Data (PII) including IP addresses, search terms, and URLs are automatically redacted on a weekly basis. By default, PII is redacted if older than 21 days — this can be configured from your account dashboard.
To prevent PII collection entirely, set the redaction interval to 0 days.