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" })
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "apache",
"_apiKey": "your-shodan-api-key"
},
"name": "shodan_host_count"
}
}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) |