Shodan Host Search
shodan_host_searchSearch Shodan for hosts matching using Shodan search syntax (e.g. "apache country:US", "port:22 org:"Google""). Returns matching hosts with IP, port, org, hostnames, product, and location. Example: shodan_host_search({ query: "apache country:US", _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 country:US",
"_apiKey": "your-shodan-api-key"
},
"name": "shodan_host_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Result page number (optional, 100 results/page, default 1) | |
| query | Yes | Shodan search query. Supports filters like country:, org:, port:, product:, os:, e.g. "apache country:US" | |
| _apiKey | Yes | Shodan API key (account.shodan.io; paid membership required) |