# Triremes Website Gap Leads (SEO & AEO) (`pigfox/triremes-apify-actor`) Actor

Leads for SEO and AEO agencies and web designers: business websites with measured gaps (SEO score, AEO score and every failed check), filtered by business type, place and score. Uses your Triremes API key.

- **URL**: https://apify.com/pigfox/triremes-apify-actor.md
- **Developed by:** [Peter Sjolin](https://apify.com/pigfox) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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

## Triremes website-gap leads (Apify actor)

Find businesses whose websites fail SEO and AEO checks, by business type
and place, and pull them into your Apify dataset: a ready list of
prospects for an SEO, AEO or web design agency.

Each row is one business website on sale on [Triremes](https://triremes.com):

| Field | What it is |
|---|---|
| `title` | the kind of business and where, for example "Dentist in Reno, NV, United States" |
| `category`, `city`, `region`, `country` | the same, field by field |
| `seo_score` | the SEO score, in % |
| `seo_failed_checks` | the SEO checks its homepage fails, by name |
| `aeo_score` | the AEO score, in %, where Triremes shows one |
| `aeo_failed_checks` | the AEO checks it fails, by name |
| `being_measured` | true while a score is still being measured |
| `measured_at` | when it was measured |
| `price` | what the lead costs on Triremes |
| `sold_times` | how many times the lead has been sold |
| `hot` | a hot lead: its owner confirmed interest |
| `lead_url` | the lead's page on Triremes |

**SEO score:** the share of Triremes' checks of what search engines can
read on this homepage that it fails, weighted by how serious each check
is. 0% means no gaps; higher is worse.

**AEO score (sometimes called GEO):** the share of Triremes' checks of
whether AI answer engines can reach, read and trust this site that it
fails, weighted by how serious each check is. 0% means no gaps; higher is
worse.

A row never names the business or its website: that is the lead. Buy it
at `lead_url` (or through the API's `POST /purchases`) and Triremes gives
you the business, its website and its contact page.

### What you need

A Triremes API key, from [triremes.com/account/api](https://triremes.com/account/api).
API access is a Triremes subscription; [triremes.com/api](https://triremes.com/api)
has the price and the terms. The key is your own: the actor sends it only
to triremes.com, and the input field is secret, so it is never shown in
the run's log or input.

### Input

| Field | |
|---|---|
| Triremes API key | required |
| Business type | for example Dentist or Plumber; empty for every type |
| Country | a two-letter code, for example US; empty for every country |
| State or region | for example NV |
| City | |
| Keyword | words found in the business type, city, region, country or the name of a gap |
| Fails this check | only websites failing one SEO check, for example "No meta description" |
| Minimum SEO score (%) | only websites at or above it; 0 keeps every website |
| Most websites | the run stops at this many |

Example:

```json
{
  "apiKey": "your key",
  "category": "Dentist",
  "country": "US",
  "region": "NV",
  "minimumScore": 50,
  "limit": 100
}
```

### Example run

[`example-output.json`](example-output.json) is the dataset of a run on
the actor's sample data (its tests check that it stays exactly that):
two dentists in Nevada with an SEO score of at least 50%.

### Use it with

- **Clay, Make, Zapier, n8n:** start a run with Apify's own integrations
  and read the dataset, or call the Triremes API directly.
- **Your CRM:** export the dataset as CSV or JSON from Apify.

### Running it yourself

```sh
mkdir -p storage/key_value_stores/default
echo '{"apiKey":"your key","category":"Dentist","country":"US","limit":10}' > storage/key_value_stores/default/INPUT.json
go run .
ls storage/datasets/default/
```

It uses the Go standard library only. Tests: `go test ./...`.

The actor identifies itself to Triremes as `triremes-apify/1.0`.

MIT licence. Questions: [triremes.com/contact](https://triremes.com/contact).

# Actor input Schema

## `apiKey` (type: `string`):

Your own key from triremes.com/account/api. It is sent only to triremes.com, as Authorization: Bearer.

## `category` (type: `string`):

As Triremes names it, for example Dentist, Plumber or Roofing Contractor. Empty: every type.

## `country` (type: `string`):

A two-letter code, for example US, GB or DE. Empty: every country.

## `region` (type: `string`):

For example NV or CA. Empty: the whole country.

## `city` (type: `string`):

Empty: every city.

## `q` (type: `string`):

Words found in the business type, city, region, country or the name of a gap. Every word must match.

## `gap` (type: `string`):

Only websites that fail this SEO check. Empty: any.

## `minimumScore` (type: `integer`):

Only websites at or above it; 0 keeps every website, those still being measured too. SEO score: the share of Triremes' checks of what search engines can read on this homepage that it fails, weighted by how serious each check is. 0% means no gaps; higher is worse.

## `limit` (type: `integer`):

The run stops once it has this many.

## Actor input object example

```json
{
  "category": "Dentist",
  "country": "US",
  "minimumScore": 0,
  "limit": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

Each website's title, type, city, region, country, SEO score, AEO score, failed SEO and AEO checks, measured date, lead price, times sold, hot lead flag and lead page.

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

Every field of each row, as JSON.

# 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 = {
    "category": "Dentist",
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pigfox/triremes-apify-actor").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 = {
    "category": "Dentist",
    "country": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("pigfox/triremes-apify-actor").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 '{
  "category": "Dentist",
  "country": "US"
}' |
apify call pigfox/triremes-apify-actor --silent --output-dataset

```

## MCP server setup

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

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/a8QERktfxlVBvIN4L/builds/wTZgPRBPtPy9ZVwtY/openapi.json
