# hold supplier verifier (`celebratory_trefoil/hold-supplier-verifier`) Actor

Checks a supplier's background (site, contact page, phone numbers, domain age) or flags a lookalike domain against a supplier's known one.

- **URL**: https://apify.com/celebratory_trefoil/hold-supplier-verifier.md
- **Developed by:** [Siddharth Balaji](https://apify.com/celebratory_trefoil) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## 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

## Supplier Verifier: look-alike domains and payee checks

Stop paying scammers who pretend to be your suppliers.

The most expensive email scam in business is simple: someone registers `acme-billing.com`, emails your
finance team as Acme, and says "we changed banks, pay us here now." This actor gives you three checks
against it:

- **Watch**: give it your suppliers' real domains. It generates about 80 look-alikes of each one
  (typos, swapped letters, hyphens, `l`→`1`, `.co` instead of `.com`, added words like `-billing`) and
  returns every one that someone has registered: how old it is, and whether it's set up to send email.
  Run it on a schedule and you know about `acme-billing.com` before the first email from it arrives.
- **Copycat**: an email came from a domain that isn't the supplier's. Compare the two: how close the
  names are, how new the sender's domain is, and whether its website copies the real one's title or text.
- **Background**: vet a new supplier before you pay them. Does the site load, what phone number does its
  contact page list (to call back on, never the one in the email), how old is the domain, does its name
  match, does it publish SPF and DMARC, and (optionally) is there a Google Maps listing.

Built for hold, an accounts-payable agent that calls suppliers back before it
pays a changed bank account. It runs Watch nightly and Copycat on every suspicious bill.

### Input

```json
{ "mode": "watch", "domains": ["stagecraftrigging.com", "soundwaveaudio.com"] }
```

```json
{ "mode": "copycat", "domain": "stagecraft-rigging.com", "knownDomain": "stagecraftrigging.com" }
```

```json
{ "mode": "background", "domain": "stagecraftrigging.com", "businessName": "Stagecraft Rigging Co." }
```

| Field | Mode | What it is |
|---|---|---|
| `mode` | all | `watch`, `copycat` or `background` |
| `domains` | watch | Your suppliers' real domains |
| `domain` | copycat, background | The sender's domain (copycat) or the supplier's domain (background). No `https://`. |
| `knownDomain` | copycat | The supplier's real domain to compare against |
| `businessName` | background | The supplier's name on file. Compared with the site's title, and used for the Maps lookup. |

### Output

**Watch** returns one item per registered look-alike (the "Look-alike domains" view):

```json
{
  "domain": "soundwave-audio.com",
  "imitates": "soundwaveaudio.com",
  "technique": "added hyphen",
  "registeredDaysAgo": 719,
  "receivesEmail": true,
  "rdapUrl": "https://rdap.org/domain/soundwave-audio.com"
}
```

A look-alike that's days old and set up for email is the one to block.

**Copycat** and **Background** return one item with a list of findings, each `pass`, `flag` or `info`
with the evidence behind it:

```json
{
  "findings": [
    { "label": "Domain edit distance", "state": "flag", "evidence": "\"stagecraft-rigging.com\" is 95% similar to the known domain \"stagecraftrigging.com\" by edit distance." },
    { "label": "Sender domain age", "state": "flag", "evidence": "stagecraft-rigging.com was registered only 4 days ago.", "sourceUrl": "https://rdap.org/domain/stagecraft-rigging.com" }
  ],
  "suggestedPhone": "(415) 555-0100"
}
```

`suggestedPhone` (background only) is a number found on the supplier's own site. Have a person confirm it
before you trust it.

### How it works and what it costs

Plain HTTP only, no browser: DNS lookups through Cloudflare's DNS-over-HTTPS, registration dates from
RDAP, and the site's own pages. A watch over 25 domains (about 1,900 look-alikes) finishes in seconds on
the smallest memory setting, so it costs a fraction of a cent. The Google Maps lookup in background mode
calls `compass/google-maps-extractor`, which bills per place; it only runs when you give a `businessName`.

### Limits

- Watch only finds look-alikes it can think of. A scammer using an unrelated domain is caught by
  Copycat or by calling the supplier back, not by Watch.
- Some country-code domains (`.co`, `.us`) don't publish RDAP dates, so their age comes back `null`.
- Phone extraction reads US-style numbers.

### Running it yourself

```sh
npm install
apify run -p   # input from storage/key_value_stores/default/INPUT.json
apify push     # deploy to your Apify account
```

# Actor input Schema

## `mode` (type: `string`):

'background' checks one domain on its own. 'copycat' compares domain against knownDomain. 'watch' finds registered look-alikes of every domain in domains.

## `domain` (type: `string`):

Domain to check (background), or the unfamiliar sender domain (copycat). No scheme, e.g. "example.com".

## `businessName` (type: `string`):

The supplier's name on file, compared against the site's title (background mode only).

## `knownDomain` (type: `string`):

The supplier's domain on file, to compare domain against (copycat mode only).

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

Real domains (watch mode only). Each gets about 80 look-alikes generated (typos, hyphens, look-alike letters, other endings, added words like -billing), and every one someone has registered comes back with its age.

## Actor input object example

```json
{
  "mode": "watch",
  "domains": [
    "stagecraftrigging.com"
  ]
}
```

# Actor output Schema

## `lookalikes` (type: `string`):

No description

## `checks` (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": [
        "stagecraftrigging.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("celebratory_trefoil/hold-supplier-verifier").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": ["stagecraftrigging.com"] }

# Run the Actor and wait for it to finish
run = client.actor("celebratory_trefoil/hold-supplier-verifier").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": [
    "stagecraftrigging.com"
  ]
}' |
apify call celebratory_trefoil/hold-supplier-verifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,celebratory_trefoil/hold-supplier-verifier"
        }
    }
}
```

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/ghhS5OMt08eiVJkXb/builds/X0vilyt5KVQcBzUdQ/openapi.json
