shodan-search-count
Count matching hosts for a Shodan query without using query credits, letting you check result volume before committing to a full search.
Instructions
Count how many hosts match a Shodan query WITHOUT consuming query credits.
Use this to check result volume before running a full search. Requires a Shodan API key but does NOT consume query credits.
Returns: SearchCountResult with total count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Shodan search query. Same syntax as shodan-search. Examples: "apache port:8080", "vuln:CVE-2021-44228 country:US". | |
| timeout | No | HTTP request timeout in seconds. Default: 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query that was executed | |
| total | Yes | Total number of matching results | |
| facets | No | Facet breakdown if facets were requested |