censys_search_hosts
Search Censys IPv4/IPv6 host data to discover exposed services, open ports, and infrastructure details using Censys Search Language queries.
Instructions
Search internet-connected hosts across the global Censys IPv4/IPv6 database.
Usage Guidelines
Best for discovery of exposed external infrastructure, open ports, and services.
Uses Censys Search v2 syntax on the
/v2/hosts/searchendpoint.Requires active CENSYS_API_ID and CENSYS_API_SECRET credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query using Censys Search Language syntax (e.g., 'services.port: 443 AND location.country: US'). | |
| cursor | No | Base64-encoded pagination cursor string obtained from a previous query response. | |
| per_page | No | Total quantity of host results to return per page (min 1, max 100). | |
| virtual_hosts | No | Whether to include virtual hosts. Allowed values: 'EXCLUDE', 'INCLUDE', 'ONLY'. | EXCLUDE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |