# تحلیل محتوا – API روندهای عبارت

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/content_analysis/phrase_trends/live`

**Tags:** DataForSEO

شاخص‌های خلاصه یک کلیدواژه، تکرارشده برای هر دوره زمانی. هر ورودی `date` را همراه با `total_count`، `rank`، `top_domains` (هر یک `domain` و `count`)، `sentiment_connotations` (خشم، شادی، عشق، غم، اشتراک‌گذاری، سرگرمی)، `connotation_types` (مثبت، منفی، خنثی)، `text_categories`، `page_categories`، `page_types`، `countries` و `languages` حمل می‌کند. `date_from`، `date_to` و `date_group` (day، week، month) بازه و دانه‌بندی را تعیین می‌کنند. از آن برای دیدن افزایش یا کاهش اشاره‌ها به یک عبارت استفاده کنید؛ برای یک نقطه زمانی از `post_dataforseo_content_summary_live` استفاده کنید. برای پیگیری یک دسته محصول کامل به‌جای یک عبارت، از `post_dataforseo_content_category_trends_live` استفاده کنید.

### مرجع قیمت‌گذاری

- اندازه‌گیری: هزینه گزارش‌شده پاسخ.
- برآورد درخواست مرجع: 0.0276 دلار آمریکا.
- ضریب مشتری مرجع: 1.0. آن را دوباره روی مبلغ تسویه‌شده مشتری اعمال نکنید.

فقط فراداده مرجع است، نه نقل‌قول حساب، نه قیمت تضمین‌شده و نه سقف هزینه. اعتبار منابع، اعتبار Felo نیست. هزینه‌های نهایی تابع سوابق صورت‌حساب Felo است.

## Related links

- [این مقاله مرکز راهنمایی](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [نقطه پایانی جستجو](<https://docs.dataforseo.com/v3/content_analysis/search/live/?bash>)
- [API تحلیل محتوا - فیلترها](<https://docs.dataforseo.com/v3/content_analysis/filters>)
- [این مقاله مرکز راهنمایی](<https://dataforseo.com/help-center/what-are-the-initial-dataset-filters-and-how-do-they-work>)
- [این مقاله مرکز راهنمایی](<https://dataforseo.com/help-center/using-the-rank_scale-parameter-in-content-analysis-api>)
- [دسته‌ها](<https://docs.dataforseo.com/v3/content_analysis/categories/>)
- [مکان‌ها](<https://docs.dataforseo.com/v3/content_analysis/locations/>)
- [زبان‌ها](<https://docs.dataforseo.com/v3/content_analysis/languages/>)

## 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": {
          "keyword": {
            "type": "string",
            "description": "<em>کلمه کلیدی هدف</em><br><strong>فیلد الزامی</strong><br>کدگذاری UTF-8<br>کلمات کلیدی به حروف کوچک تبدیل می‌شوند؛<br><strong>نکته</strong>: برای تطبیق یک عبارت دقیق به‌جای یک کلمه کلیدی مستقل، از گیومه و بک‌اسلش استفاده کنید؛ <br>مثال: <br><code>\"keyword\": \"\\\"tesla palo alto\\\"\"</code><p>درباره قواعد و محدودیت‌های فیلدهای <code>keyword</code> و <code>keywords</code> در APIهای DataForSEO در این مقاله مرکز راهنمایی بیشتر بدانید"
          },
          "keyword_fields": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "<em>فیلدهای کلمه کلیدی هدف و کلمات کلیدی هدف</em><br>فیلد اختیاری<br>از این پارامتر برای فیلتر کردن مجموعه داده بر اساس کلمات کلیدی‌ای که فیلدهای خاصی باید داشته باشند استفاده کنید؛<br>فیلدهایی که می‌توانید تعیین کنید: <code>title</code>، <code>main_title</code>، <code>previous_title</code>، <code>snippet</code><br>می‌توانید چند فیلد را مشخص کنید؛<br><strong>نکته</strong>: برای تطبیق یک عبارت دقیق به‌جای یک کلمه کلیدی مستقل، از گیومه و بک‌اسلش استفاده کنید؛ <br>مثال:<br>`\"keyword_fields\": {<br>\"snippet\": \"\\\"logitech mouse\\\"\",<br>\"main_title\": \"sale\"<br>}`"
          },
          "page_type": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>انواع صفحه هدف</em><br>فیلد اختیاری<br>از این پارامتر برای فیلتر کردن مجموعه داده بر اساس انواع صفحه استفاده کنید<br>مقادیر ممکن: <br><code>\"ecommerce\"</code>، <code>\"news\"</code>، <code>\"blogs\"</code>، <code>\"message-boards\"</code>، <code>\"organization\"</code>"
          },
          "search_mode": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>نوع گروه‌بندی نتایج</em><br>فیلد اختیاری<br>انواع گروه‌بندی ممکن:<br><code>as_is</code> - داده‌های همه استنادهای <code>keyword</code> هدف را برمی‌گرداند<br><code>one_per_domain</code> - داده‌های یک استناد از <code>keyword</code> را برای هر دامنه برمی‌گرداند<br>مقدار پیش‌فرض: <code>as_is</code>"
          },
          "internal_list_limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>حداکثر تعداد عناصر در آرایه‌های داخلی</em><br>فیلد اختیاری<br>می‌توانید از این فیلد برای محدود کردن تعداد عناصر در آرایه‌های زیر استفاده کنید:<br><code>top_domains</code><br><code>text_categories</code><br><code>page_categories</code><br><code>countries</code><br><code>languages</code><br>مقدار پیش‌فرض: <code>1</code><br>حداکثر مقدار: <code>20</code>"
          },
          "date_from": {
            "type": "string",
            "description": "<em>تاریخ شروع بازه زمانی</em><br><strong>فیلد الزامی</strong><br>قالب تاریخ: <code>\"yyyy-mm-dd\"</code><br>مثال:<br><code>\"2019-01-15\"</code>"
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>تاریخ پایان بازه زمانی</em><br>فیلد اختیاری<br>اگر این فیلد را تعیین نکنید، به‌طور پیش‌فرض از تاریخ امروز استفاده می‌شود<br>قالب تاریخ: <code>\"yyyy-mm-dd\"</code><br>مثال:<br><code>\"2019-01-15\"</code>"
          },
          "date_group": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>بازه زمانی که برای گروه‌بندی نتایج استفاده می‌شود</em><br>فیلد اختیاری<br>مقدار پیش‌فرض: <code>month</code><br>مقادیر ممکن: <code>day</code>، <code>week</code>، <code>month</code>"
          },
          "initial_dataset_filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>پارامترهای فیلتر مجموعه داده اولیه</em><br>فیلد اختیاری<br>پارامترهای فیلتر اولیه که بر فیلدهای نقطه پایانی جستجو اعمال می‌شوند;<br><strong>می‌توانید چند فیلتر را هم‌زمان اضافه کنید (حداکثر 8 فیلتر);</strong><br>باید بین شرایط یک عملگر منطقی <code>and</code> یا <code>or</code> بگذارید;<br>عملگرهای پشتیبانی‌شده:<br><code>regex</code>، <code>not_regex</code>، <code>&lt;</code>، <code>&lt;=</code>، <code>&gt;</code>، <code>&gt;=</code>، <code>=</code>، <code>&lt;&gt;</code>، <code>in</code>، <code>not_in</code>، <code>like</code>،<code>not_like</code>، <code>has</code>، <code>has_not</code>، <code>match</code>، <code>not_match</code><br>می‌توانید از عملگر <code>%</code> همراه با <code>like</code> و <code>not_like</code> برای تطبیق هر رشته صفر یا بیشتر نویسه استفاده کنید;<br>مثال:<br><code>[\"domain\",\"&lt;&gt;\", \"logitech.com\"]</code><p><code>[[\"domain\",\"&lt;&gt;\",\"logitech.com\"],\"and\",[\"content_info.connotation_types.negative\",\"&gt;\",1000]]</code><p><code>[[\"domain\",\"&lt;&gt\",\"logitech.com\"]],<br>\"and\",<br>[[\"content_info.connotation_types.negative\",\"&gt;\",1000],<br>\"or\",<p>[\"content_info.text_category\",\"has\",10994]]]</code><br>برای اطلاعات بیشتر درباره فیلترها، به API تحلیل محتوا - فیلترها مراجعه کنید<br>درباره فیلترهای مجموعه داده اولیه در این مقاله مرکز راهنمایی بیشتر بدانید."
          },
          "rank_scale": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>مقیاسی را تعیین می‌کند که برای محاسبه و نمایش مقادیر <code>rank</code> استفاده می‌شود</em><br>فیلد اختیاری<p>می‌توانید از این پارامتر برای انتخاب اینکه مقادیر رتبه در مقیاس 0–100 یا 0–1000 ارائه شوند استفاده کنید<p>مقادیر ممکن:<br><code>one_hundred</code> — مقادیر رتبه در مقیاس 0–100 نمایش داده می‌شوند<br><code>one_thousand</code> — مقادیر رتبه در مقیاس 0–1000 نمایش داده می‌شوند<p>مقدار پیش‌فرض: <code>one_thousand</code><p>درباره نحوه کار این پارامتر در این مقاله مرکز راهنمایی بیشتر بدانید"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>شناسه وظیفه تعریف‌شده توسط کاربر</em><br>فیلد اختیاری<br><em>محدودیت کاراکتر 255 است</em><br>می‌توانید از این پارامتر برای شناسایی وظیفه و تطبیق آن با نتیجه استفاده کنید<br>مقدار <code>tag</code> مشخص‌شده را در شیء <code>data</code> پاسخ پیدا می‌کنید"
          }
        },
        "example": [
          {
            "keyword": "logitech",
            "search_mode": "as_is",
            "date_from": "2022-09-01",
            "date_group": "month"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keyword": "logitech",
      "search_mode": "as_is",
      "date_from": "2022-09-01",
      "date_group": "month"
    }
  ]
}
```

## Responses

### 200 — عملیات موفق

Headers:
- `X-Request-Id` (string) — شناسه درخواست برای درج هنگام تماس با پشتیبانی Felo.

**application/json**

Schema: object | null

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

### 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": "هزینه کل وظایف، دلار آمریکا",
      "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": "هزینه کل وظایف، دلار آمریکا",
      "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_ContentAnalysisCategoriesInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo`

