# Пошуковий інтент

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/dataforseo_labs/google/search_intent/live`

**Tags:** DataForSEO

Класифікує `keywords` як інформаційні, навігаційні, комерційні або транзакційні. Повертає `language_code`, `items_count` і `items`. Відповідь обгорнуто в конверт DataForSEO: дані в `tasks[0].result`, результат у `tasks[0].status_code` — відхилений запит усе одно повертає HTTP 200. Інтент визначає, якою має бути сторінка, перш ніж обсяг покаже, чи варто її писати; поєднуйте з `post_dataforseo_labs_google_keyword_overview_live`.

### Довідкова інформація про ціни

- Тарифікація: заявлена вартість відповіді.
- Довідкова оцінка запиту: USD 0.0073.
- Довідковий множник для клієнта: 1.0. Не застосовуйте його повторно до вже розрахованої суми клієнта.

Лише довідкові метадані, а не котирування для облікового запису, гарантована ціна чи ліміт витрат. Кредити ресурсів — це не кредити Felo. Остаточні списання здійснюються за записами білінгу Felo.

## Related links

- [цій статті довідкового центру](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "<em>цільові ключові слова</em><br><strong>обов'язкове поле</strong><br>кодування UTF-8<br>максимальна кількість ключових слів у цьому масиві: 1000;<br>ключові слова переводяться в нижній регістр<p>Докладніше про правила й обмеження полів <code>keyword</code> і <code>keywords</code> в API DataForSEO — у цій статті довідкового центру"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>визначений користувачем ідентифікатор завдання</em><br>необов'язкове поле<br><em>обмеження — 255 символів</em><br>цей параметр дає змогу ідентифікувати завдання й зіставити його з результатом<br>вказане значення <code>tag</code> ви знайдете в об'єкті <code>data</code> відповіді"
          }
        },
        "example": [
          {
            "keywords": [
              "login page",
              "audi a7",
              "elon musk",
              "milk store new york"
            ]
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keywords": [
        "login page",
        "audi a7",
        "elon musk",
        "milk store new york"
      ]
    }
  ]
}
```

## Responses

### 200 — Успішна операція

Headers:
- `X-Request-Id` (string) — Ідентифікатор запиту, який потрібно вказати під час звернення до підтримки Felo.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResponseInfo"
    }
  ]
}
```

### 400 — Не вдалося обробити запит. Перевірте параметри запиту.

### 401 — Потрібен дійсний API-ключ Felo.

### 402 — Запит неможливо виконати: умови білінгу не виконано.

### 403 — Обліковий запис не має дозволу на цю операцію.

### 429 — Досягнуто ліміту запитів або витрат.

### 502 — Служба не змогла виконати запит.

### 503 — API або служба білінгу тимчасово недоступні.

### 504 — Час очікування обробки запиту вичерпано.

### default — Відповідь із помилкою; наскрізні відповіді апстріму можуть використовувати формати постачальника

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "поточна версія API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "загальний код стану.\nПовний список кодів відповіді можна знайти тут."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "загальне інформаційне повідомлення.\nПовний список загальних інформаційних повідомлень можна знайти тут."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "загальний час виконання, секунди"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "загальна вартість завдань, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "кількість завдань у масиві tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "кількість завдань у масиві tasks, повернутих з помилкою",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ідентифікатор завдання\nунікальний ідентифікатор завдання в нашій системі у форматі UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "код стану завдання\nформується DataForSEO, може перебувати в діапазоні 10000-60000\nПовний список кодів відповіді можна знайти тут."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "інформаційне повідомлення завдання\nПовний список загальних інформаційних повідомлень можна знайти тут."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "час виконання, секунди"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "загальна вартість завдань, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "кількість елементів у масиві result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "шлях URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "містить ті самі параметри, які ви вказали в POST-запиті"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveItem

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveItem`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>цільове ключове слово в масиві POST</em>"
    },
    "keyword_intent": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_KeywordIntentInfo"
        }
      ],
      "description": "<em>дані про пошуковий інтент, що стосуються вказаного ключового слова</em>"
    },
    "secondary_keyword_intents": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_KeywordIntentInfo"
          }
        ]
      },
      "description": "<em>містить об'єкти з іншими можливими пошуковими інтентами для вказаного ключового слова</em>"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveTaskInfo"
              }
            ]
          },
          "description": "<em>масив завдань</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResultInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>кількість результатів, повернутих у масиві <code>items</code></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveItem"
          }
        ]
      },
      "description": "<em>масив елементів із даними оцінки відповідного трафіку</em>"
    }
  }
}
```

### Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoLabsGoogleSearchIntentLiveResultInfo"
              }
            ]
          },
          "description": "<em>масив результатів</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_KeywordIntentInfo

`#/components/schemas/Response36Afe1097B20_KeywordIntentInfo`

```json
{
  "type": "object",
  "properties": {
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>назва пошукового інтенту</em><br>можливі значення: <code>informational</code>, <code>navigational</code>, <code>commercial</code>, <code>transactional</code>"
    },
    "probability": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>імовірність пошукового інтенту</em><br><code>1</code> означає найвищу ймовірність"
    }
  }
}
```
