# إعداد مهام ‘DataForSEO Trends Explore’ المباشرة

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/keywords_data/dataforseo_trends/explore/live`

**Tags:** DataForSEO

تطوّر الاهتمام بمرور الوقت لما يصل إلى خمسة `keywords`، أي منحنى Google Trends. يعيد `keywords` و`type` و`location_code` و`language_code` و`datetime` و`items_count` و`items`. يختار `type` القيمة web أو news أو images أو youtube أو shopping، ويحدّد `date_from`/`date_to` النطاق الزمني. الاستجابة مغلّفة في غلاف DataForSEO: البيانات في `tasks[0].result`، والنتيجة في `tasks[0].status_code` — ولا يزال الطلب المرفوض يعيد HTTP 200. يعطي Trends اهتمامًا نسبيًا لا حجمًا مطلقًا؛ وللأعداد استخدم `post_dataforseo_keywords_gads_search_volume_live`.

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

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

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

## Related links

- [مقال مركز المساعدة](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [وقت Unix](<https://en.wikipedia.org/wiki/Unix_time>)

## 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>الحد الأقصى لعدد الكلمات المفتاحية التي يمكنك تحديدها: 5<p>تعرّف على قواعد وقيود حقلي <code>keyword</code> و<code>keywords</code> في واجهات DataForSEO API في مقال مركز المساعدة"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>الاسم الكامل لموقع محرك البحث</em><br>حقل اختياري<br>إذا لم تستخدم هذا الحقل، فستتلقى نتائج عالمية<br><strong>إذا استخدمت هذا الحقل، فلا حاجة لتحديد <code>location_code</code></strong><br>يمكنك الحصول على قائمة المواقع المتاحة لمحرك البحث مع <code>location_name</code> الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br><strong>لاحظ أن البيانات ستُقدَّم للبلد الذي ينتمي إليه <code>location_name</code> المحدد؛</strong><br>مثال:<br><code class=\"long-string\">United Kingdom</code>"
          },
          "location_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>رمز موقع محرك البحث</em><br>حقل اختياري<br>إذا لم تستخدم هذا الحقل، فستتلقى نتائج عالمية<br><strong>إذا استخدمت هذا الحقل، فلا حاجة لتحديد <code>location_name</code></strong><br>يمكنك الحصول على قائمة المواقع المتاحة لمحركات البحث مع <code>location_code</code> الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br><strong>لاحظ أن البيانات ستُقدَّم للبلد الذي ينتمي إليه <code>location_code</code> المحدد؛</strong><br>مثال:<br><code class=\"long-string\">2840</code>"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "نوع العنصر"
          },
          "date_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>تاريخ بداية النطاق الزمني</em><br>حقل اختياري<br>إذا لم تحدد هذا الحقل، فسيُستخدم اليوم والشهر الحاليان من العام السابق افتراضيًا<br>الحد الأدنى للقيمة لنوع <code>web</code>: <code>2004-01-01</code><br>الحد الأدنى للقيمة للأنواع الأخرى: <code>2008-01-01</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>"
          },
          "time_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>النطاقات الزمنية الجاهزة</em><br>حقل اختياري<br>إذا حددت المعاملين <code>date_from</code> أو <code>date_to</code>، فسيُتجاهل هذا الحقل عند إعداد المهمة<br><em>القيم الممكنة لجميع معاملات <code>type</code>:</em><br><code>past_4_hours</code>، <code>past_day</code>، <code>past_7_days</code>، <code>past_30_days</code>، <code>past_90_days</code>، <code>past_12_months</code>، <code>past_5_years</code>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>معرّف مهمة يحدده المستخدم</em><br>حقل اختياري<br><em>الحد الأقصى للأحرف هو 255</em><br>يمكنك استخدام هذا المعامل لتمييز المهمة ومطابقتها مع النتيجة<br>ستجد قيمة <code>tag</code> المحددة في كائن <code>data</code> ضمن الاستجابة"
          }
        },
        "example": [
          {
            "keywords": [
              "iphone 14",
              "samsung s23"
            ],
            "location_code": 2840
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keywords": [
        "iphone 14",
        "samsung s23"
      ],
      "location_code": 2840
    }
  ]
}
```

