CensysEx.Hosts.aggregate

You're seeing just the function aggregate, go back to CensysEx.Hosts module for more information.
Link to this function

aggregate(field, query \\ nil, num_buckets \\ 50)

View Source

Specs

aggregate(String.t(), String.t(), integer()) :: {:error, any()} | {:ok, map()}

Hits the Censys Hosts aggregate API. Optionally control number of buckets returned

Examples

CensysEx.Hosts.aggregate("location.country_code", "services.service_name: MEMCACHED")

CensysEx.Hosts.aggregate("location.country_code", "services.service_name: MEMCACHED", 1000)