agentsclimarketplace

Shodan api

Skill Liberty91LTD/cti-skills/skills/shodan-api

Shodan API reference. Host reconnaissance, port scanning, and vulnerability data.From its SKILL.md

Install
npx -y skills add Liberty91LTD/cti-skills --skill shodan-api

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 16 stars16 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.9 KB, 567 tokens by cl100k_base, as published. Nobody here has run it

Shodan API

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 address
  • ports — open ports
  • data[] — service banners per port (product, version, transport)
  • os — detected OS
  • hostnames — reverse DNS
  • vulns — CVE list (paid feature)
  • org — organisation
  • isp — ISP
  • country_code — country
  • last_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 certificate
  • org:"Target Org" — find hosts belonging to an org
  • product:"Apache" port:443 country:RU — specific service in a country
  • vuln: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>

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.