shodan-parse-query
Parse a Shodan search query into attributes, filters, errors, and remaining text to debug complex searches and understand Shodan's interpretation.
Instructions
Parse and analyze a Shodan search query into its components.
Breaks down a query into attributes, filters, errors, and the remaining search string. Useful for debugging complex queries and understanding how Shodan interprets them. Requires a Shodan API key.
Returns: QueryTokensResult with parsed query components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Shodan search query to analyze. Example: "apache port:8080 country:US". | |
| timeout | No | HTTP request timeout in seconds. Default: 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors found in the query | |
| string | No | The remaining unprocessed query string | |
| filters | No | Filters used in the query | |
| attributes | No | Parsed query attributes and their values |