# Competitor Keywords API: Ranked Keywords, Positions & Traffic (`tessellate/competitor-ranked-keywords`) Actor

See every Google keyword a competitor domain or page ranks for: position, URL, estimated traffic, search volume, CPC, keyword difficulty and intent. Up to 10,000 keywords per domain in 55 countries. $2 per 1,000 keywords + $0.03 per domain.

- **URL**: https://apify.com/tessellate/competitor-ranked-keywords.md
- **Developed by:** [Mia Os](https://apify.com/tessellate) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 ranked keywords

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Competitor Keywords API: Ranked Keywords, Positions & Traffic

See the Google keywords any competitor domain, subdomain or page ranks for: **position, ranking URL, estimated traffic, search volume, CPC, keyword difficulty and intent**. Up to **10,000 keywords per domain** and 100 domains per run, in **55 countries**. No SEO tool subscription or API key needed.

Built for SEO agencies, content teams, PPC specialists, developers and AI agents. Export JSON, CSV or Excel, or connect n8n, Make or the Apify MCP server.

**Pricing:** $0.002 per ranked keyword returned ($2 per 1,000) plus $0.03 per domain looked up. Paid Apify plans pay less per keyword, down to $1.70 per 1,000. Invalid domains are free. Set a maximum cost per run to cap spending. Free Apify plan: try one domain with up to 50 keywords.

- **Simple, predictable pricing.** One event per ranked keyword row and one per domain; invalid domains and failed lookups are free.
- **Best keywords first.** Sort by estimated traffic, search volume or position, and cut the list with `maxKeywordsPerDomain`, `maxPosition` (e.g. top 10) and `minSearchVolume`.
- **Domains or single pages.** `example.com` analyzes the whole domain, `example.com/pricing` only that page.
- **Positions from a database of Google results, with the check date on every row** (`serpCheckedAt`), not a live rank tracker.
- **Organic, ads, featured snippets, local pack and Google AI Overview citations.**
- **Lost keywords too.** `keywordStatus: "lost"` lists keywords a domain used to rank for and has lost, so you can see where its traffic went.
- **Built for AI agents and automations.** Every output field is described in the dataset schema, and every row has the same fields.

Need search volume for your own keyword list instead? Use [Google Keyword Search Volume API: Bulk CPC, Difficulty, Intent](https://apify.com/tessellate/keyword-search-volume-difficulty) by the same author.

### Use cases

- **Find a competitor's best topics.** Sort by `estimatedTraffic` and filter by low `keywordDifficulty` to find keywords a competitor gets traffic from that you could rank for.
- **Find content gaps.** Run your domain and a competitor's, then compare the keyword lists in a spreadsheet.
- **See which page earns what.** `url` shows the ranking page for every keyword; analyze one page by passing its URL.
- **Track AI Overview citations.** Set `resultTypes` to `["ai_overview_reference"]` to see the queries where Google's AI Overview cites a domain.
- **Find lost rankings.** Run your own domain with `keywordStatus: "lost"` to see keywords you no longer rank for, sorted by the traffic they brought.
- **Spot AI Overview risk.** `serpFeatures` shows when a results page has an `ai_overview`, which takes clicks from organic results.
- **Estimate a competitor's search budget.** `trafficCostUsd` is what the same traffic would cost in Google Ads.
- **Feed AI agents.** An agent can ask "what does example.com rank for in Germany?" through MCP and get compact, typed rows.

### Input

| Field | Description |
|---|---|
| `domains` | Domains, subdomains or page URLs, up to 100 unique per run. `https://` and `www.` are removed for domains; anything with a path is analyzed as a single page. |
| `country` | Two-letter country code, e.g. `US`, `DE`, `PL`, `JP`. The default is `US`. See [Supported countries](#supported-countries). |
| `language` | Optional. One of the languages available for the country, e.g. `en` or `es` for the US. Leave it empty for the country's main language. |
| `maxKeywordsPerDomain` | 1 to 10,000, default 100. The most important keywords according to `sortBy` are kept. |
| `maxPosition` | Only keywords where the domain ranks at this position or better, e.g. `10` for the first page. Default 100. |
| `minSearchVolume` | Only keywords with at least this many monthly searches. Default 0. |
| `sortBy` | `traffic` (default), `searchVolume` or `position`. |
| `keywordStatus` | `live` (default): keywords the domain ranks for now. `lost`: keywords it ranked for before but not at the last check. `all`: both, with `isLost` on every row. |
| `resultTypes` | Any of `organic` (default), `paid`, `featured_snippet`, `ai_overview_reference`, `local_pack`. |
| `includeTrend` | Adds `monthlySearches` for the last 12 months. The default is `false` for compact rows. |

```json
{
    "domains": ["backlinko.com", "ahrefs.com/blog"],
    "country": "US",
    "maxKeywordsPerDomain": 200,
    "maxPosition": 10
}
```

### Output

One dataset row per ranked keyword, plus one free row for each domain without data or rejected. A real row for `backlinko.com` in the US (November 2026):

```json
{
    "domain": "backlinko.com",
    "keyword": "google trends",
    "status": "ok",
    "position": 9,
    "absolutePosition": 12,
    "previousAbsolutePosition": 55,
    "isNew": false,
    "isLost": false,
    "resultType": "organic",
    "serpFeatures": ["organic", "perspectives", "video", "related_searches"],
    "url": "https://backlinko.com/hub/content/google-trends",
    "title": "Google Trends: What Is It & How to Use It for SEO",
    "estimatedTraffic": 2991.91,
    "trafficCostUsd": 35663.55,
    "searchVolume": 368000,
    "trendYearlyPct": -33,
    "monthlySearches": null,
    "cpc": 11.92,
    "competition": 0.03,
    "competitionLevel": "LOW",
    "keywordDifficulty": 54,
    "intent": "informational",
    "country": "US",
    "language": "en",
    "error": null,
    "serpCheckedAt": "2026-07-30T03:29:35.000Z",
    "fetchedAt": "2026-11-10T20:24:40.363Z"
}
```

| Field | Meaning |
|---|---|
| `status` | `ok`: a ranked keyword (billed). `no_data`: the domain has no ranked keywords for this country, language and filters (free). `invalid`: the domain was rejected, see `error` (free). |
| `position` | Position among results of the same type, as people count them on the page. |
| `absolutePosition` / `previousAbsolutePosition` | Position among all elements on the page (ads, snippets and other features included), now and at the previous check. |
| `isNew` | `true` when the domain started ranking for the keyword since the previous check. |
| `isLost` | `true` when the domain ranked for the keyword before but not at the last check (with `keywordStatus` `lost` or `all`). |
| `serpFeatures` | Result types on the whole Google results page, e.g. `organic`, `ai_overview`, `people_also_ask`, `featured_snippet`, `video`. |
| `url`, `title` | The ranking page and its title in Google. |
| `estimatedTraffic` | Estimated monthly visits from this keyword, from search volume and the click-through rate at this position. |
| `trafficCostUsd` | Estimated monthly cost of the same traffic in Google Ads, in USD. |
| `trendYearlyPct` | Change of the keyword's search volume over the last year, in percent. |
| `searchVolume`, `monthlySearches` | Average monthly searches over the last 12 months, and the monthly history when `includeTrend` is `true`. Volumes are estimates. |
| `cpc`, `competition`, `competitionLevel` | Google Ads cost per click in USD, and paid competition from 0 to 1 and `LOW` / `MEDIUM` / `HIGH`. |
| `keywordDifficulty` | Organic ranking difficulty from 0 to 100. |
| `intent` | `informational`, `navigational`, `commercial` or `transactional`. |
| `serpCheckedAt` | When the data source last checked this Google results page, in ISO 8601. This is how fresh the position is. |
| `fetchedAt` | When this run retrieved the data. |

**How fresh are the positions?** They come from the data source's database of Google results, not from a live check, so this is not a real-time rank tracker. Each results page is re-checked on its own schedule: in our own test of 30 rows (November 2026), the checks were from 7 to 103 days old, about two months for a typical row. `serpCheckedAt` shows the date for every row; filter or sort by it when freshness matters.

**Estimated traffic is an estimate.** `estimatedTraffic` and `trafficCostUsd` are the data source's model, based on search volume and the typical click-through rate at that position. Use them to compare keywords and domains, not as exact visits. For `ai_overview_reference` rows the model can give values above the keyword's search volume, so treat them as relative only.

The run also saves a `SUMMARY` record to the key-value store. It is updated after every page (`inProgress: true`), so even a run stopped by a timeout shows how far it got, and it is kept when a run fails part-way (then with `failed: true` and `error`):

| Field | Meaning |
|---|---|
| `keywords`, `chargedRankedKeywords`, `chargedDomainLookups` | Ranked keywords delivered, and events actually billed. |
| `domainsWithData`, `domainsWithoutData`, `invalidDomains`, `duplicatesRemoved` | Domain counts by outcome. |
| `domainsSkippedByChargeLimit`, `stoppedByChargeLimit` | Domains not looked up because your maximum cost per run was reached. |
| `domainsSkippedByFreePlan`, `keywordLimitPerDomain` | Free-plan limits applied to this run. |
| `domains` | Per domain: `status`, `totalRankedKeywords` (all keywords the domain ranks for with your filters), `returned`, `organicTraffic`, `top3`, `top10`. |

### Pricing

Pay per event:

- **`ranked-keyword`** ($0.002): one per ranked keyword row (`status: "ok"`).
- **`domain-lookup`** ($0.03): one per domain or page looked up, also when it turns out to have no ranked keywords (a `no_data` row), because every lookup has a fixed cost at the data source. It is charged once per domain, not per page of results, and never for an `invalid` domain or a lookup that failed.

| Example | Cost |
|---|---|
| 1 domain, top 20 keywords | $0.07 |
| 1 domain, 1,000 keywords | $2.03 |
| 5 competitors, 200 keywords each | $2.15 |
| A domain without data | $0.03 |
| An invalid domain | $0.00 |

If you set a maximum cost per run, the actor checks it before every request: a domain is started only when the budget covers its lookup and at least one keyword, and it fetches only as many keywords as fit. Domains it did not reach are listed in `SUMMARY` and are not charged.

**Free Apify plan:** runs are a trial of one domain with up to 50 keywords, with a limited number of trial runs per day. If the daily limit cannot be checked, the trial run is refused (and not charged) rather than run without a limit.

### Use with AI agents (MCP)

AI agents such as Claude, ChatGPT or Cursor can call this actor through the [Apify MCP server](https://mcp.apify.com). Add it as a tool with `tools=tessellate/competitor-ranked-keywords`.

- The only required input is `domains`. Pass `country` as a two-letter code.
- Keep `maxKeywordsPerDomain` at 20 to 100 and `includeTrend` off for compact answers.
- Set a maximum cost per run (`maxTotalChargeUsd`). The actor stops at that budget, and you are not charged for domains or keywords it did not fetch.

### Supported countries

Pass the two-letter code in `country`. If you leave `language` empty, the first language listed for the country is used.

| Region | Countries (languages shown when there is more than one) |
|---|---|
| North America | US (en/es), CA (en/fr), MX |
| Latin America | BR, AR, CO, CL, PE |
| Europe | GB, IE, PL, UA (uk/ru), CZ, SK, HU, RO, BG, HR, SI, RS, LT, LV, EE, DE, AT, CH (de/fr/it), FR, BE (nl/fr/de), NL, ES, PT, IT, GR (el/en), SE, NO, DK, FI, TR |
| Asia-Pacific | JP, KR, TW, HK (zh-TW/en), SG (en/zh-CN), MY (en/ms), ID (id/en), TH, VN (vi/en), PH (en/tl), IN (en/hi), AU, NZ |
| Middle East & Africa | AE (en/ar), SA (ar/en), IL (he/ar), ZA |

Smaller sites often rank for few keywords in smaller markets; such domains come back as a free `no_data` row.

### Limits and errors

- Up to 1,000 items in `domains` per run, of which up to 100 unique. Internationalized domains such as `żabka.pl` are supported.
- `includeTrend` must be `true` or `false`, and the numeric options must be whole numbers; a string such as `"500"` is rejected rather than guessed.
- If the data source rejects one domain, that domain gets an `invalid` row and the run continues. If the data source fails for another reason after several retries, the run stops with a clear message: keywords already delivered stay in the dataset and were billed, nothing after that point is charged, and `SUMMARY` records how far the run got.

# Actor input Schema

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

Domains, subdomains or page URLs to analyze, e.g. \["ahrefs.com", "blog.example.com", "example.com/pricing"]. Up to 100 unique per run. https:// and www. are removed for domains; a URL with a path is analyzed as a single page. Invalid domains are returned with status invalid and are not billed; every other domain is billed one domain-lookup event.

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

Two-letter uppercase ISO 3166-1 country code of the Google market, e.g. US, GB, DE, PL, JP or BR. Defaults to US. See the README for all 55 countries.

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

Optional language code. It must be one of the languages available for the selected country, e.g. en or es for the US, de, fr or it for Switzerland, zh-TW for Taiwan (Norwegian is nb). Leave empty to use the main language of the selected country.

## `maxKeywordsPerDomain` (type: `integer`):

Maximum ranked keywords returned (and billed) per domain, best first according to sortBy. 1 to 10,000. Keep it low for quick checks; AI agents usually need 20-100. The free Apify plan returns up to 50 for one domain.

## `maxPosition` (type: `integer`):

Only return keywords where the domain ranks at this position or better, e.g. 10 for the first page, 3 for the top 3. 1 to 100.

## `minSearchVolume` (type: `integer`):

Only return keywords with at least this many monthly Google searches, e.g. 100. 0 returns all.

## `sortBy` (type: `string`):

Which keywords come first and are kept when maxKeywordsPerDomain cuts the list: traffic (estimated monthly visits, default), searchVolume or position.

## `keywordStatus` (type: `string`):

live (default): keywords the domain ranks for now. lost: keywords it ranked for before but not at the last check, useful to find lost traffic. all: both, with isLost on every row.

## `resultTypes` (type: `array`):

Which Google result types to include: organic (default), paid, featured_snippet, ai_overview_reference (pages cited in AI Overviews) and local_pack.

## `includeTrend` (type: `boolean`):

Adds monthlySearches with search volume for each of the last 12 months. Off by default to keep rows compact, recommended for AI agents and large lists.

## Actor input object example

```json
{
  "domains": [
    "backlinko.com"
  ],
  "country": "US",
  "maxKeywordsPerDomain": 20,
  "maxPosition": 100,
  "minSearchVolume": 0,
  "sortBy": "traffic",
  "keywordStatus": "live",
  "resultTypes": [
    "organic"
  ],
  "includeTrend": false
}
```

# Actor output Schema

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

One row per ranked keyword with position, URL, estimated traffic and keyword metrics.

## `summary` (type: `string`):

Per-domain totals: ranked keywords in total, returned, organic traffic, top-3 and top-10 counts.

# 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": [
        "backlinko.com"
    ],
    "maxKeywordsPerDomain": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("tessellate/competitor-ranked-keywords").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": ["backlinko.com"],
    "maxKeywordsPerDomain": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("tessellate/competitor-ranked-keywords").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": [
    "backlinko.com"
  ],
  "maxKeywordsPerDomain": 20
}' |
apify call tessellate/competitor-ranked-keywords --silent --output-dataset

```

## MCP server setup

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

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/aiECHRafVUsDRvBjJ/builds/2fHVGMpsPyRmdcyir/openapi.json