```json
{
  "properties": {
    "category": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "integer",
          "null"
        ]
      }
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResponseInfo`

```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_ContentAnalysisPhraseTrendsLiveTaskInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از وظایف</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخی که داده‌ها برای آن ارائه می‌شود</em>"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد کل نتایج در پایگاه داده ما مرتبط با درخواست شما</em>",
      "format": "int64"
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رتبه همه نشانی‌های URL که <code>keyword</code> را نقل می‌کنند</em><br>مجموع نرمال‌شده رتبه‌های همه نشانی‌های URL که <code>keyword</code> هدف را در تاریخ داده‌شده نقل می‌کنند"
    },
    "top_domains": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_TopDomainInfo"
          }
        ]
      },
      "description": "<em>دامنه‌های برتر که کلیدواژه هدف را نقل می‌کنند</em><br>شامل اشیایی با دامنه‌های برتر که کلیدواژه هدف را نقل می‌کنند و تعداد نقل‌قول‌ها برای هر دامنه است"
    },
    "sentiment_connotations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>بارهای معنایی احساسات</em><br>شامل احساسات (واکنش‌های عاطفی) مرتبط با نقل‌قول کلیدواژه هدف و تعداد نقل‌قول‌ها برای هر احساس است<br>بارهای معنایی ممکن: <code>\"anger\"</code>, <code>\"happiness\"</code>, <code>\"love\"</code>, <code>\"sadness\"</code>, <code>\"share\"</code>, <code>\"fun\"</code>"
    },
    "connotation_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>انواع مفهوم ضمنی</em><br>شامل انواع احساس (قطبیت احساس) مرتبط با نقل‌قول کلیدواژه و تعداد نقل‌قول‌ها برای هر نوع احساس است<br>انواع مفهوم ضمنی ممکن: <code>\"positive\"</code>, <code>\"negative\"</code>, <code>\"neutral\"</code>"
    },
    "text_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>دسته‌های متن</em><br>شامل اشیایی با دسته‌های متن و تعداد نقل‌قول‌ها در هر دسته متن است<br>برای دریافت فهرست کامل دسته‌های موجود، به نقطه پایانی دسته‌ها مراجعه کنید"
    },
    "page_categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoriesInfo"
          }
        ]
      },
      "description": "<em>دسته‌های صفحه</em><br>شامل اشیایی با دسته‌های صفحه و تعداد نقل‌قول‌ها در هر دسته صفحه است<br>برای دریافت فهرست کامل دسته‌های موجود، به نقطه پایانی دسته‌ها مراجعه کنید"
    },
    "page_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>انواع صفحه</em><br>شامل انواع صفحه و تعداد نقل‌قول‌ها برای هر نوع صفحه است"
    },
    "countries": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>کشورها</em><br>شامل کشورها و تعداد نقل‌قول‌ها در هر کشور است<br>برای دریافت فهرست کامل کشورهای موجود، به نقطه پایانی مکان‌ها مراجعه کنید"
    },
    "languages": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>زبان‌ها</em><br>شامل زبان‌ها و تعداد نقل‌قول‌ها در هر زبان است<br>برای دریافت فهرست کامل زبان‌های موجود، به نقطه پایانی زبان‌ها مراجعه کنید"
    }
  }
}
```

### Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisPhraseTrendsLiveTaskInfo`

```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_ContentAnalysisPhraseTrendsLiveResultInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از نتایج</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_TopDomainInfo

`#/components/schemas/Response36Afe1097B20_TopDomainInfo`

```json
{
  "properties": {
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    }
  }
}
```
