# تحليل المحتوى – واجهة اتجاهات الفئات

**API:** Data API

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

**Tags:** DataForSEO

المقاييس نفسها لكل فترة كما في `post_dataforseo_content_phrase_trends_live`، لكن لفئة منتج كاملة بدلًا من كلمة مفتاحية واحدة. تأخذ `category_code` من `get_dataforseo_content_categories`، مع ضبط `date_from` و`date_to` و`date_group` للنطاق والتفصيل الزمني، وتعيد `date` مع `total_count` و`rank` و`top_domains` (كل منها `domain` و`count`) و`sentiment_connotations` (الغضب، السعادة، الحب، الحزن، المشاركة، المرح) و`connotation_types` (إيجابي، سلبي، محايد) و`text_categories` و`page_categories` و`page_types` و`countries` و`languages` لكل فترة. استخدمها لمعرفة كيف يتحرك سوق ما بدلًا من عبارة واحدة؛ وانتقل إلى نقطة نهاية العبارات عندما تعرف الصياغة الدقيقة التي تهمك.

### مرجع التسعير

- القياس: تكلفة الاستجابة المُبلَّغ عنها.
- تقدير الطلب المرجعي: 0.0276 دولار أمريكي.
- مضاعف العميل المرجعي: 1.0. لا تُطبّقه مرة أخرى على مبلغ عميل مسوّى.

بيانات وصفية مرجعية فقط، وليست عرض سعر للحساب ولا سعرًا مضمونًا ولا حدًا للإنفاق. أرصدة الموارد ليست أرصدة Felo. تتبع الرسوم النهائية سجلات فوترة Felo.

## Related links

- [الفئات](<https://docs.dataforseo.com/v3/content_analysis/categories/>)
- [نقطة نهاية البحث](<https://docs.dataforseo.com/v3/content_analysis/search/live/?bash>)
- [واجهة تحليل المحتوى - عوامل التصفية](<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/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": {
          "category_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>رمز الفئة المستهدفة</em><br><strong>حقل مطلوب</strong><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>category_code</code> المستهدف<br><code>one_per_domain</code> - يعيد بيانات استشهاد واحد لـ<code>category_code</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>2022-10-31</code><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>لمزيد من المعلومات حول عوامل التصفية، راجع واجهة تحليل المحتوى - عوامل التصفية<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": [
          {
            "category_code": 10994,
            "search_mode": "as_is",
            "date_from": "2022-09-01",
            "date_group": "month"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "category_code": 10994,
      "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_ContentAnalysisCategoryTrendsLiveResponseInfo"
    }
  ]
}
```

### 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_ContentAnalysisCategoryTrendsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResponseInfo`

```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_ContentAnalysisCategoryTrendsLiveTaskInfo"
              }
            ]
          },
          "description": "<em>مصفوفة المهام</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveResultInfo`

```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>\"fear\"</code>، <code>\"happiness\"</code>، <code>\"love\"</code>، <code>\"sadness\"</code>، <code>\"share\"</code>، <code>\"neutral\"</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_ContentAnalysisCategoryTrendsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_ContentAnalysisCategoryTrendsLiveTaskInfo`

```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_ContentAnalysisCategoryTrendsLiveResultInfo"
              }
            ]
          },
          "description": "<em>مصفوفة نتائج</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_TopDomainInfo

`#/components/schemas/Response36Afe1097B20_TopDomainInfo`

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