## Responses

### 200 — عملية ناجحة

Headers:
- `X-Request-Id` (string) — معرّف الطلب المراد تضمينه عند التواصل مع دعم Felo.

**application/json**

Schema: object | null

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

### 400 — تعذّرت معالجة الطلب. تحقق من معاملات الطلب.

### 401 — مطلوب مفتاح API صالح من Felo.

### 402 — لا يمكن متابعة الطلب لأن أحد متطلبات الفوترة غير مستوفٍ.

### 403 — الحساب غير مصرّح له بهذه العملية.

### 429 — تم بلوغ حد الطلبات أو حد الإنفاق.

### 502 — تعذّر على الخدمة إكمال الطلب.

### 503 — خدمة API أو الفوترة غير متاحة مؤقتًا.

### 504 — انتهت مهلة الخدمة أثناء معالجة الطلب.

### default — استجابة خطأ؛ قد تستخدم استجابات المنبع الممرَّرة تنسيقات المزوّد

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseKeywordDataDataforseoTrendsItem

`#/components/schemas/Response36Afe1097B20_BaseKeywordDataDataforseoTrendsItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "position": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>محاذاة العنصر</em><br>يمكن أن تأخذ القيم التالية: <code>1</code>، <code>2</code>، <code>3</code>، <code>4</code>، إلخ."
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>الكلمات المفتاحية في طلب POST</em>"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "dataforseo_trends_graph": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsDataforseoTrendsGraphElementItem",
      "subregion_interests": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsSubregionInterestsElementItem",
      "demography": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsDemographyElementItem"
    }
  }
}
```

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

`#/components/schemas/Response36Afe1097B20_DataforseoTrendsDataforseoTrendsGraphElementItem`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseKeywordDataDataforseoTrendsItem"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsGraphDataTrendsGraphDataInfo"
              }
            ]
          },
          "description": "<em>يحتوي على المعاملات نفسها التي حددتها في طلب POST<br></em>"
        },
        "averages": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoTrendsGraphDataTrendsGraphDataInfo

`#/components/schemas/Response36Afe1097B20_DataforseoTrendsGraphDataTrendsGraphDataInfo`

```json
{
  "type": "object",
  "properties": {
    "date_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاريخ بدء النطاق الزمني المقابل</em><br>بتنسيق UTC: \"yyyy-mm-dd\""
    },
    "date_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاريخ انتهاء النطاق الزمني المقابل</em><br>بتنسيق UTC: \"yyyy-mm-dd\""
    },
    "timestamp": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>نقطة زمنية بتنسيق وقت Unix</em>"
    },
    "values": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "integer",
          "null"
        ]
      },
      "description": "<em>معدل شعبية الكلمة المفتاحية النسبي عند طابع زمني محدد</em><br>يمثّل معدل شعبية الكلمة المفتاحية خلال النطاق الزمني المحدد<br><strong>إذا حددت أكثر من كلمة مفتاحية، فستُحسب القيم كمتوسط وصولًا إلى أعلى قيمة عبر جميع الكلمات المفتاحية المحددة</strong><br>القيمة 100 هي ذروة الشعبية للمصطلح. وتعني القيمة 50 أن المصطلح نصف شائع. وتعني الدرجة 0 عدم توفر بيانات كافية لهذا المصطلح"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveResponseInfo`

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

### Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveResultInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>الكلمات المفتاحية في طلب POST</em>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رمز الموقع في مصفوفة POST</em><br>فإذا لم تكن هناك بيانات، تكون القيمة <code>null</code>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>رمز اللغة في مصفوفة POST</em><br>فإذا لم تكن هناك بيانات، تكون القيمة <code>null</code>"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>التاريخ والوقت اللذان استُلمت فيهما النتيجة</em><br>بتنسيق UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>مثال:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>عدد النتائج المعادة في المصفوفة <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsDataforseoTrendsGraphElementItem"
          }
        ]
      },
      "description": "<em>تحتوي على شعبية الكلمة المفتاحية والبيانات ذات الصلة</em>"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsExploreLiveTaskInfo`

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