# צילום מסך של דף ב-SERP API

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/screenshot`

**Tags:** DataForSEO

מחזיר צילום מסך מרונדר של עמוד תוצאות חיפוש ב-Google. מחזיר `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`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string",
            "description": "<em>מזהה המשימה</em><br><strong>שדה חובה</strong><br>מזהה ייחודי של המשימה המשויכת בפורמט UUID<br>תוכלו להשתמש בו במשך <strong>7 ימים</strong> כדי לבקש את תוצאות המשימה בכל עת"
          },
          "browser_preset": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>הגדרה מראש של רזולוציית הדפדפן</em><br>שדה אופציונלי<br>הגדרה מראש של הדפדפן המשויכת לסוג מכשיר מסוים<br>יכול לקבל את הערכים: <code>desktop</code>, <code>tablet</code>, <code>mobile</code> <br><strong>הערה:</strong> כברירת מחדל, הגדרת הדפדפן מראש מתאימה לסוג המכשיר שצוין בבקשת POST"
          },
          "browser_screen_width": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>רוחב רזולוציית הדפדפן</em><br>שדה אופציונלי<br>אפשר לציין אותו בטווח הבא: <code>240-9999</code><br>ערך ברירת מחדל עבור <code>desktop</code>: 1920<br>ערך ברירת מחדל עבור <code>mobile</code>: 390<br>ערך ברירת מחדל עבור <code>table</code>: 1024",
            "format": "int64"
          },
          "browser_screen_height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>גובה רזולוציית הדפדפן</em><br>שדה אופציונלי<br>אפשר לציין אותו בטווח הבא: <code>240-9999</code><br>ערך ברירת מחדל עבור <code>desktop</code>: 1080<br>ערך ברירת מחדל עבור <code>mobile</code>: 844<br>ערך ברירת מחדל עבור <code>table</code>: 1366"
          },
          "browser_screen_scale_factor": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>מקדם קנה המידה של הדפדפן</em><br>שדה אופציונלי<br>אפשר לציין אותו בטווח הבא: <code>0.5-3</code><br>ערך ברירת מחדל עבור <code>desktop</code>: 1<br>ערך ברירת מחדל עבור <code>mobile</code>: 3<br>ערך ברירת מחדל עבור <code>table</code>: 2"
          },
          "page": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>מספר עמודי SERP</em><br>שדה אופציונלי<br>אם <code>depth</code> בבקשת Task POST המתאימה עולה על 10 תוצאות (או עמוד SERP אחד), ציינו את מספר עמודי ה-SERP לצילום;<br>ערך ברירת מחדל: <code>1</code>"
          }
        },
        "example": [
          {
            "task_id": "06211235-0696-0139-1000-36727fbd3c90",
            "browser_screen_scale_factor": 0.5
          }
        ]
      }
    ]
  },
  "example": [
    {
      "task_id": "06211235-0696-0139-1000-36727fbd3c90",
      "browser_screen_scale_factor": 0.5
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_ScreenshotItem`

```json
{
  "type": "object",
  "properties": {
    "image": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>צילום מסך של העמוד המבוקש</em><br>כתובת URL של צילום המסך של העמוד באחסון DataForSEO<br><strong>הערה: צילום המסך של העמוד שנשמר באחסון DataForSEO נשאר נגיש ליום אחד בלבד לאחר ביצוע הבקשה</strong>"
    }
  }
}
```

### Response36Afe1097B20_SerpScreenshotResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpScreenshotResponseInfo`

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

### Response36Afe1097B20_SerpScreenshotResultInfo

`#/components/schemas/Response36Afe1097B20_SerpScreenshotResultInfo`

```json
{
  "type": "object",
  "properties": {
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>מספר הפריטים במערך התוצאות</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ScreenshotItem"
          }
        ]
      },
      "description": "<em>מערך הפריטים</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpScreenshotTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpScreenshotTaskInfo`

```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_SerpScreenshotResultInfo"
              }
            ]
          },
          "description": "<em>מערך תוצאות</em>"
        }
      }
    }
  ]
}
```
