# Google Autocomplete المتقدم المباشر

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/autocomplete/live/advanced`

**Tags:** DataForSEO

يعيد بشكل متزامن الاقتراحات التي يقدّمها Google أثناء كتابة استعلام على Google. يعيد `keyword` و`type` و`se_domain` و`location_code` و`language_code` و`check_url` و`datetime` و`spell` و`refinement_chips` و`item_types` و`items_count` و`items`. `advanced` هو الخيار الافتراضي؛ استخدم `regular` عندما تكون القائمة المرتّبة وحدها هي المهمة، و`html` فقط للتحقق مما أسقطه المحلّل. الاستجابة مغلّفة في غلاف DataForSEO: البيانات في `tasks[0].result`، والنتيجة في `tasks[0].status_code` — ولا يزال الطلب المرفوض يعيد HTTP 200.

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

- القياس: تكلفة الاستجابة المُبلَّغ عنها.
- تقدير الطلب المرجعي: 0.02 دولار أمريكي.
- مضاعف العميل المرجعي: 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": {
          "keyword": {
            "type": "string",
            "description": "<p><em>الكلمة المفتاحية</em><p><strong>حقل مطلوب</strong><p>يمكنك تحديد <strong>حتى 700 حرف</strong> في الحقل <code>keyword</code><p>سيُفك ترميز كل %## (وسيُفك ترميز الحرف «+» إلى مسافة)<p>إذا كنت بحاجة إلى استخدام الحرف «%» في <code>keyword</code>، فحدده بالشكل «%25»؛<p>إذا كنت بحاجة إلى استخدام الحرف «+» في <code>keyword</code>، فحدده بالشكل «%2B»؛</p><br><p>تعرّف على المزيد حول قواعد وقيود الحقلين <code>keyword</code> و<code>keywords</code> في DataForSEO APIs في مقال مركز المساعدة</p>"
          },
          "location_code": {
            "type": "integer",
            "description": "<p><em>رمز موقع محرك البحث</em><p><strong>حقل مطلوب إذا لم تحدد</strong> <code>location_name</code>؛<p>يمكنك الحصول على قائمة مواقع محركات البحث المتاحة مع <code>location_code</code> الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/serp/google/locations</code><p>مثال:<p><code class=\"long-string\">2840</code></p>"
          },
          "language_code": {
            "type": "string",
            "description": "<p><em>رمز لغة محرك البحث</em><p><strong>حقل مطلوب إذا لم تحدد</strong> <code>language_name</code><p><strong>إذا استخدمت هذا الحقل، فلا حاجة لتحديد <code>language_name</code></strong>؛<p>يمكنك الحصول على قائمة لغات محرك البحث المتاحة مع <code>language_code</code>&nbsp;الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/serp/google/languages</code><em><p></em>مثال:<em><p></em><code class=\"long-string\">en</code></p>"
          },
          "cursor_pointer": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>مؤشر موضع المؤشر في شريط البحث</em><p>حقل اختياري<p>الموضع العددي الأفقي لمؤشر المؤشر داخل الكلمة المفتاحية في شريط البحث؛<p>بتعديل موضع المؤشر، ستحصل على اقتراحات إكمال تلقائي مختلفة للكلمة المفتاحية الأولية نفسها؛<p>القيمة الدنيا: <code>0</code><p>القيمة الافتراضية: رقم آخر حرف في <code>keyword</code> المحدد<p>مثال:<p><code>|which query are s</code> - <code>\"cursor_pointer\": 0</code><p><code>which query is s|</code> - <code>\"cursor_pointer\": 16</code><p><code>which que|ry is s</code> - <code>\"cursor_pointer\": 9</code></p>"
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>الاسم الكامل لموقع محرك البحث</em><p><strong>حقل مطلوب إذا لم تحدد</strong> <code>location_code</code><p><strong>إذا استخدمت هذا الحقل، فلا حاجة لتحديد <code>location_code</code></strong>؛<p>يمكنك الحصول على قائمة مواقع محرك البحث المتاحة مع <code>location_name</code> الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/serp/google/autocomplete/locations</code><p>مثال:<p><code class=\"long-string\">London,England,United Kingdom</code></p>"
          },
          "language_name": {
            "type": "string",
            "description": "<p><em>الاسم الكامل للغة محرك البحث</em><p><strong>حقل مطلوب إذا لم تحدد</strong> <code>language_code</code><p><strong>إذا استخدمت هذا الحقل، فلا حاجة لتحديد <code>language_code</code></strong>؛<p>يمكنك الحصول على قائمة لغات محرك البحث المتاحة مع <code>language_name</code> الخاص بها عبر إرسال طلب منفصل إلى <code>https://api.dataforseo.com/v3/serp/google/languages</code><p>مثال:<p><code class=\"long-string\">English</code></p>"
          },
          "client": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>عميل البحث للإكمال التلقائي</em><p>حقل اختياري<p>قد تختلف نتائج الإكمال التلقائي باختلاف عميل البحث؛<p>القيم الممكنة:<p><code>chrome</code> — يُستخدم عند فتح بحث Google في Google Chrome؛<p><code>chrome-omni</code> — يُستخدم في شريط العناوين في Chrome؛<p><code>gws-wiz</code> — يُستخدم في الصفحة الرئيسية لبحث Google؛<p><code>gws-wiz-serp</code> — يُستخدم في صفحة نتائج محرك بحث Google؛<p><code>safari</code> — يُستخدم عند فتح بحث Google في متصفح Safari؛<p><code>firefox</code> — يُستخدم عند فتح بحث Google في متصفح Firefox؛<p><code>psy-ab</code> — قد يُستخدم عند فتح بحث Google في متصفح Google Chrome؛<p><code>toolbar</code> — يعيد XML؛<p><code>youtube</code> — يعيد JSONP؛<p><code>gws-wiz-local</code> — يُستخدم في Google المحلي؛<p><code>img</code> — يُستخدم في بحث Google للصور؛<p><code>products-cc</code> — يُستخدم في بحث Google للتسوق</p>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>معرّف مهمة يعرّفه المستخدم</em><p>حقل اختياري<p><em>حد الأحرف 255</em><p>يمكنك استخدام هذا المعامل لتعريف المهمة ومطابقتها مع النتيجة<p>ستجد قيمة <code>tag</code> المحددة في كائن <code>data</code> في الاستجابة</p>"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "albert einstein",
            "client": "gws-wiz-serp"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "albert einstein",
      "client": "gws-wiz-serp"
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AmazonLabelElement

`#/components/schemas/Response36Afe1097B20_AmazonLabelElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "عنوان العنصر"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "عنوان URL للبحث مع معاملات التنقية"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "النطاق في SERP"
    }
  }
}
```

### Response36Afe1097B20_Autocomplete

`#/components/schemas/Response36Afe1097B20_Autocomplete`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ترتيب المجموعة في SERP</em><br>الموضع ضمن مجموعة عناصر ذات قيم <code>type</code> متطابقة<br>تُستبعد مواضع العناصر ذات قيم <code>type</code> مختلفة من <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الترتيب المطلق في SERP</em><br>الموضع المطلق بين جميع العناصر في SERP"
    },
    "relevance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>مدى صلة الكلمة المفتاحية المقترحة</em><br>يمثل مدى صلة اقتراح الإكمال التلقائي بالكلمة المفتاحية المستهدفة<br>يمكن أن يأخذ قيمًا من <code>500</code> إلى <code>2000</code><br>كلما ارتفعت القيمة، زادت صلة الاقتراح<br><strong>ملاحظة:</strong> متاح فقط لـ <code>client</code> التالي:<br><code>chrome/chrome-omni</code>"
    },
    "suggestion": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>اقتراح الكلمات المفتاحية من الإكمال التلقائي في Google</em>"
    },
    "suggestion_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نوع اقتراح الإكمال التلقائي من Google</em><br><strong>ملاحظة:</strong> متاح فقط لـ <code>client</code> التالي:<br><code>chrome/chrome-omni</code>"
    },
    "search_query_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان URL لنتائج البحث</em><br>عنوان URL لنتائج البحث ذات الصلة باقتراح الإكمال التلقائي من Google"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان URL لصورة المصغّرة</em><br>عنوان URL لصورة المصغّرة لاقتراح الإكمال التلقائي من Google<br><strong>ملاحظة:</strong> متاح فقط لـ <code>client</code> التالي:<br><code>gws-wiz</code><br><code>gws-wiz-serp</code>"
    },
    "highlighted": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>الكلمات المفتاحية المميّزة في الإكمال التلقائي</em><br>تحتوي على قائمة اقتراحات الإكمال التلقائي من Google المميّزة في شريط البحث؛<br><strong>ملاحظة:</strong> المصفوفة متاحة فقط لـ <code>client</code> التالي:<br><code>gws-wiz</code><br><code>psy-ab</code><br><code>gws-wiz-local</code>"
    }
  }
}
```

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

`#/components/schemas/Response36Afe1097B20_RefinementChipsElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "عنوان العنصر"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "عنوان URL للبحث مع معاملات التنقية"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "النطاق في SERP"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AmazonLabelElement"
          }
        ]
      },
      "description": "خيارات تحسين البحث الإضافية"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsInfo

