# Keyword Extractor API

> Keyword Extractor is a keyword extraction API that scans raw text or live webpage URLs to extract key terms and their frequencies. It returns up to 50 unique keywords, occurrence counts, total keyword volume, and the top five terms with their percentage share.

**Endpoint:** `POST https://api.apiverve.com/v1/keywordextractor`  
**Category:** Text Processing  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/keywordextractor

## Overview

Keyword Extractor works by analyzing the text and extracting the keywords based on their frequency. It uses advanced algorithms to extract the keywords and returns the keywords in a structured format.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/keywordextractor" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Machine learning is a subset of artificial intelligence that enables systems to learn from data. Deep learning uses neural networks to process complex patterns in data."}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to extract keywords from. length 0-50000 |

## Response fields

- `url` — string
- `keywordCount` — number · Number of unique keywords returned, capped at 50
- `topKeyword` — string · The most frequently occurring keyword
- `totalOccurrences` — number · Total sum of all keyword frequencies
- `keywords` — object · Map of each extracted keyword to the number of times it occurred in the text
  - `keywords.email` — number
  - `keywords.address` — number
  - `keywords.mail` — number
  - `keywords.domain` — number
  - `keywords.addresses` — number
  - `keywords.characters` — number
  - `keywords.retrieved` — number
  - `keywords.internet` — number
  - `keywords.message` — number
  - `keywords.validation` — number
  - `topKeywords.0.keyword` — string · The keyword
  - `topKeywords.0.count` — number · How many times the keyword occurs
  - `topKeywords.0.percentage` — number · The keyword's share of all keyword occurrences, as a percentage
  - `keyPhrases.0.phrase` — string · The key phrase, lowercased · (premium)
  - `keyPhrases.0.relevance` — number · How closely the phrase matches the meaning of the whole text, from 0 to 1 · (premium)
  - `keyPhrases.0.count` — number · How many times the phrase occurs in the text · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://en.wikipedia.org/wiki/Email_address",
    "keywordCount": 50,
    "topKeyword": "email",
    "totalOccurrences": 672,
    "keywords": {
      "email": 94,
      "address": 61,
      "mail": 52,
      "domain": 34,
      "addresses": 34,
      "characters": 27,
      "retrieved": 27,
      "internet": 17,
      "message": 15,
      "validation": 12
    },
    "topKeywords": [
      {
        "keyword": "email",
        "count": 94,
        "percentage": 14
      },
      {
        "keyword": "address",
        "count": 61,
        "percentage": 9.1
      },
      {
        "keyword": "mail",
        "count": 52,
        "percentage": 7.7
      },
      {
        "keyword": "domain",
        "count": 34,
        "percentage": 5.1
      },
      {
        "keyword": "addresses",
        "count": 34,
        "percentage": 5.1
      }
    ],
    "keyPhrases": [
      {
        "phrase": "email addresses",
        "relevance": 0.621,
        "count": 5
      },
      {
        "phrase": "mail exchange",
        "relevance": 0.578,
        "count": 4
      },
      {
        "phrase": "email address wikipedia",
        "relevance": 0.574,
        "count": 1
      },
      {
        "phrase": "mail system",
        "relevance": 0.558,
        "count": 2
      },
      {
        "phrase": "smtp",
        "relevance": 0.523,
        "count": 4
      },
      {
        "phrase": "valid email",
        "relevance": 0.512,
        "count": 2
      },
      {
        "phrase": "mail transfer",
        "relevance": 0.491,
        "count": 2
      },
      {
        "phrase": "mailbox host",
        "relevance": 0.463,
        "count": 2
      },
      {
        "phrase": "rfc",
        "relevance": 0.422,
        "count": 5
      },
      {
        "phrase": "domain name",
        "relevance": 0.36,
        "count": 4
      }
    ]
  }
}
```

## Use cases

- **Competitor Webpage Audit** — SEO specialists submit competitor article URLs to see top keyword density and discover which subjects competitors focus on.
- **Editorial CMS Tagging** — When editors draft articles, publishing systems read the returned top terms to auto-suggest relevant tags and taxonomy categories before publication.
- **Support Ticket Categorization** — Classify high-volume helpdesk requests automatically by mapping recurring keywords and frequency counts from incoming ticket text to triage queues.
- **Ad Copy Term Analysis** — Marketing teams check landing pages against prospective ad copy to align top keyword frequencies with targeted search ad campaigns.

## SDKs

- **npm** — `npm install @apiverve/keywordextractor` (https://www.npmjs.com/package/@apiverve/keywordextractor)
- **PyPI** — `pip install apiverve-keywordextractor` (https://pypi.org/project/apiverve-keywordextractor/)
- **NuGet** — `dotnet add package APIVerve.API.KeywordExtractor` (https://www.nuget.org/packages/APIVerve.API.KeywordExtractor)
- **Source** — https://github.com/apiverve/keywordextractor-api

## More

- Full reference: https://docs.apiverve.com/ref/keywordextractor
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
