# achillean/shodan-python

The official Python library for Shodan

Repository: https://github.com/achillean/shodan-python
Canonical: https://ross.abutalabs.com/products/shodan-python
Homepage: https://developer.shodan.io
Language: Python
License: NOASSERTION
License Family: other
Last push: 2024-08-05T13:11:50+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5839, "days_push": 758, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2950, forks 688 (observed 2026-08-28T04:07:31.929533+00:00)

## What it is
The official Python library and command-line interface for the Shodan search engine, which indexes Internet-connected devices and services. It provides programmatic access to Shodan's search, IP lookup, streaming, DNS database, and exploit search APIs.

## Use cases
- search for exposed internet-connected devices
- look up open ports and services for an IP address
- monitor my network's attack surface
- stream real-time Shodan banner data
- find devices running vulnerable software versions
- query DNS records for a domain
- search for exploits by CVE

## When to choose
- you need programmatic access to Shodan data from Python
- you want a ready-made CLI for querying Shodan without writing scripts
- you're building security tooling that integrates Shodan intelligence
- you need real-time streaming of Shodan's firehose data

## When to avoid
- you need a search engine for websites rather than devices
- you don't have a Shodan API key or subscription
- you want to scan networks yourself rather than query Shodan's collected data
- you need a client in a language other than Python

## Facets
- artifact type: library
- maturity: stable
- function: search-engine, http-client, cli, security, osint, networking
- domain: security, osint, networking, developer-tools
- platform: python, cli, cross-platform
- tags: shodan, api-client, internet-scanning, attack-surface, streaming-api, cybersecurity, reconnaissance, search, command-line

## Member repositories
- achillean/shodan-python (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.929533+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:42.327720+00:00, confidence not recorded.
  - readme: https://github.com/achillean/shodan-python (fetched 2026-08-28T04:07:31.929533+00:00, sha 548bc88f0395)
  - homepage: https://developer.shodan.io (fetched 2026-08-29T09:48:04.343597+00:00, sha 44e1719d1076)
  - site_page: https://www.shodan.io/about/products (fetched 2026-08-29T09:48:04.352713+00:00, sha ae1336355392)
  - site_page: https://help.shodan.io/command-line-interface/0-installation (fetched 2026-08-29T09:48:04.358301+00:00, sha 38c3d5ce703b)
  - site_page: https://developer.shodan.io/apps (fetched 2026-08-29T09:48:04.354584+00:00, sha 85aaa699490b)
  - site_page: https://account.shodan.io/billing (fetched 2026-08-29T09:48:04.356341+00:00, sha ca71bacb37f7)
  - site_page: https://developer.shodan.io/pricing (fetched 2026-08-29T09:48:04.360035+00:00, sha 954f58fabe84)
- Data as of 2026-08-30T08:39:29.467469+00:00.