`#/components/schemas/Response36Afe1097B20_RefinementChipsInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "XPath الخاص بالعنصر"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsElement"
          }
        ]
      },
      "description": "العناصر التابعة للعنصر"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResponseInfo`

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

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>الكلمة المفتاحية المستلمة في مصفوفة POST<br></em><strong>تُعاد الكلمة المفتاحية مع فك ترميز %## (سيُفكّ ترميز المحرف '+' إلى مسافة)</strong>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع العنصر"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نطاق محرك البحث في مصفوفة POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رمز الموقع في مصفوفة POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>رمز اللغة في مصفوفة POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان URL مباشر لنتائج محرك البحث</em><br>يمكنك استخدامه للتأكد من أننا قدّمنا نتائج دقيقة"
    },
    "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>"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "<em>التصحيح التلقائي لمحرك البحث</em><br>إذا قدّم محرك البحث نتائج لكلمة مفتاحية صُحّحت، فسنحدد الكلمة المفتاحية التي صحّحها محرك البحث ونوع التصحيح التلقائي؛<br>في هذه الحالة، ستكون مساوية لـ <code>null</code>"
    },
    "refinement_chips": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsInfo"
        }
      ],
      "description": "<em>شرائح تنقية البحث</em>"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>أنواع نتائج البحث في SERP</em><br>تحتوي على أنواع نتائج البحث (<code>items</code>) الموجودة في SERP.<br>أنواع العناصر الممكنة:<br><code>autocomplete</code>"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> العدد الإجمالي للنتائج في SERP</em>",
      "format": "int64"
    },
    "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_Autocomplete"
          }
        ]
      },
      "description": "<em>العناصر داخل العنصر</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedTaskInfo`

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

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "الكلمة المفتاحية التي تم الحصول عليها نتيجة التصحيح التلقائي لمحرك البحث\n ستُقدَّم النتائج للكلمة المفتاحية المصححة"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع التصحيح التلقائي\n القيم الممكنة:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n ملاحظة: يدعم Yahoo وYandex نوع التصحيح التلقائي التالي فقط:\n including_results_for"
    }
  }
}
```
