# Domain Traffic Estimation (`dataforseo/traffic-estimation`) Actor

Estimate monthly organic and paid Google traffic (ETV) and the number of search results for any list of domains, subdomains or pages.
Powered by the DataForSEO Labs API.

- **URL**: https://apify.com/dataforseo/traffic-estimation.md
- **Developed by:** [DataForSEO](https://apify.com/dataforseo) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 per domains

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

## Traffic Estimation

Estimate how much monthly Google traffic any list of domains, subdomains or pages gets: the estimated organic and paid traffic (ETV) and the number of search results each target appears in.

Built on the DataForSEO Labs API. You don't need a DataForSEO account or an API key — just run the Actor.

### What you get

- **Organic traffic (ETV)** — the estimated number of monthly visits from Google's organic results.
- **Paid traffic (ETV)** — the same estimate for Google Ads results.
- **Organic and paid result counts** — how many Google search results the target appears in.
- **Domains, subdomains and pages** — mix them freely in one run.
- **One row for every line you enter**, with a `status` telling you exactly what happened to it.

**What is ETV?** Estimated traffic volume: for every keyword the target ranks for, the keyword's monthly search volume is multiplied by the expected click-through rate of the target's position, and the results are added up. It's an estimate of monthly visits from Google, not a measurement from the site's analytics.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| **Domains, subdomains or pages** | text, one per line — *required* | — | The targets to estimate. Domains and subdomains go without `https://` and `www.` (`dataforseo.com`, `blog.example.com`); pages as full URLs (`https://dataforseo.com/apis`). A line with a path after the domain is treated as a page, and a page without `https://` gets it added. Blank lines are ignored; duplicates are removed after this clean-up, so you never pay twice for one target. |
| **Location** | select | `United States` | The country whose Google searches the estimate is based on. A location the API doesn't support stops the run right away, and nothing is charged. |
| **Language** | select | `English` | The language of the searches. Must be available for the chosen country (for example, United States offers English and Spanish). An unsupported combination stops the run right away, with the list of available languages, and nothing is charged. |

#### How lines are cleaned up

| You enter | Sent as | Type |
|---|---|---|
| `dataforseo.com` | `dataforseo.com` | domain |
| `https://www.CNN.com/` | `cnn.com` | domain |
| `blog.example.com` | `blog.example.com` | subdomain |
| `dataforseo.com/apis` | `https://dataforseo.com/apis` | page |
| `https://www.example.com/page#top` | `https://www.example.com/page` | page |
| `not a domain` | — | rejected |

#### Example input

```json
{
  "targets": "dataforseo.com\ncnn.com\nhttps://dataforseo.com/apis",
  "location": "United States",
  "language": "English"
}
```

### Output

One dataset item = one line from your input, after clean-up. The **Output** tab has an **Overview** table: target, type, organic traffic, organic results, paid traffic, paid results and status. It exports to JSON, CSV and Excel.

#### Statuses

| `status` | Meaning | Metrics | Charged |
|---|---|---|---|
| `ok` | Traffic estimate found | filled in | yes |
| `no_data` | No data for the target (usually too little search visibility) | `null` | yes |
| `rejected` | The line is neither a domain nor a URL; `reason` says why | `null` | no |
| `error` | The lookup failed (charged) or never ran, e.g. the run hit its cost limit (not charged); `reason` explains | `null` | see meaning |

#### Example output item

```json
{
  "target": "dataforseo.com",
  "targetType": "domain",
  "location": "United States",
  "language": "English",
  "status": "ok",
  "reason": null,
  "organicEtv": 31087.25,
  "organicCount": 8806,
  "paidEtv": 6.36,
  "paidCount": 6
}
```

### Pricing

This Actor uses **pay-per-event** pricing. Charges are applied **when each batch of targets is sent** — the same moment the underlying data source bills us — not when the results come back. Costs follow your input, so they're predictable before the run finishes.

| Event | When it's charged |
|---|---|
| **Actor start** | Once per run. |
| **Traffic batch** (`traffic-request`) | Once per batch of up to 1,000 targets sent for lookup. Targets are packed 1,000 to a batch, so 2,500 targets make 3 batches. |
| **Target** (`traffic-row`) | Once per target sent in a batch. |

| Targets in a run | Actor start | Traffic batch | Target |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 1,000 | 1 | 1 | 1,000 |
| 10,000 | 1 | 10 | 10,000 |

**No refunds.** Because charges happen when a batch is sent and Apify has no refund mechanism, a target is charged even if it comes back without data (`no_data`) or its batch fails (`error`). This mirrors how the data source bills us.

**You don't pay for:** lines that aren't a domain or URL (`rejected` — never sent), targets the run never got to (`error` with a "Not processed" reason), and duplicates in your list.

**Maximum cost limit.** Before every batch the Actor checks that the batch's price (batch fee + a fee per target) fits in what's left of your run's maximum cost. If it doesn't, the batch is made smaller; if not even one target fits, the run stops and the remaining targets are listed as `error` (not charged).

**Paid Apify plans only.** The Actor runs on paid Apify plans. On the free plan it stops right away without looking anything up and without charging.

### What this Actor does not do

- Google only — no Bing, YouTube or Amazon data.
- No traffic history — only the current estimate.
- No featured snippet or local pack traffic — organic and paid only.
- No list of the keywords a target ranks for.

### FAQ

**Why was `www.` removed from my domain?** The data source expects domains without `https://` and `www.`. Pages keep the URL exactly as you entered it (minus the `#fragment`).

**Why does a target have `no_data`?** The data source has no traffic estimate for it, usually because it ranks for too few keywords in the chosen country. It's still charged, because it was sent for lookup.

**Is ETV the same as real visits?** No — it's a model based on rankings, search volume and click-through rates. Use it to compare sites and track trends, not as an exact visit count.

# Actor input Schema

## `targets` (type: `string`):

The websites to estimate Google traffic for — one per line. Enter a domain or subdomain without `https://` or `www.` (for example `dataforseo.com` or `blog.example.com`), or a page as a full URL (for example `https://dataforseo.com/apis`). A line with a path after the domain is treated as a page; a page without `https://` gets it added. Blank lines are ignored and duplicates are removed after this clean-up, so you never pay twice for the same target. Lines that are neither a domain nor a URL are skipped (and not charged).

**How cost is calculated:** you pay a fixed fee for every batch of up to 1,000 targets, plus a fee for every target sent in it. Targets that come back without data are still charged, because they were sent for lookup. Skipped lines are not sent and not charged.

**Paid Apify plans only:** on the free plan the run ends right away without looking anything up and without charging.

## `location` (type: `string`):

The country whose Google searches the traffic estimate is based on.

## `language` (type: `string`):

The language of the searches. Not every language is available in every country — for example, United States supports English and Spanish. If you pick a combination that isn't supported, the run stops right away with a list of the languages available for your country, and nothing is charged.

## Actor input object example

```json
{
  "targets": "dataforseo.com\ncnn.com\nhttps://dataforseo.com/apis",
  "location": "United States",
  "language": "English"
}
```

# Actor output Schema

## `dataset` (type: `string`):

One item per target. Open the Output tab to browse, or export to JSON, CSV or Excel.

# 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 = {
    "targets": `dataforseo.com
cnn.com
https://dataforseo.com/apis`
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataforseo/traffic-estimation").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 = { "targets": """dataforseo.com
cnn.com
https://dataforseo.com/apis""" }

# Run the Actor and wait for it to finish
run = client.actor("dataforseo/traffic-estimation").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 '{
  "targets": "dataforseo.com\\ncnn.com\\nhttps://dataforseo.com/apis"
}' |
apify call dataforseo/traffic-estimation --silent --output-dataset

```

## MCP server setup

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

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/DVLehba7EOLkuPzEn/builds/IrVkVLZoJBWH40Rqh/openapi.json
