# Domain Trust & Reputation: Typosquatting & Lookalike Domains (`xomiadata/domain-trust-score`) Actor

Score a domain's trust and technical reputation from public signals: Certificate Transparency, live DNS and TLS, RDAP age and the Majestic Million. Detect registered lookalike domains of your brand (typosquatting) and store a change history. No WHOIS contacts or page content collected.

- **URL**: https://apify.com/xomiadata/domain-trust-score.md
- **Developed by:** [Khlifi oussama](https://apify.com/xomiadata) (community)
- **Categories:** SEO tools, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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 Trust & Reputation: Typosquatting & Lookalike Domains

Score how trustworthy a website domain looks, and find lookalike domains that could be used to impersonate your brand. The Actor combines public technical signals (Certificate Transparency logs, live DNS and TLS checks, RDAP registration dates, the Majestic Million popularity list) into a transparent 0-100 trust score, keeps a history in your own Apify account, and reports what changed since your previous run.

**En français :** score de confiance technique d'un nom de domaine (certificats, DNS, TLS, ancienneté RDAP, Majestic) et surveillance des domaines sosies (typosquatting) déjà enregistrés pour votre marque.

### What you get

**Per domain**

- `trustScore` (0-100), `riskLevel` (low / medium / high), `alerts` and every point explained in `scoreFactors`.
- Domain age, expiry date, registry status and registrar name (RDAP). Registrant and contact data are never output.
- DNS: nameservers, IPv4/IPv6, mail servers, SPF, DMARC policy, CAA, parking nameservers.
- HTTPS: certificate validity, issuer, expiry (own TLS handshake; page content is not read).
- Certificate Transparency: active certificates, issuers, subdomains seen.
- Majestic Million rank. Optional Common Crawl presence.
- `changesSinceLastRun` (IP, nameservers, MX, registrar, expiry, certificate, rank, score) and `scoreHistory`.

**Per lookalike of your brand domains**

- Variant type: TLD swap, typo, omission, repetition, transposition, homoglyph, hyphenation, keyword (login, secure, pay…), or found in CT logs containing your brand.
- `lookalikeThreatScore` and level, based on age, mail servers, live HTTPS and hosting.
- `newSinceLastRun`: lookalikes that appeared since the previous run.

### Use cases

- Brand protection and security teams: daily watch for new phishing-style registrations.
- Marketplaces, payment and fintech onboarding: a quick technical sanity check of a merchant website.
- AI agents: decide whether a link looks trustworthy before following it, through the Apify MCP server.
- Sales and M\&A research: domain age, mail setup and infrastructure changes over time.

### Input

```json
{
  "domains": ["apify.com", "service-public.fr"],
  "brandDomains": ["apify.com"],
  "maxLookalikeCandidates": 250,
  "includeCertificateTransparency": true,
  "includeMajestic": true,
  "includeCommonCrawl": false,
  "historyStoreName": "domain-trust-history"
}
```

Schedule it daily with your brand domains to get new lookalikes as they appear. Lookalikes can include domains you own yourself (defensive registrations); review them once and ignore them.

### Example queries (for AI agents)

Once this Actor is published (public, limited permissions), the official Apify MCP server (`https://mcp.apify.com`) can discover and call it. Pinned tool URL: `https://mcp.apify.com?tools=xomiadata/domain-trust-score` (tool name: `xomiadata--domain-trust-score`).

Replace example hosts with the domains you actually want to score. This is not a legal trademark opinion and does not collect WHOIS contacts.

1. Score a shop domain and return the main technical factors.

```json
{
  "domains": ["https://shop.example.com/page"],
  "includeCertificateTransparency": true,
  "includeMajestic": true,
  "includeCommonCrawl": false
}
```

2. Watch a brand domain for newly registered typo and TLD lookalikes.

```json
{
  "brandDomains": ["example.com"],
  "maxLookalikeCandidates": 250,
  "includeCertificateTransparency": true,
  "includeMajestic": true,
  "historyStoreName": "domain-trust-history"
}
```

3. Score two domains and also check Common Crawl presence.

```json
{
  "domains": ["example.com", "example.org"],
  "includeCertificateTransparency": true,
  "includeMajestic": true,
  "includeCommonCrawl": true
}
```

### How the trust score works

Starts at 50. Adds points for domain age (up to +20), Majestic Million rank (up to +20), valid HTTPS, mail servers, SPF, DMARC, CAA and DNSSEC. Removes points for very new domains (down to -35), parking nameservers, invalid or missing HTTPS, registry hold or pending delete, and expiry within 30 days. A domain that does not resolve gets 0.

### Sources and licences

| Data | Source | Licence / terms |
|---|---|---|
| Certificates, subdomains, brand certificates | Certificate Transparency logs via crt.sh | Public CT logs (RFC 6962); short timeouts; may time out |
| DNS and HTTPS | Own lookups (system resolver, or Google Public DNS over HTTPS) and own TLS handshake | Own measurement |
| Registration and expiry dates, status, registrar | RDAP via rdap.org bootstrap | Registry public RDAP; contact data not used |
| Popularity rank | The Majestic Million, by Majestic | CC BY 3.0 (attribution: majestic.com) |
| Crawl presence (optional) | Common Crawl index | Common Crawl Terms of Use; counts only |

Not used: the default Tranco list (it includes Cloudflare Radar data under a non-commercial licence) and the Chrome UX Report (share-alike licence).

### Privacy

No WHOIS/RDAP registrant, administrative or technical contact is read into the output. No page content, emails or personal data are collected.

### Limits

- crt.sh is a public service and is sometimes slow; when it times out the item says so and the score uses the other signals.
- RDAP coverage depends on the registry; some ccTLDs return no dates.
- Scores are indicators, not a verdict on the site owner.

### Pricing (pay per event)

- Domain profile: per domain scored.
- Lookalike: per registered lookalike returned.

### Use it in Claude, ChatGPT or Cursor (MCP)

This Actor runs through the official Apify MCP server, so an AI assistant can call it for you in a chat. The server is operated by Apify; runs are billed to your own Apify account per event (see Pricing).

1. **Claude** (claude.ai or Claude Desktop): Connectors settings > Add custom connector, then paste the URL below and sign in to Apify (OAuth). Guide: https://docs.apify.com/integrations/claude-ai
2. **ChatGPT** (developer mode): Settings > Apps & Connectors > Create, paste the same URL, authentication OAuth. Guide: https://docs.apify.com/integrations/chatgpt
3. **Cursor, Claude Code and other MCP clients**: add it as a remote HTTP MCP server. Guide: https://docs.apify.com/mcp

```
https://mcp.apify.com?tools=xomiadata/domain-trust-score
```

Claude Code:

```
claude mcp add --transport http domain-trust-score 'https://mcp.apify.com?tools=xomiadata/domain-trust-score'
```

All 7 xomiadata open-data Actors in one connector:

```
https://mcp.apify.com?tools=xomiadata/fr-company-check,xomiadata/fr-product-recalls,xomiadata/boamp-tenders-ai,xomiadata/ted-tenders-ai,xomiadata/company-health-history,xomiadata/job-postings-history,xomiadata/domain-trust-score
```

Then ask in plain language, for example:

- *Score the technical trust of example.com (certificates, DNS, TLS, RDAP age, Majestic rank) and list registered lookalike domains for that brand.*
- *Check these supplier domains before paying an invoice and flag any high-risk signal: service-public.fr, apify.com.*

### FAQ

**Is this a phishing verdict?** No. The trust score is a technical reputation indicator built from public signals; every point is explained in `scoreFactors`. It does not judge the site owner.

**How are lookalikes found?** The Actor generates typo and other-TLD variants of your brand domains and reports the ones that are actually registered, with a threat score and what changed since the previous run.

**Do I need an API key?** No. All sources are public. You need an Apify account; runs are billed per event.

# Actor input Schema

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

One domain or URL per line, e.g. example.com or https://shop.example.com/page. The registrable domain is scored.

## `brandDomains` (type: `array`):

Your own domains. The Actor generates typo, homoglyph, hyphen, keyword and TLD variants, checks which ones are registered in DNS and in Certificate Transparency logs, and scores each one.

## `maxLookalikeCandidates` (type: `integer`):

How many generated variants to check in DNS per brand domain.

## `includeCertificateTransparency` (type: `boolean`):

Active certificates, issuers and subdomains seen in public CT logs, and certificates whose names contain your brand.

## `includeMajestic` (type: `boolean`):

Popularity rank from the daily Majestic Million list (CC BY 3.0).

## `includeCommonCrawl` (type: `boolean`):

Whether the domain appears in the latest Common Crawl index (page count only).

## `historyStoreName` (type: `string`):

Named key-value store in your Apify account that keeps snapshots, so each run reports DNS, certificate, registrar and score changes and newly registered lookalikes.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "service-public.fr"
  ],
  "brandDomains": [
    "apify.com"
  ],
  "maxLookalikeCandidates": 250,
  "includeCertificateTransparency": true,
  "includeMajestic": true,
  "includeCommonCrawl": false,
  "historyStoreName": "domain-trust-history"
}
```

# Actor output Schema

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

One trust profile per domain, plus one row per registered lookalike of your brand domains.

# 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",
        "service-public.fr"
    ],
    "brandDomains": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xomiadata/domain-trust-score").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",
        "service-public.fr",
    ],
    "brandDomains": ["apify.com"],
}

# Run the Actor and wait for it to finish
run = client.actor("xomiadata/domain-trust-score").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",
    "service-public.fr"
  ],
  "brandDomains": [
    "apify.com"
  ]
}' |
apify call xomiadata/domain-trust-score --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xomiadata/domain-trust-score"
        }
    }
}
```

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/hRuJCeAElGkpWv3Jt/builds/7zez0bBh2KagO3crA/openapi.json
