# 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> ב-API של DataForSEO מופיע במאמר במרכז העזרה</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 Shopping</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"
    }
  }
}
```
