# שליפת תוצאות כתוביות YouTube לפי id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/serp/youtube/video_subtitles/task_get/advanced/{id}`

**Tags:** DataForSEO

שולף תוצאת כתוביות של סרטון YouTube שנשלחה לתור, לפי `id`. מחזיר `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` ו-`items`. עטוף במעטפת של DataForSEO: הנתונים ב-`tasks[0].result`, והתוצאה ב-`tasks[0].status_code` — בקשה שנדחתה עדיין מחזירה HTTP 200.



### מראה תמחור

- מדידה: עלות תגובה מדווחת.
- אומדן בקשת ייחוס: 0.02 דולר ארה״ב.
- מכפיל לקוח לייחוס: 1.0. אין להחיל אותו בשנית על סכום לקוח שכבר נקבע.

זהו מטא-נתון לעיון בלבד, לא הצעת מחיר לחשבון, לא מחיר מובטח ולא תקרת הוצאה. קרדיטי משאבים אינם קרדיטים של Felo. החיוב הסופי נעשה לפי רשומות החיוב של Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>מזהה המשימה</em><br><strong>מזהה משימה ייחודי במערכת שלנו בפורמט UUID</strong><br>אפשר להשתמש בו במשך <strong>30 יום</strong> כדי לבקש את תוצאות המשימה בכל עת |

## Responses

### 200 — פעולה מוצלחת

Headers:
- `X-Request-Id` (string) — מזהה בקשה לכלול בעת פנייה לתמיכת Felo.

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoSubtitlesTaskGetAdvancedResponseInfo`

```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_SerpYoutubeVideoSubtitlesTaskGetAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>מערך משימות</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoSubtitlesTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoSubtitlesTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>מזהה הסרטון שהתקבל במערך POST</em>"
    },
    "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 ישירה לתוצאות מנוע החיפוש<br></em>אפשר להשתמש בה כדי לוודא שסיפקנו תוצאות מדויקות"
    },
    "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>אם מנוע החיפוש סיפק תוצאות עבור מילת מפתח שתוקנה, נציין את מילת המפתח שתוקנה על ידי מנוע החיפוש ואת סוג התיקון האוטומטי"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>סוגי תוצאות חיפוש ב-SERP</em><br>מכיל את סוגי תוצאות החיפוש (<code>items</code>) שנמצאו ב-SERP.<br>פריט אפשרי:<br><code>youtube_subtitles</code>"
    },
    "unsupported_language": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>מציין אם השפה אינה נתמכת במערכת</em>"
    },
    "translate_language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>קוד השפה של הטקסט המתורגם</em>"
    },
    "origin_language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>קוד השפה של הטקסט המקורי</em>"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>הקטגוריה שאליה משתייך הסרטון</em><br><strong>הערה:</strong> השדה הזה מיושן ותמיד מחזיר <code>null</code>"
    },
    "subtitles_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>מספר הכתוביות בסרטון</em>",
      "format": "int64"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>כותרת הסרטון</em>"
    },
    "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_YoutubeSubtitles"
          }
        ]
      },
      "description": "<em>רכיבי תוצאות החיפוש שנמצאו ב-SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoSubtitlesTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoSubtitlesTaskGetAdvancedTaskInfo`

```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_SerpYoutubeVideoSubtitlesTaskGetAdvancedResultInfo"
              }
            ]
          },
          "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"
    }
  }
}
```

### Response36Afe1097B20_YoutubeSubtitles

`#/components/schemas/Response36Afe1097B20_YoutubeSubtitles`

```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"
    },
    "text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>טקסט מתורגם בכתוביות</em>"
    },
    "start_time": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>השנייה שבה מתחיל הטקסט עם הכתוביות</em>"
    },
    "end_time": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>השנייה שבה מסתיים הטקסט עם הכתוביות</em>"
    },
    "duration_time": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>משך הכתוביות בשניות</em>"
    }
  }
}
```
