# Find keywords a site almost ranks on page one for

**Use case:** 

The 'striking distance' keywords of any domain: positions 4 to 20 with at least 100 searches a month, with the ranking page for each. The quickest SEO wins are usually here. Filtered before you pay.

## Input

```json
{
  "domains": [
    "heathceramics.com"
  ],
  "country": "US",
  "maxKeywordsPerDomain": 300,
  "minSearchVolume": 100,
  "minPosition": 4,
  "maxPosition": 20,
  "includeCompetitors": false,
  "maxCompetitors": 10,
  "failOnErrors": false
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "keyword": {
    "label": "Keyword",
    "format": "string"
  },
  "position": {
    "label": "Position",
    "format": "integer"
  },
  "url": {
    "label": "Ranking URL",
    "format": "string"
  },
  "searchVolume": {
    "label": "Search volume",
    "format": "integer"
  },
  "cpc": {
    "label": "CPC (USD)",
    "format": "number"
  },
  "competition": {
    "label": "Competition (0-1)",
    "format": "number"
  },
  "keywordDifficulty": {
    "label": "Difficulty",
    "format": "integer"
  },
  "intent": {
    "label": "Intent",
    "format": "string"
  },
  "estimatedTraffic": {
    "label": "Est. traffic",
    "format": "number"
  },
  "serpFeatures": {
    "label": "SERP features",
    "format": "array"
  },
  "rankChange": {
    "label": "Change",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "rowType": {
    "label": "Row type",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Competitor Keyword Research: Ranked Keywords API](https://apify.com/meridianlabs/competitor-keywords.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/meridianlabs/competitor-keywords.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/meridianlabs/competitor-keywords.md

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`).
