# Search tokens

Break a search query into tokens to see how Shodan interprets it.

|  |  |
| --- | --- |
| Tool id | `shodan.search-tokens` |
| Platform | [Attack surface](https://www.orcarouter.ai/tools/attack-surface.md) |
| Capability | [Host tokens](https://www.orcarouter.ai/tools/attack-surface/host-tokens.md) |
| Price | $0.001 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | yes |
| Data class | unclassified |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | The Shodan search query to tokenize. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/shodan.search-tokens/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"<query>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/shodan.search-tokens/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"query":"<query>"}},
)
print(resp.json())
```

## FAQ

### How much does Search tokens cost?

Search tokens costs $0.001 per call: 1,000 calls cost $1.00.

### What does a $10 budget buy with Search tokens?

About 10000 calls at $0.001 per call.

### What inputs does Search tokens need?

Required inputs: query.

### How do I call Search tokens?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/attack-surface/host-tokens/search-tokens
