# Ranked Keywords Checker - Domain Keywords & Keyword Gap (`smart-digital/ranked-keywords-checker`) Actor

Get the Google keywords any domain or page ranks for, with position, ranking URL, search volume, CPC, difficulty, intent and estimated traffic, plus a free domain overview. Or the keyword gap: the competitor keywords your site does not rank for. Invalid or non-existent domains are never charged.

- **URL**: https://apify.com/smart-digital/ranked-keywords-checker.md
- **Developed by:** [My Smart Digital](https://apify.com/smart-digital) (community)
- **Categories:** SEO tools, Marketing, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 keywords

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

## Ranked Keywords Checker - Domain Keywords & Keyword Gap

Give a list of domains, subdomains or page addresses. Get back **the Google keywords each one ranks
for**, one row per keyword: its **position**, the **page that ranks**, the monthly **search volume**,
the **CPC**, the **keyword difficulty**, the **search intent** and the **estimated traffic** it brings.
Each domain also gets an **overview** in the same run, at no extra charge: how many keywords it ranks
for, how many in the top 3 and the top 10, its estimated monthly traffic and what that traffic would
cost in ads, and how many keywords are new, rising or falling.

Or switch to **keyword gap**: give your own domain, and get the keywords each competitor ranks for and
your site does not, with the competitor's page for each one.

***

### Who it's for

- **SEO freelancers and agencies** researching a client's competitors, or auditing a client's own
  keywords, without a subscription to an SEO suite.
- **Content marketers and site owners** looking for what to write next: the keyword gap lists the
  searches that bring traffic to a competitor and not to you, sorted by that traffic.
- **Anyone sizing a website** before a deal, a partnership or a sponsored post: keyword count, top 10
  and estimated traffic in one row per domain.
- **Developers and AI agents** that send domains through the Apify API and need the same regular rows
  back every time.

***

### Why this one

1. **The overview comes free with the keywords.** The lookup that returns the keywords also returns the
   overview of the domain: it is written on the domain row and never charged on top. apify.com in
   November 2026, in Google United States: 36,652 organic keywords, 8,643 of them in the top 10, an
   estimated 211,364 visits a month.
2. **The keyword gap in the same actor, one lookup per competitor.** With `mode: "gap"` and your domain
   in `yourDomain`, each competitor of the list returns the keywords it ranks for and your domain does
   not, sorted by the traffic they bring to the competitor. Measured in November 2026: scrapingbee.com
   ranked for 3,388 keywords in Google United States that zyte.com did not rank for.
3. **Filters at the source, nothing charged for nothing.** The volume, position, difficulty, intent and
   brand filters are applied by the keyword database before anything comes back, so you pay only for
   the keywords you keep. An entry that is not a domain, a domain repeated in your list
   (`example.com` and `https://www.example.com/`), a domain that does not exist in DNS, a lookup the
   data source failed to answer and anything past your maximum charge are **free**, and each gets a row
   saying why. No start fee, no per-row platform fee: you pay for domains checked and keywords
   returned, nothing else.

***

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `domains` | array of strings | `["apify.com"]` | Domains, subdomains or page addresses, one per line. Up to **100 domains looked up per run**. `example.com`, `www.example.com` and `https://example.com/` all mean the whole site, its subdomains included. A subdomain (`blog.example.com`) means that subdomain. An address with a path (`https://example.com/blog/post`) means that page only. Through the API, one string with an entry per line or separated by commas works too. |
| `mode` | string | `ranked` | `ranked`: the keywords each entry ranks for, plus its overview. `gap`: the keywords each domain ranks for and `yourDomain` does not. |
| `yourDomain` | string | none | Keyword gap only: your domain (`example.com`) or one of its subdomains. If it is missing or does not exist in DNS, the run stops before anything is looked up or charged. |
| `maxKeywordsPerDomain` | integer | `100` | The most keywords returned per entry, from 1 to 10,000. Each keyword is charged, so this caps the cost of a run. |
| `location` | string | `United States` | The Google market, out of 94 countries: positions, search volume, CPC and traffic are measured there. |
| `language` | string | `auto` | The language of the searches. Automatic picks the country's main language. Countries with several languages, such as Canada, Belgium or Switzerland, accept each of them; any other pair stops the run before anything is charged. |
| `sortBy` | string | `traffic` | Which keywords come first, and so which ones you get when there are more than your maximum. `traffic`: most estimated traffic first. `volume`: highest search volume first. `position`: best position first. |
| `minSearchVolume` | integer | `0` | Keep only keywords searched at least this many times a month. |
| `maxPosition` | integer | `100` | Keep only keywords where the entry ranks at this position or better (10 = the first page). |
| `maxKeywordDifficulty` | integer | `100` | Keep only keywords with a difficulty up to this score, from 0 to 100. Below 100, keywords without a difficulty score are left out. |
| `searchIntents` | array of strings | `[]` | Keep only keywords whose main intent is one of `informational`, `navigational`, `commercial`, `transactional`. Empty keeps every intent. |
| `excludeBrandKeywords` | boolean | `false` | Leave out the keywords that contain the domain's name as a whole word (`zyte` for zyte.com: "zyte api", "what is zyte"), and the words of `extraBrandTerms`. Names shorter than 3 letters are only used when added there. |
| `extraBrandTerms` | array of strings | none | With the option above: more brand words for every domain of the run, such as a product or a former name, matched as whole words. Letters, digits, spaces and `- ' & .` only, 20 words at most. |

```json
{
  "domains": ["scrapingbee.com", "brightdata.com"],
  "mode": "gap",
  "yourDomain": "zyte.com",
  "maxKeywordsPerDomain": 500,
  "location": "United States",
  "minSearchVolume": 100,
  "maxKeywordDifficulty": 40,
  "searchIntents": ["informational", "commercial"],
  "excludeBrandKeywords": true
}
```

***

### Output

Each entry gives its keyword rows, **then** its domain row (`rowType: "domain"`), written last so that
its counts, charges included, are final. Every row of a kind has the same fields, whatever happened, so
a run exports to a regular table. The Output tab has two views: Keywords and Domains.

Real rows from a run with the default input on 8 November 2026: one keyword row (its monthly searches
cut to the three latest months), then the domain row of apify.com.

```json
{
  "rowType": "keyword",
  "domain": "apify.com",
  "comparedWith": null,
  "keyword": "tiktok scraper",
  "location": "United States",
  "language": "English",
  "position": 1,
  "positionAbsolute": 1,
  "url": "https://apify.com/clockworks/tiktok-scraper",
  "urlPath": "/clockworks/tiktok-scraper",
  "rankingHost": "apify.com",
  "title": "TikTok Scraper",
  "description": "Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts,",
  "isFeaturedSnippet": false,
  "searchVolume": 880,
  "cpc": 4.39,
  "competition": 0.32,
  "competitionLevel": "LOW",
  "lowTopOfPageBid": 1.38,
  "highTopOfPageBid": 8.21,
  "keywordDifficulty": 8,
  "searchIntent": "transactional",
  "otherIntents": ["informational"],
  "estimatedTraffic": 456.07,
  "trafficValueUsd": 2002.13,
  "previousPositionAbsolute": 1,
  "isNew": false,
  "isUp": false,
  "isDown": false,
  "serpResults": 193,
  "serpFeatures": ["organic", "related_searches"],
  "serpCheckedAt": "2026-08-01T08:53:01Z",
  "previousSerpCheckedAt": "2026-05-19T04:11:09Z",
  "googleSearchUrl": "https://www.google.com/search?q=tiktok%20scraper&hl=en&gl=US&ie=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
  "searchVolumeTrend": { "monthly": -18, "quarterly": -46, "yearly": -56 },
  "monthlySearches": [
    { "year": 2026, "month": 9, "searchVolume": 320 },
    { "year": 2026, "month": 8, "searchVolume": 390 },
    { "year": 2026, "month": 7, "searchVolume": 590 }
  ],
  "keywordDataUpdatedAt": "2026-10-19T01:54:20Z",
  "collectedAt": "2026-11-08T00:37:01.571Z"
}
```

```json
{
  "rowType": "domain",
  "input": "apify.com",
  "domain": "apify.com",
  "targetType": "site",
  "mode": "ranked",
  "comparedWith": null,
  "location": "United States",
  "language": "English",
  "status": "checked",
  "reason": null,
  "duplicateOf": null,
  "overviewScope": "all_organic",
  "organicKeywords": 36652,
  "top3Keywords": 2206,
  "top10Keywords": 8643,
  "positionDistribution": {
    "1": 675, "2-3": 1531, "4-10": 6437, "11-20": 9823, "21-30": 6495, "31-40": 4644,
    "41-50": 3022, "51-60": 1878, "61-70": 1137, "71-80": 541, "81-90": 336, "91-100": 133
  },
  "estimatedTraffic": 211364.24,
  "trafficValueUsd": 790857.84,
  "newKeywords": 25174,
  "risingKeywords": 5529,
  "fallingKeywords": 4869,
  "keywordsRequested": 100,
  "keywordsReturned": 100,
  "matchingKeywords": 36652,
  "keywordsLimitedBy": "maxKeywordsPerDomain",
  "domainCharged": true,
  "keywordsCharged": 100,
  "collectedAt": "2026-11-08T00:37:01.782Z"
}
```

#### Keyword rows (`rowType: "keyword"`)

| Field | Meaning |
|---|---|
| `domain` | The entry as looked up: a bare domain or subdomain, or the full address of a page. |
| `comparedWith` | Keyword gap mode: your domain, which does not rank for this keyword. `null` in ranked mode. |
| `keyword` | The search. |
| `location`, `language` | The Google market of the row. |
| `position`, `positionAbsolute` | The position among the organic results, and among every element of the results page (ads, videos, "People also ask"...). |
| `url`, `urlPath`, `rankingHost` | The page that ranks, its path, and its host name. A domain covers its subdomains, so `rankingHost` can be `blog.example.com`. |
| `title`, `description` | The title and the snippet of that result. |
| `isFeaturedSnippet` | The result is the featured snippet at the top of the page. |
| `searchVolume` | Average monthly searches over the last 12 months. |
| `monthlySearches` | Searches month by month over the last 12 months, newest first. |
| `searchVolumeTrend` | Change in searches, in percent, against the previous month, quarter and year. |
| `cpc` | Average cost per click advertisers paid, in US dollars. `null` when the database has no ad data for the keyword. |
| `lowTopOfPageBid`, `highTopOfPageBid` | The low and high bids for an ad at the top of the first page, in US dollars. |
| `competition`, `competitionLevel` | Advertiser competition in Google Ads, from 0 to 1, and `LOW`, `MEDIUM` or `HIGH`. |
| `keywordDifficulty` | How hard it is to reach the top 10 organic results, from 0 to 100. |
| `searchIntent`, `otherIntents` | The main intent of the search (`informational`, `navigational`, `commercial`, `transactional`), and the secondary ones. |
| `estimatedTraffic` | Estimated monthly visits this result gets from the keyword. |
| `trafficValueUsd` | What that traffic would cost in Google Ads each month, in US dollars. `null` without a CPC. |
| `previousPositionAbsolute`, `isNew`, `isUp`, `isDown` | The position at the previous check of the results page, and whether the result is new there, or has moved up or down since. |
| `serpResults` | The number of search results the data source reports for the keyword. |
| `serpFeatures` | The kinds of elements on the results page: `organic`, `paid`, `people_also_ask`, `video`, `images`, `ai_overview`, `knowledge_graph`... |
| `serpCheckedAt`, `previousSerpCheckedAt` | When the database last checked the results page, and the time before. The position is the one of `serpCheckedAt`. |
| `googleSearchUrl` | The Google search the database checked, to look at it yourself. |
| `keywordDataUpdatedAt` | When the volume, CPC and competition of the keyword were last updated. |
| `collectedAt` | When this row was produced. |

#### Domain rows (`rowType: "domain"`)

| Field | Meaning |
|---|---|
| `input`, `domain`, `targetType` | The entry as you typed it, the form looked up, and `site` or `page`. |
| `mode`, `comparedWith`, `location`, `language` | The settings of the run for this entry. |
| `status`, `reason`, `duplicateOf` | What happened to this entry (table below), why in plain words, and the earlier entry a repeat points to. |
| `overviewScope` | `all_organic`: the overview covers every organic keyword of the entry in the market. `matching_filters`: only the keywords that match your filters. `null` in keyword gap mode, which has no overview. |
| `organicKeywords`, `top3Keywords`, `top10Keywords` | The keywords of the overview, and how many of them rank in the top 3 and in the top 10. |
| `positionDistribution` | The same keywords by position band: 1, 2-3, 4-10, 11-20 and so on to 91-100. |
| `estimatedTraffic`, `trafficValueUsd` | Their estimated monthly traffic, and what it would cost in Google Ads, in US dollars. |
| `newKeywords`, `risingKeywords`, `fallingKeywords` | Keywords new, up or down since the previous check of their results page. |
| `keywordsRequested`, `keywordsReturned`, `matchingKeywords` | Keywords asked for, keywords returned, and keywords the database holds for your mode and filters. |
| `keywordsLimitedBy` | Why fewer keywords came back than the database holds: `maxKeywordsPerDomain` (your maximum), `freePlan`, `maxCharge`, `monthlyDataLimit`, `timeLimit` or `dataSource`. `null` when you got them all. |
| `domainCharged`, `keywordsCharged` | Whether this entry was charged, and how many of its keywords. |

#### What `status` tells you

| Value | Meaning | Charged |
|---|---|---|
| `checked` | The lookup answered. Also when the database holds no keyword for the entry: the row says so. | Once per entry, plus its keywords |
| `invalid` | Not a domain or a web address: text with spaces, an IP address, a scheme other than http or https, more than 2,048 characters, or an entry the data source refuses. In keyword gap mode, also a page address, or your own domain. | No |
| `duplicate` | The same entry as an earlier one, written another way. | No |
| `not_found` | The domain does not exist in DNS: not registered, or expired. Never sent to the data source. | No |
| `not_collected` | Not looked up, and `reason` says why: past the 100 domains of a run, the Apify free plan, your maximum charge, the run's time limit, the data source not answering or refusing the filters, or the actor's monthly limit of keyword data. | No |

Each run also writes a `RUN_SUMMARY` record to its key-value store: the number of entries per status,
the keywords returned, the domains and keywords charged, and `dataSourceCalls`, the lookups paid at the
data source (one per page of up to 1,000 keywords).

***

### Seven things about keyword data that are easy to get wrong

**Positions are not checked live.** They come from a keyword database that rechecks each results page
every few weeks to months, and every row carries `serpCheckedAt`, the date of its check. On apify.com
on 8 November 2026, 61 of the first 100 keywords had last been checked in July, 11 in August and 28
in September. A page published last week may not be there yet.

**`searchVolume` is a yearly average in rounded steps.** "tiktok scraper" shows 880 searches a month
while its latest month counted 320. Read `monthlySearches` and `searchVolumeTrend` before you plan
around a single number.

**Estimated traffic is a model, and one keyword can carry most of it.** It comes from the search
volume and the share of clicks expected at the position, not from visits measured on the site. On
apify.com, one keyword ranking 3rd for 2.24 million monthly searches made 144,474 of the 168,260
estimated visits of the first 100 keywords (86 %). Sort by `volume`, or set `maxPosition`, to see
past it.

**"New" means new since the previous check, months ago.** `isNew`, `isUp` and `isDown` compare the
two latest checks of the results page (`previousSerpCheckedAt`, `serpCheckedAt`): for apify.com,
mostly May against July to September 2026. Half of its first 100 keywords were new on that scale.
They tell you how a site moved over a season, not this week.

**Brand keywords can make most of a competitor's traffic.** 11 of the first 100 keywords of zyte.com
contained "zyte" and brought 60 % of the estimated traffic of those 100: traffic nobody else can win.
`excludeBrandKeywords` leaves them out at the source, before anything is charged. Only the domain's
name is matched, as a whole word, so add former names and product names in `extraBrandTerms`
(`crawlera` and `scrapinghub` for zyte.com).

**A domain covers its subdomains.** `example.com` returns the keywords of `www.`, `blog.`, `docs.`
and the others together: on apify.com, 5 of the first 100 keywords ranked with console.apify.com,
docs.apify.com, blog.apify.com or mcp.apify.com. `rankingHost` says which. Look up `blog.example.com`
alone to get that subdomain only.

**The overview follows your filters.** With no filter it covers every organic keyword of the entry
in the market; with a filter, only the keywords that match it, and `overviewScope` says which. zyte.com
had 1,077 organic keywords with no filter, and 226 with a minimum volume, a worst position, a maximum
difficulty, two intents and its brand left out.

***

### Limits, stated plainly

- **Apify free plan: one domain and 20 keywords per run.** The domain row says so, and so does the
  run's status message. Any paid Apify plan removes this limit.
- **100 domains looked up per run, up to 10,000 keywords each.** Domains past the first 100 come back
  `not_collected`, free: run them in a second run. Lists longer than 1,000 entries are cut at 1,000,
  and the status message says so.
- **Google organic results only.** Ads and other kinds of results are left out of the keyword rows,
  and `position` counts organic results only (`positionAbsolute` counts everything on the page). No
  other search engine.
- **The keyword gap compares domains or subdomains, not pages**, each one against your domain, and has
  no overview. To study a single page, look it up in `ranked` mode.
- **No competitor discovery, no history.** You give the domains to look up. Positions go back to the
  previous check of each results page, no further.
- **No keyword language field.** The database's own language detection is wrong on short keywords (in
  November 2026 it marked "zyte" as German and "python json" as Czech), so it is left out: `language`
  is the language of the market you chose.
