# Call a keyword search volume API from your code

**Use case:** 

Search volume, CPC, competition and difficulty as an API: call this task from Python, JavaScript, n8n, Make or an AI agent and get one JSON row per keyword. No Google Ads account or developer token.

## Input

```json
{
  "keywords": [
    "web scraping",
    "data pipeline",
    "etl tool",
    "vector database",
    "llm api"
  ],
  "country": "US",
  "includeTrends": false,
  "trendsTimeRange": "past_5_years",
  "maxConcurrency": 5,
  "failOnErrors": false
}
```

## Output

```json
{
  "keyword": {
    "label": "Keyword",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "searchVolume": {
    "label": "Monthly searches",
    "format": "integer"
  },
  "trends.momentum": {
    "label": "Trend",
    "format": "string"
  },
  "trends.seasonalPeakMonth": {
    "label": "Seasonal peak",
    "format": "string"
  },
  "cpc": {
    "label": "CPC (USD)",
    "format": "number"
  },
  "competitionLevel": {
    "label": "Competition",
    "format": "string"
  },
  "keywordDifficulty": {
    "label": "Difficulty",
    "format": "integer"
  },
  "searchIntent": {
    "label": "Intent",
    "format": "string"
  },
  "trends.yearOnYearChangePct": {
    "label": "Trends YoY %",
    "format": "integer"
  },
  "searchVolumeTrend.yearlyPct": {
    "label": "Volume YoY %",
    "format": "integer"
  },
  "trends.seasonal": {
    "label": "Seasonal",
    "format": "boolean"
  },
  "trends.peakDate": {
    "label": "Trends peak",
    "format": "string"
  },
  "trends.text": {
    "label": "Trends summary",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Keyword Search Volume & CPC API + Google Trends](https://apify.com/meridianlabs/keyword-search-volume.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/meridianlabs/keyword-search-volume.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/keyword-search-volume.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`).
