# SEO Domain Overview (DataForSEO) (`precocious_clouds/seo-domain-overview`) Actor

Fetches trimmed domain SEO metrics from DataForSEO Labs Domain Rank Overview API for LLM-friendly output.

- **URL**: https://apify.com/precocious\_clouds/seo-domain-overview.md
- **Developed by:** [Nesrine Zarrouki](https://apify.com/precocious_clouds) (community)
- **Categories:** AI, Agents, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

**Built for AI agents.** Pass a domain, get compact SEO metrics back as JSON — ready to drop into an LLM context window.

**No API keys required.** No external accounts, no credentials, no setup. Just provide a domain and run.

### AI Agent Integration Guide

This service is optimized for machine-to-machine execution, multi-agent workflows, and x402 pay-per-call usage.

#### Expected agent input

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `domain` | string | **Yes** | Root domain only (e.g. `example.com`) — no `https://` or paths |
| `location_code` | integer | No | Default `2840` (United States). Use `2826` for UK. |
| `language_code` | string | No | Default `en` |

#### Intended use cases (semantic matching)

**Trigger this tool when the master goal involves:**
- "How much SEO traffic does [domain] get?"
- "Analyze [company]'s organic search presence"
- "Competitor SEO overview" or "domain authority snapshot"
- "How many keywords does [site] rank for?"
- "Is [prospect domain] getting organic traction?"
- "SEO metrics for lead qualification"
- Enriching an LLM with domain-level SEO context before outreach, scoring, or research

**Do NOT trigger this tool when:**
- The user wants an **on-page audit** (H1 tags, meta descriptions, page speed, alt text) — this returns domain-level metrics only
- The user wants **broken link checks** or **technical crawl reports**
- The user asks for **general keyword trends** without naming a specific domain
- The user needs **SERP rankings for a single keyword** (use a rank tracker instead)
- The user provides a **full page URL** with a path — extract the root domain first

Get instant SEO metrics for any domain: estimated organic and paid traffic, ranking keyword counts, and top-10 visibility.

### Why agents use this

- **Zero setup** — only input is a domain name
- **Small JSON output** — trimmed for LLM context, not raw API dumps
- **Predictable pricing** — ~$0.05 per domain lookup
- **x402 compatible** — autonomous agents can pay and run without bringing their own API keys

### What you get

Each run analyzes one domain and returns:

| Field | Description |
| --- | --- |
| `domain` | Target domain |
| `estimated_organic_traffic_monthly` | Estimated monthly organic traffic |
| `estimated_paid_traffic_monthly` | Estimated monthly paid traffic |
| `total_ranking_keywords` | Total organic keywords the domain ranks for |
| `top_10_ranking_keywords` | Keywords ranking in positions 1–10 |
| `estimated_organic_paid_cost_usd` | Estimated cost to buy equivalent organic traffic via PPC |
| `estimated_paid_traffic_cost_usd` | Estimated monthly paid traffic cost |
| `location_code` | Market used (default: `2840` = United States) |
| `language_code` | Language used (default: `en`) |
| `status` | `Success` or error details |

### Example output

```json
{
  "domain": "example.com",
  "location_code": 2840,
  "language_code": "en",
  "estimated_organic_traffic_monthly": 3055.74,
  "estimated_paid_traffic_monthly": 32.18,
  "total_ranking_keywords": 1788,
  "top_10_ranking_keywords": 139,
  "estimated_organic_paid_cost_usd": 15078.99,
  "estimated_paid_traffic_cost_usd": 275.84,
  "status": "Success"
}
````

### Pricing

| Event | Price |
| --- | --- |
| **Result** | **$0.05** per domain overview |
| Actor start | $0.00005 per run |

# Actor input Schema

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

The root domain to analyze (e.g. example.com). The agent MUST provide this. Do not include https://, www, or path segments. Use when the goal is to measure a website's search visibility, traffic potential, or keyword footprint at the domain level.

## `location_code` (type: `integer`):

Geographic market for SEO metrics. Use 2840 for United States (default), 2826 for United Kingdom, 2124 for Canada. Only set when the user specifies a country/market; otherwise omit to use US defaults.

## `language_code` (type: `string`):

Two-letter language code for the search market (default: en). Only set when the user specifies a language; otherwise omit.

## Actor input object example

```json
{
  "domain": "example.com",
  "location_code": 2840,
  "language_code": "en"
}
```

# 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 = {
    "domain": "example.com",
    "location_code": 2840,
    "language_code": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("precocious_clouds/seo-domain-overview").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 = {
    "domain": "example.com",
    "location_code": 2840,
    "language_code": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("precocious_clouds/seo-domain-overview").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "domain": "example.com",
  "location_code": 2840,
  "language_code": "en"
}' |
apify call precocious_clouds/seo-domain-overview --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=precocious_clouds/seo-domain-overview",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEO Domain Overview (DataForSEO)",
        "description": "Fetches trimmed domain SEO metrics from DataForSEO Labs Domain Rank Overview API for LLM-friendly output.",
        "version": "0.1",
        "x-build-id": "1HiXvFEB1iIWebtA7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/precocious_clouds~seo-domain-overview/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-precocious_clouds-seo-domain-overview",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/precocious_clouds~seo-domain-overview/runs": {
            "post": {
                "operationId": "runs-sync-precocious_clouds-seo-domain-overview",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/precocious_clouds~seo-domain-overview/run-sync": {
            "post": {
                "operationId": "run-sync-precocious_clouds-seo-domain-overview",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domain"
                ],
                "properties": {
                    "domain": {
                        "title": "Target Domain",
                        "type": "string",
                        "description": "The root domain to analyze (e.g. example.com). The agent MUST provide this. Do not include https://, www, or path segments. Use when the goal is to measure a website's search visibility, traffic potential, or keyword footprint at the domain level."
                    },
                    "location_code": {
                        "title": "Search Market (Location Code)",
                        "type": "integer",
                        "description": "Geographic market for SEO metrics. Use 2840 for United States (default), 2826 for United Kingdom, 2124 for Canada. Only set when the user specifies a country/market; otherwise omit to use US defaults.",
                        "default": 2840
                    },
                    "language_code": {
                        "title": "Search Language",
                        "type": "string",
                        "description": "Two-letter language code for the search market (default: en). Only set when the user specifies a language; otherwise omit.",
                        "default": "en"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
