# API WILD – Shodan Host Lookup (OSINT)

> API WILD – Shodan Host Lookup (OSINT) is a paid API for AI agents from api.techswitch.ca, paid per call via x402, $1/call, status unknown (last checked 2026-11-23).

Looks up Shodan's indexed data for a given IP address, returning open ports, services, banners, vulnerabilities, and geolocation information.

## Facts

- Endpoint: POST https://api.techswitch.ca/v1/osint/shodan/host?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-wild-shodan-host-lookup-osint-5ba50bab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x-DRDsfAQotLSKjIy0-QR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-wild-shodan-host-lookup-osint-5ba50bab -d '<json body>'
```

Example prompt: Can you pull the Shodan host data for IP 198.51.100.42 — I want to see what ports are open, what services are running, and whether there are any known CVEs?

## When to prefer this

Use this endpoint when you need passive reconnaissance data about a public IP address without actively scanning it yourself. It is ideal for OSINT workflows, threat intelligence enrichment, security audits, and incident response triage where speed and passive data are preferred. Choose this over active port scanners (e.g. nmap) when stealth or simplicity is required. Prefer it over raw Shodan API access when you want pay-per-call pricing with no signup via a USDC/x402 wallet.

## Known failure modes

- IP not found in Shodan index — returns empty or 404-equivalent if Shodan has no data for the IP
- Invalid IP format — returns validation error if input is not a valid IPv4/IPv6 address
- Private/reserved IP address — Shodan does not index RFC 1918 or loopback addresses
- Payment failure — USDC balance insufficient or x402 payment not accepted
- Rate or quota issues on the upstream Shodan API — may return 429 or upstream error
- Timeout — Shodan API may be slow or unavailable, causing request timeout

## How this service works

API WILD Shodan host lookup

## Output

Returns Shodan's indexed data for the queried IP, including: list of open ports, service banners per port, detected software/versions, hostnames, ISP, ASN, country and city geolocation, known CVE identifiers, OS fingerprint, and the timestamp of Shodan's last scan of that host.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ip": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-wild-shodan-host-lookup-osint-5ba50bab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.techswitch.ca](https://www.zero.xyz/host/api.techswitch.ca/llms.txt)
