Shodan
Internet-exposed devices: hosts, ports, banners and CVEs
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- Sign in at account.shodan.io with your account.
- In “Overview” copy your “API Key”. The free account barely allows using the API; the plans (Membership, Freelancer…) include monthly query credits: searches with filters and every page from the second one on use one, while looking up a host or counting results (/shodan/host/count) uses none.
Tools (3)
Shodan API request
SHODAN_SEND_REQUESTAuthenticated call to the Shodan API (https://api.shodan.io). Any endpoint of the API is allowed. Examples: GET /shodan/host/{ip}?minify=true, GET /shodan/host/count?query=org:"…"&facets=port,country (no credits), GET /shodan/host/search?query=hostname:example.com, GET /dns/domain/{domain} (1 credit), GET /dns/resolve?hostnames=a.com,b.com, GET /dns/reverse?ips=…, GET /shodan/host/search/filters, GET /api-info.
Required scopes
No scopes required
Input
Shodan API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Host information
SHODAN_GET_HOSTPorts and services of an IP (product, version, CPE, HTTP title, certificate and banner excerpt), detected CVEs, organization, ASN, location and hostnames. It does not use query credits.
Required scopes
No scopes required
Input
Host information input Name Type Description iprequiredstringIP address, e.g. 8.8.8.8 historybooleanAlso include the historical bannersDefault: falseSearch
SHODAN_SEARCH_HOSTSSearch with Shodan syntax (hostname:, org:"…", net:, port:, product:, vuln:, ssl.cert.subject.cn:, http.title:…). Uses 1 query credit if it has filters and another one for each page from the 2nd on (100 results per page). Returns the total, the requested facets and the summarized results.
Required scopes
No scopes required
Input
Search input Name Type Description queryrequiredstringe.g. ssl.cert.subject.cn:example.com port:443 facetsstringe.g. port,country:10,org pageintegerDefault: 1maxintegerNumber of results from the page to returnDefault: 50

