FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Shodan Has a Free API — Scan the Internet for Exposed Devices
How-ToSystems

Shodan Has a Free API — Scan the Internet for Exposed Devices

via Dev.to TutorialAlex Spinov3h ago

What Is Shodan? Shodan is a search engine for internet-connected devices. While Google indexes websites, Shodan indexes everything else: servers, webcams, databases, IoT devices. Free vs Paid Feature Free Membership ($49) Search queries 100/month Unlimited Results per query 100 10,000 Scan credits 100/month 5,000/month Setup pip install shodan Get your API key at account.shodan.io. Search for Exposed Services import shodan api = shodan . Shodan ( " YOUR_API_KEY " ) results = api . search ( " mongodb port:27017 " ) print ( f " Found { results [ chr ( 39 ) + " total " + chr ( 39 )] } results " ) for r in results [ " matches " ][: 5 ]: print ( f " { r [ " ip_str " ] } : { r [ " port " ] } " ) Audit Your Own IP def audit_ip ( ip ): host = api . host ( ip ) print ( f " Open ports: { host [ " ports " ] } " ) vulns = host . get ( " vulns " , []) if vulns : print ( f " VULNERABILITIES: { vulns [ : 5 ] } " ) audit_ip ( " 8.8.8.8 " ) Search Filters city:"San Francisco" country:"US" org:"Google"

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles

We Tested This FREE TradingView Trend Indicator… It Only Works Here!
How-To

We Tested This FREE TradingView Trend Indicator… It Only Works Here!

Medium Programming • 3h ago

5 Campfire Songs Anyone Can Play on Guitar (Free Chord Charts)
How-To

5 Campfire Songs Anyone Can Play on Guitar (Free Chord Charts)

Dev.to Beginners • 6h ago

Bybit vs HTX — Which Crypto Exchange Is Better? (2026)
How-To

Bybit vs HTX — Which Crypto Exchange Is Better? (2026)

Dev.to Beginners • 6h ago

Stop Posting Noise: Building in Public Needs Real Value
How-To

Stop Posting Noise: Building in Public Needs Real Value

Dev.to Beginners • 7h ago

We got an audience with the "Lunar Viceroy" to talk how NASA will build a Moon base
How-To

We got an audience with the "Lunar Viceroy" to talk how NASA will build a Moon base

Ars Technica • 7h ago

Discover More Articles