Shodan Host Count
shodan_host_countCount hosts matching with facet breakdown (free — this endpoint does not consume query credits). Returns the total match count plus optional facet aggregations (e.g. top countries, orgs, ports). Example: shodan_host_count({ query: "apache", facets: "country:10", _apiKey: "your-key" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Shodan search query, e.g. "apache" or "port:443 country:DE" | |
| facets | No | Comma-separated facets for aggregation, e.g. "country:10" or "org:5,port:5" (optional) | |
| _apiKey | Yes | Shodan API key (account.shodan.io; paid membership required) |