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

**API:** Data API

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

**Tags:** DataForSEO

أين يتركّز الاهتمام بكلمة مفتاحية، موزّعًا على المناطق الفرعية داخل `location_code`. الاستجابة مغلّفة في غلاف DataForSEO: البيانات في `tasks[0].result`، والنتيجة في `tasks[0].status_code` — ولا يزال الطلب المرفوض يعيد HTTP 200. لمعرفة «مَن» بدل «أين»، استخدم `post_dataforseo_keywords_trends_demography_live`.

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

- القياس: تكلفة الاستجابة المُبلَّغ عنها.
- تقدير الطلب المرجعي: 0.0024 دولار أمريكي.
- مضاعف العميل المرجعي: 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/keywords_data/dataforseo_trends/locations/>)

## 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<br>تجنّب الرموز والأحرف الخاصة (مثل رموز UTF والرموز التعبيرية)؛<br>عند تحديد أحرف غير لاتينية، ستحصل على بيانات للبلدان التي تُستخدم فيها<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": [
              "rugby",
              "cricket"
            ],
            "date_from": "2023-01-01",
            "date_to": "2024-01-01",
            "type": "web",
            "location_name": "United States"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "keywords": [
        "rugby",
        "cricket"
      ],
      "date_from": "2023-01-01",
      "date_to": "2024-01-01",
      "type": "web",
      "location_name": "United States"
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AbsoluteItems

`#/components/schemas/Response36Afe1097B20_AbsoluteItems`

```json
{
  "type": "object",
  "properties": {
    "geo_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>معرّف الموقع</em><br>يمكنك استخدام هذا الحقل لمطابقة النتائج التي حصلت عليها مع معاملات الموقع المحددة في الطلب<br>راجع القائمة الكاملة للمواقع المتاحة مع <code>geo_id</code> الخاص بها هنا أو عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br>مثال:<br><code>US-NY</code>"
    },
    "geo_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>اسم الموقع</em><br>يمكنك استخدام هذا الحقل لمطابقة النتائج التي حصلت عليها مع معاملات الموقع المحددة في الطلب<br>راجع القائمة الكاملة للمواقع المتاحة مع <code>geo_name</code> الخاص بها هنا أو عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br>مثال:<br><code>Andorra</code>"
    },
    "values": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>تحتوي على بيانات حول الشعبية النسبية للكلمات المفتاحية حسب البلد أو المنطقة</em>"
    }
  }
}
```

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

`#/components/schemas/Response36Afe1097B20_DataforseoTrendsSubregionInterestsElementItem`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseKeywordDataDataforseoTrendsItem"
    },
    {
      "type": "object",
      "properties": {
        "interests": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsinterestsInfo"
              }
            ]
          },
          "description": "<em>بيانات شعبية الكلمات المفتاحية دون الإقليمية لكل مصطلح محدد</em>"
        },
        "interests_comparison": {
          "type": [
            "object",
            "null"
          ],
          "oneOf": [
            {
              "$ref": "#/components/schemas/Response36Afe1097B20_InterestsComparison"
            }
          ],
          "description": "<em>مقارنة البيانات حول شعبية الكلمات المفتاحية دون الإقليمية للمعاملات المحددة</em><br>إذا حددت كلمة مفتاحية واحدة، ستكون القيمة <code>null</code>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_DataforseoTrendsinterestsInfo

`#/components/schemas/Response36Afe1097B20_DataforseoTrendsinterestsInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>الكلمة المفتاحية ذات الصلة</em><br>تستند البيانات المضمّنة في عنصر <code>values</code> إلى هذه الكلمة المفتاحية"
    },
    "values": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_DataforseoTrendsinterestsValuesInfo"
          }
        ]
      },
      "description": "<em>تحتوي على بيانات حول الشعبية النسبية للكلمات المفتاحية حسب البلد أو المنطقة</em>"
    }
  }
}
```

### Response36Afe1097B20_DataforseoTrendsinterestsValuesInfo

`#/components/schemas/Response36Afe1097B20_DataforseoTrendsinterestsValuesInfo`

```json
{
  "type": "object",
  "properties": {
    "geo_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>معرّف الموقع</em><br>يمكنك استخدام هذا الحقل لمطابقة النتائج التي حصلت عليها مع معاملات الموقع المحددة في الطلب<br>راجع القائمة الكاملة للمواقع المتاحة مع <code>geo_id</code> الخاص بها هنا أو عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br>مثال:<br><code>US-NY</code>"
    },
    "geo_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>اسم الموقع</em><br>يمكنك استخدام هذا الحقل لمطابقة النتائج التي حصلت عليها مع معاملات الموقع المحددة في الطلب<br>راجع القائمة الكاملة للمواقع المتاحة مع <code>geo_name</code> الخاص بها هنا أو عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations</code><br>مثال:<br><code>Andorra</code>"
    },
    "value": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>معدل شعبية الكلمة المفتاحية النسبي في موقع معيّن</em><br>يمثّل معدل شعبية الكلمة المفتاحية الخاص بالموقع خلال النطاق الزمني المحدد<br>باستخدام هذه <code>value</code>، يمكنك فهم مدى شعبية كلمة مفتاحية في موقع مقارنةً بموقع آخر<br>الحساب: نحدد أعلى قيمة شعبية للكلمة المفتاحية ذات الصلة عبر جميع المواقع، ثم نعبّر عن جميع القيم الأخرى كنسبة مئوية من تلك القيمة الأعلى (100)<br>القيمة <code>100</code> هي أعلى شعبية للمصطلح<br>تعني القيمة <code>50</code> أن المصطلح نصف شائع<br>تعني القيمة <code>0</code> عدم توفر بيانات كافية لهذا المصطلح"
    }
  }
}
```

### Response36Afe1097B20_InterestsComparison

`#/components/schemas/Response36Afe1097B20_InterestsComparison`

```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AbsoluteItems"
          }
        ]
      },
      "description": "<em>تحتوي على شعبية الكلمة المفتاحية والبيانات ذات الصلة</em>"
    },
    "absolute_items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AbsoluteItems"
          }
        ]
      },
      "description": "<em>معدلات شعبية الكلمة المفتاحية عبر جميع المواقع الجغرافية</em><br>تمثل القيم في هذه المصفوفة نسبًا مئوية مقارنة بالقيمة القصوى عبر جميع المواقع الجغرافية"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveResponseInfo`

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

### Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveResultInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveResultInfo`

```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_DataforseoTrendsSubregionInterestsElementItem"
          }
        ]
      },
      "description": "<em>تحتوي على شعبية الكلمة المفتاحية والبيانات ذات الصلة</em>"
    }
  }
}
```

### Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_KeywordsDataDataforseoTrendsSubregionInterestsLiveTaskInfo`

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