# SecGrid Domain Security & Recon Scanner (`secgrid/secgrid-domain-security-recon-scanner`) Actor

Enterprise-grade SSL inspection, security header auditing, tech-stack detection, and B2B lead reconnaissance scanner.

- **URL**: https://apify.com/secgrid/secgrid-domain-security-recon-scanner.md
- **Developed by:** [SecGrid Labs](https://apify.com/secgrid) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Domain Security Scanner: SSL, Security Headers & Tech Stack

Check many websites in one run. For each domain you get an **A+ to F security grade**, the **SSL/TLS certificate status and days until it expires**, which **security headers** are present or missing, the **server and technologies** the site appears to use, and any **public contact emails and social links** found on the homepage.

Results go straight to JSON, CSV, Excel, the Apify API, Make, n8n or Zapier.

### Who is it for?

- **IT agencies, MSPs and security consultants** who want to find websites with weak security and open a conversation with real evidence.
- **Web and DevOps teams** who need to watch many domains for expiring certificates.
- **Anyone** who needs a quick bulk health check before a migration, audit or acquisition.

### What you get for each domain

| Data | Details |
|---|---|
| Security grade and score | A+ to F, with a score out of 100 |
| SSL/TLS | Certificate valid or not, issuer, days until expiry, TLS version |
| Security headers | Which of 6 important headers are present and which are missing |
| Server and technologies | IP address, server banner, and hints such as Cloudflare, Nginx, WordPress, Next.js |
| Page info | HTTP status, final URL, page title, meta description |
| Contacts (optional) | Public email addresses and LinkedIn / X / Facebook / Instagram links found on the homepage |

### How to use it

1. Open the **Input** tab and add your domains or URLs (for example `example.com` or `https://www.example.com/page`).
2. Choose whether to extract public contact emails.
3. Set the timeout per domain (default 10 seconds).
4. Click **Start**, then export the results as a table, JSON, CSV or Excel.

### Input

| Field | Description |
|---|---|
| `domains` | List of domains or URLs to check. |
| `extractEmails` | Look for public email addresses on the homepage. Default: on. |
| `timeoutSecs` | Maximum wait per domain, 3 to 30 seconds. Default: 10. |

### Example output (illustrative values)

```json
{
  "domain": "example.com",
  "security_grade": "B",
  "security_score": "70/100",
  "http_status": 200,
  "ip_address": "203.0.113.10",
  "ssl_valid": true,
  "ssl_issuer": "Let's Encrypt",
  "ssl_days_remaining": 61,
  "ssl_protocol": "TLSv1.3",
  "detected_technologies": ["Nginx"],
  "server_software": "nginx",
  "security_headers_present": ["Strict-Transport-Security", "X-Content-Type-Options", "Referrer-Policy"],
  "security_headers_missing": ["Content-Security-Policy", "X-Frame-Options", "Permissions-Policy"],
  "public_emails": ["info@example.com"],
  "social_profiles": { "linkedin": "https://www.linkedin.com/company/example" },
  "page_title": "Example Domain",
  "audited_at_utc": "2026-01-01T12:00:00+00:00"
}
```

### How the grade works

The grade is a quick first look, not a full audit:

- Valid SSL/TLS certificate: **40 points**
- Each of these 6 headers present: **10 points** each: `Strict-Transport-Security`, `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`
- **A+** is 90 or more, **A** 80 or more, **B** 65 or more, **C** 50 or more, **D** 35 or more, otherwise **F**.

### Limitations (so there are no surprises)

- The grade checks whether headers are **present**, not whether their values are strong. It does not check email security (SPF/DMARC) or old TLS versions.
- Technology detection uses **hints** from headers and page text. It can be wrong, so treat it as a starting point.
- Emails are taken from the homepage text and are **not verified**. Many sites show no email at all. Use contact data responsibly and follow the laws that apply to you (for example GDPR and anti-spam rules).
- Sites with bot protection may answer differently or block the request.
- This is an outside-in check. It does not replace a penetration test.

### Safe and light

The Actor uses public information only. For each domain it makes one DNS lookup, one TLS connection and one page request. No port scanning, no crawling, no attacks. Please only check domains you own, manage or have a legitimate reason to assess.

### Pricing

Currently **free to use**. You only pay Apify platform usage, which is small. Pay-per-event pricing is planned, and any price change will be announced at least 14 days in advance.

### Support

Found a bug or need another check? Open an issue on this Actor page or email **secgrid.support@gmail.com**. We reply within 1 to 2 business days.

# Actor input Schema

## `domains` (type: `array`):

Enter a list of domains or URLs to audit (e.g., apify.com, github.com).

## `extractEmails` (type: `boolean`):

Scan the landing page HTML to extract public business emails.

## `timeoutSecs` (type: `integer`):

Maximum time to wait for each domain response.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "cloudflare.com"
  ],
  "extractEmails": true,
  "timeoutSecs": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "apify.com",
        "github.com",
        "cloudflare.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("secgrid/secgrid-domain-security-recon-scanner").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "apify.com",
        "github.com",
        "cloudflare.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("secgrid/secgrid-domain-security-recon-scanner").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "apify.com",
    "github.com",
    "cloudflare.com"
  ]
}' |
apify call secgrid/secgrid-domain-security-recon-scanner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,secgrid/secgrid-domain-security-recon-scanner"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/d2saiOtifzNNI9TfB/builds/YRwh4JJX2KH02zgMY/openapi.json
