Port Scanner API

Secure your infrastructure by scanning for open ports on any IP address or domain. Verify firewall rules and audit network accessibility with flexible scanning options.

99.9% UptimeNmap PoweredStealth Scan Mode
Trusted by 10,000+ developers

Ready-to-use code snippets

# pip install geekflare-api
from geekflare_api.client import GeekflareClient
from geekflare_api.models import OpenPortDto

with GeekflareClient(api_key="<api-key>") as client:
    result = client.open_ports(
        OpenPortDto(
            url="https://example.com"
        )
    )
    print(result)
OpenAPI 3.0Type SafeSSL Encrypted

Why Geekflare Port Scanner API

Custom Port Ranges

Define exactly what to check. The API supports flexible inputs, allowing you to scan single ports (22), lists (80, 443), or full ranges (8000-9000).

Top Ports Presets

Use the topPorts parameter to automatically scan the most common 50, 100, 500, 1000, or 5000 ports frequently used by services and malware.

Real-Time Status

We perform active TCP connections to verify the actual status of the port.

Simple, transparent pricing

Starter

$9/mo

5K Credits/mo
Scan ~2500 hosts
5 Requests per second

Growth

Most Popular

$49/mo

100K Credits/mo
Scan ~50K hosts
25 Requests per second

Business

$249/mo

1M Credits/mo
Scan ~500K hosts
50 Requests per second

Other Geekflare API services

Run TLS Scan

Test SSL/TLS certificate configuration like supported protocols, expiry, CN, SAN, etc.

Lookup DNS Records

Query all major DNS record types including A, AAAA, CNAME, MX, TXT, NS, SOA, and CAA in a single request.

Scrape Website

Extract HTML, Markdown, or JSON from dynamic web pages with automatic CAPTCHA solving.

Check Site Loadtime

Check how much time your site takes to load including DNS, Connect, TLS, and TTFB metrics.

Check Broken Links

Find dead internal and external links on a webpage.

Lovedby developers worldwide

Brett Dutton

Brett Dutton

Developer

I am really happy with Geekflare. 1. You are incredibly responsive. - Fast to let me know of a billing problem, and with a good resolution - Fast to respond and fix 500 error. 2. Your platform is fast. 3. Consistent results

May 12, 2026
Email
Jitendra Raulo

Jitendra Raulo

Director at Aarav Infotech

Its been couple of years we are using Geekflare API, we like its stable production ready performance and cost-effectiveness of accessing multiple APIs through a single plan.

Mar 7, 2026
Geekflare
Ram Dasi

Ram Dasi

Architect at PA Consulting

Found Geekflare API to get markdown from URL for my AI agents. It is fast and cheaper and works on almost every website.

May 7, 2026
Geekflare
Nicolas Rios

Nicolas Rios

Head of Product

I've been using Geekflare for both their API tools and their multi-AI chat platform. The URL-to-Markdown API has been a game changer for my content pipeline.

May 7, 2026
Geekflare
Dinny Roberson

Dinny Roberson

Developer

Finally found a screenshot API that handles full-page captures correctly. Most others mess up the rendering of dynamic elements. Geekflare API captures the whole thing.

May 7, 2026
Geekflare
Maia Pittman

Maia Pittman

Developer

If you are a developer building RAG pipelines, you need this. The URL to Markdown feature is much cheaper than the other big players in this space. It handles dynamic JS-heavy sites surprisingly well.

May 7, 2026
Geekflare

Frequently Asked Questions

The legality varies by jurisdiction. You should only scan networks, domains, or IPs that you own or have explicit permission to audit. Unauthorized scanning can be considered a cyberattack.

The API attempts to establish a TCP connection to the specified ports on the target IP or hostname. It analyzes the response to determine if the port is open or closed.

If no parameters are provided, the API defaults to scanning the Top 100 most common ports.

To avoid being flagged by IDPS, ensure you are only scanning assets you have authorization for.

Ready to Scan Ports?

Get your API key in less than 30 seconds. 500 free credits.