Aggregate results for a search query within a collection
Aggregate results for a Platform search query that targets a collection's assets. This functionality is equivalent to the Report Builder in the Platform web UI.<br><br>In a SOC environment, use this endpoint to count and bucket matches by field, such as port, country, or software, inside a collection so you can spot exposure trends without pulling every asset.
Request
- Base URLhttps://api.platform.censys.io
- URLhttps://api.platform.censys.io/v3/collections/{collection_uid}/search/aggregate
- AuthHTTP bearer
Path parameters
The UID for the collection. Obtain the collection ID using the list collections endpoint or via the collection URL when using the web console.
Query parameters
The ID of a Censys organization to associate the request with. See the Getting Started docs for more information.
Headers
The ID of a Censys organization to associate the request with. See the Getting Started docs for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.
Request body
Example request
{
"field": "host.services.port",
"query": "host.services.protocol=SSH"
}Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.