- **A monthly limit of keyword data.** If the actor reaches it, domains come back `not_collected`,
  free, until the 1st of the next month (UTC), and the run says so.

***

### Cost

Two events, both in the Pricing section of this page:

- **a domain checked**: once per domain, subdomain or page whose lookup answered, its overview
  included, also when it ranks for no keyword. In keyword gap mode, once per domain compared with
  yours;
- **a keyword returned**: one keyword row.

Domain rows, error rows and keywords past your maximum are free, and so is every entry that is
invalid, repeated, not found in DNS or not looked up. With the prices shown in November 2026 ($0.03
per domain checked, $0.0015 per keyword), one domain with its overview and 100 keywords costs
**$0.18**, 1,000 keywords **$1.53**, and 20 domains with 20 keywords each **$1.20**. The domain charge
is the same for 1 keyword or 10,000, so the cost per keyword falls as you ask for more.

To cap a run, set a maximum cost per run in the run options (`maxTotalChargeUsd` through the API).
The run reads it before each domain and looks up only as many keywords as it can still pay for. It
never charges past it: the domains it could not afford come back `not_collected`, free.

No browser is involved, so runs are quick: in our tests, runs of one or two domains with up to 2,577
keywords finished in under 8 seconds.

***

### Typical uses

- **Competitor research.** Run your main competitors with `maxPosition: 10`: the keywords that bring
  them traffic from the first page of Google, and the page of theirs that ranks for each.
