Shodan API
SkillSecurityShodan API reference. Host reconnaissance, port scanning, and vulnerability data.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Shodan API skill
What this skill tells your AI
The instructions your AI receives, as published by liberty91ltd/cti-skills in skills/shodan-api/SKILL.md and read by ahel’s review.
Base URL
https://api.shodan.io
Authentication
Query parameter: ?key=$SHODAN_API_KEY
Rate Limits
- Free: 1 request/second, 100 results/search
- Paid: Higher limits and more features
Key Endpoints
Host Information
curl -s "https://api.shodan.io/shodan/host/{ip}?key=$SHODAN_API_KEY"
Useful fields:
ip_str— IP addressports— open portsdata[]— service banners per port (product, version, transport)os— detected OShostnames— reverse DNSvulns— CVE list (paid feature)org— organisationisp— ISPcountry_code— countrylast_update— last scan date
DNS Resolution
curl -s "https://api.shodan.io/dns/resolve?hostnames={domain}&key=$SHODAN_API_KEY"
Reverse DNS
curl -s "https://api.shodan.io/dns/reverse?ips={ip}&key=$SHODAN_API_KEY"
Search
curl -s "https://api.shodan.io/shodan/host/search?query={query}&key=$SHODAN_API_KEY"
Search filters: port:, org:, country:, product:, version:, ssl.cert.subject.cn:, http.title:, vuln:
API Info (check credits)
curl -s "https://api.shodan.io/api-info?key=$SHODAN_API_KEY"
Common Queries
ssl.cert.subject.cn:example.com— find hosts with specific SSL certificateorg:"Target Org"— find hosts belonging to an orgproduct:"Apache" port:443 country:RU— specific service in a countryvuln:CVE-2024-12345— hosts vulnerable to specific CVE (paid)
Response Summary Format
ip: <IP>
hostnames: [<list>]
org: <organisation>
isp: <ISP>
country: <country>
os: <operating system>
open_ports: [<port list>]
services:
- port: 80
product: nginx
version: 1.18.0
vulnerabilities: [<CVE list>] # paid only
last_update: <date>
Signals
- GitHub stars
- 22
- Forks
- 9
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
shodan-api- Source
- github.com/liberty91ltd/cti-skills