Skip to Content
ReferenceAPI referenceAccess Logs

Search the filter values by name

GET
/api/v1/access-logs/facets/search

Returns the countries, cities, hosts, server names and ASNs whose name holds q, ignoring case and accents, busiest first, up to limit of each. A country also matches its two-letter code, and an ASN matches its number with or without AS, from the first digits. Totals cover everything the daily aggregates keep, muted IPs included, and can trail new requests by up to five minutes.

Authorization

cookiesession<token>

Session cookie authentication.

Query Parameters

q*string

The text to look for, 2 to 100 characters.

Length2 <= length <= 100
limit?integer

How many values of each kind to return, from 1 to 20. Defaults to 4.

Range1 <= value <= 20
Default4

Response Body

Request fulfilled, document follows

application/json
  1. response

Filter values that match a search, busiest first in each list.

asns*array<>
cities*array<>
countries*array<>
hosts*array<>
servers*array<>
Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/access-logs/facets/search?q=string'
Example Response
{  "asns": [    {      "asn": 0,      "hits": 0,      "organization": "string"    }  ],  "cities": [    {      "city": "string",      "countryCode": "string",      "countryName": "string",      "hits": 0    }  ],  "countries": [    {      "code": "string",      "hits": 0,      "name": "string"    }  ],  "hosts": [    {      "hits": 0,      "host": "string"    }  ],  "servers": [    {      "hits": 0,      "server": "string"    }  ]}