# Extract ranked key phrases from text with YAKE

**Use case:** 

Pulls the top key phrases from a short sample text with YAKE and gives each one a score. The extraction runs inside the actor and no text goes to an outside service. Swap in your own texts, web pages or dataset fields, or switch the method to RAKE.

## Input

```json
{
  "texts": [
    "Solar panels convert sunlight into electricity. Rooftop solar panels cut household energy bills, and battery storage keeps the lights on after sunset. Installers size each solar system to the roof area and the household's daily energy use."
  ],
  "method": "yake",
  "language": "auto",
  "maxKeywords": 20,
  "maxWords": 3,
  "minWordLength": 3,
  "dedupThreshold": "0.9"
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "ok": {
    "label": "Analyzed",
    "format": "boolean"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "topKeywords": {
    "label": "Top keywords",
    "format": "array"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Keyword Extractor: key phrases from text and pages (YAKE, RAKE) Actor is ready to run with the inputs already set for "Extract ranked key phrases from text with YAKE". [Sign up or log in](https://console.apify.com/create-task-from-example/s69rH2j1JQ6VSzsMF) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract ranked key phrases from text with YAKE" task

The Keyword Extractor: key phrases from text and pages (YAKE, RAKE) Actor will start running based on the input automatically. You can also change all the input fields, like texts, method, and more, to match your specific use case.

### 3. Receive the "Extract ranked key phrases from text with YAKE" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as #, ID, analyzed, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract ranked key phrases from text with YAKE" task via API](https://apify.com/examsens.ai/keyword-extractor.md).

## About this Actor

This example demonstrates how to use [Keyword Extractor: key phrases from text and pages (YAKE, RAKE)](https://apify.com/examsens.ai/keyword-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/examsens.ai/keyword-extractor.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/examsens.ai/keyword-extractor.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`).
