Port Scanner API for any host.
Find the open TCP ports on a domain or IP, across the most common ports or a range you choose, with optional service detection on what's open.
- 500 free credits every month
- No card to start
- Failed requests cost nothing
POST /openport
{
"url": "stripe.com"
}





Open ports, without running nmap.
No scanner to install and no servers to scan from. Each request checks the ports you ask for and returns the open ones as JSON.
The most common ports
Scan the top 50, 100, 500, 1,000 or 5,000 ports, from quick checks to a broad sweep.
topPorts: 100Your own ranges
Scan exactly the ports you care about with a list and ranges, such as 80, 443 and 1000 to 1010.
portRanges: "80,443"Service detection
Optionally identify the service and version on each open port. It's slower, and the port list still comes back if detection fails.
detectServices: trueDomains or IPs
Pass a URL, a hostname, or an IPv4 or IPv6 address.
url: 203.0.113.10Attack surface checks
Catch databases, admin panels and remote access ports that are open to the internet when they shouldn't be.
security auditsPlain JSON
The open ports come back as a simple list, easy to compare against what you expect to be open.
data: [80, 443]The parameters you'll use most.
See what each parameter does and when to use it without digging through the API reference.
| Parameter | Type | What it does | Credits |
|---|---|---|---|
| url | string | A URL, hostname, or IPv4 or IPv6 address to scan. | — |
| topPorts | number | Scan the top 50, 100, 500, 1000 or 5000 most common ports. | included |
| portRanges | string | Scan specific ports and ranges instead, e.g. "80,443,1000-1010". | included |
| detectServices | boolean | Also detect the service and version on open ports. Slower. Defaults to false. | included |
What people do with the Port Scanner API.
See what your servers expose
Scan your own hosts regularly and alert when a port opens that shouldn't be, such as a database or remote desktop port.
- Top-N or custom port ranges
- Compare against an allow list
- Schedule it to catch changes
POST /openport
{
"url": "stripe.com",
"topPorts": 100
}Your first port scan, in a few lines.
# 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)One API. Every stack.
The same key works from an agent, a workflow builder, an SDK or your own service. Pick the lane you already live in.
MCP server
One remote endpoint exposes Geekflare's tools to any MCP client. Your agent discovers them itself: no glue code, no per-tool wiring.
LLM & agent pipelines
LLM-ready Markdown straight into a retrieval pipeline, with the boilerplate stripped so you spend context on content, not navigation.
Workflow builders
Run any endpoint as a step in a visual scenario. Useful when the person who needs the data does not write code.
SDKs & REST
First-party typed SDKs for Python and Node. Everything else talks plain REST, from any language.
2 credits a scan. Here is what that buys.
Credits are shared with every other Geekflare API. Failed requests cost nothing.
Growth covers up to ~50,000 scans a month (100K credits), about $1.38 per 1,000 scans. Or $58/mo billed yearly.
- 500 credits / month
- 1 team member
- 7 days log retention
- 1 request per second
- 10K credits / month
- 3 team members
- 30 days log retention
- 5 requests per second
- 100K credits / month
- 5 team members
- 30 days log retention
- 10 requests per second
- 1M credits / month
- 25 team members
- 90 days log retention
- 25 requests per second
Loved by developers worldwide.
“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.”
Jitendra RauloDirector, Aarav Infotech“We use the DNS API to verify our customer's domain ownership, and so far it is great. It responds mostly in less than 1 second.”
“Great API and even better customer support. They went above and beyond to help me fix a rendering issue. Fast response times and effective solutions. 5 stars!”
Before you integrate port scans.
Everything else is in the endpoint docs, and our support team replies to every email.
Open the endpoint docstopPorts to scan more or fewer (50 up to 5,000), or portRanges to scan exactly the ports you list, such as "80,443,1000-1010".detectServices: true to identify the service and version on each open port. It's slower than a plain scan, and if detection fails you still get the list of open ports.250 scans a month, free.
The free tier renews every month and needs no card. Scan your first host in a single call.