- **Content planning from the keyword gap.** `gap` mode against your domain, with
  `excludeBrandKeywords` and `searchIntents: ["informational", "commercial"]`: the topics your
  competitors get traffic on and you do not, with their page to read before you write yours.
- **Sizing a list of sites.** With `maxKeywordsPerDomain: 1`, the domain row of each site gives its
  keyword count, top 10 and estimated traffic, for $0.0315 per domain.
- **Feeding a spreadsheet, a pipeline or an AI agent.** Regular rows with the same fields every time,
  joined back to your list on `input` or `domain`.

# Actor input Schema

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

One per line, up to 100 per run. A domain (example.com, also covers its subdomains), www.example.com or its home page all mean the whole site; a subdomain (blog.example.com) means that subdomain; a full address with a path (https://example.com/blog/post) means that page only. A domain repeated in the list is looked up and charged once, and a domain that does not exist in DNS is not looked up nor charged.

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

Ranked keywords: every keyword each domain ranks for in Google, with its position and ranking page, plus a free overview of the domain. Keyword gap: the keywords each domain ranks for and your domain (below) does not, the content and keyword ideas you are missing against a competitor.

## `yourDomain` (type: `string`):

Keyword gap mode: your own domain (example.com). Each domain of the list is compared with it, and only the keywords it ranks for and yours does not are returned. Ignored in Ranked keywords mode.

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

The most keywords returned for each domain, in the order chosen below. Each keyword is charged, so this caps the cost of a run.

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

The country of the Google results: positions, search volume, cost per click and traffic are measured there.

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

The language of the searches. Leave on automatic to use the country's main language (English for the United States, French for France). Countries with several languages, such as Canada, Belgium or Switzerland, accept each of them; any other combination stops the run before any keyword is looked up or charged.

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

Which keywords come first, and so which ones you get when there are more than the maximum.

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

Keep only keywords searched at least this many times a month. 0 keeps everything. Applied before anything is charged.

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

Keep only keywords where the domain ranks at this position or better (10 = the first page of results). 100 keeps everything.

## `maxKeywordDifficulty` (type: `integer`):

Keep only keywords with a difficulty up to this score (0 to 100, how hard it is to reach the top 10). 100 keeps everything; below 100, keywords without a difficulty score are left out.

## `searchIntents` (type: `array`):

Keep only keywords whose main intent is one of these. Leave empty to keep every intent.

## `excludeBrandKeywords` (type: `boolean`):

Leave out the keywords that contain the name of the domain as a whole word (zyte for zyte.com: "zyte api", "what is zyte"), and the extra brand words below. Names shorter than 3 letters are only used when added below.

## `extraBrandTerms` (type: `array`):

With the option above: more words to treat as brand for every domain of the run, such as a product or a former name (crawlera, scrapinghub). Matched as whole words; letters, digits, spaces, - ' & and . only, 20 words at most.

## Actor input object example

```json
{
  "domains": [
    "apify.com"
  ],
  "mode": "ranked",
  "maxKeywordsPerDomain": 100,
  "location": "United States",
  "language": "auto",
  "sortBy": "traffic",
  "minSearchVolume": 0,
  "maxPosition": 100,
  "maxKeywordDifficulty": 100,
  "searchIntents": [],
  "excludeBrandKeywords": false
}
```

# Actor output Schema

## `keywords` (type: `string`):

One row per keyword: position, ranking page, search volume, CPC, difficulty, intent, estimated traffic.

## `domains` (type: `string`):

One row per domain or page asked for: status, overview, keywords returned and matching.

## `allFields` (type: `string`):

Every field of every row.

# 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": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("smart-digital/ranked-keywords-checker").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": ["apify.com"] }

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

```

## MCP server setup

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

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/jmZYDGWFK01QucaHt/builds/yh1G5lasYxZUDsQtL/openapi.json
