# OnPage API 페이지 스크린샷

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/on_page/page_screenshot`

**Tags:** DataForSEO

모든 `url`을 렌더링해 스크린샷을 반환하며, `full_page_screenshot`은 전체 스크롤 높이를, `browser_screen_width`와 `browser_screen_height`는 뷰포트를 설정합니다. 단독 실행이며 크롤링이 필요 없습니다. DataForSEO 응답 봉투로 감싸집니다. 데이터는 `tasks[0].result`, 처리 결과는 `tasks[0].status_code`에 있으며, 거부된 요청도 HTTP 200을 반환합니다. ⚠️ 이미지는 에이전트가 아무것도 하기 전에도 큰 도구 결과입니다. 시각적 확인이 목적일 때만 스크린샷을 요청하고, 텍스트가 목적이면 `post_dataforseo_on_page_content_parsing_live`를 사용하세요.

### 가격 참고

- 과금 기준: 응답에 보고된 비용.
- 참고 요청 추정치: USD 0.0051.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참고용 메타데이터일 뿐이며, 계정 견적 또는 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## 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": {
          "url": {
            "type": "string",
            "description": "<em>페이지 URL</em><br><strong>필수 필드</strong><br>스냅할 페이지의 절대 URL<br><strong>참고:</strong> 여기에 지정한 URL이 404 상태 코드를 반환하거나 지정한 값이 유효한 URL이 아니면 응답 배열에서 <code>\"error_message\":\"Screenshot is empty\"</code>가 반환됩니다"
          },
          "accept_language": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>웹사이트 액세스용 언어 헤더</em><br>선택 필드<br>모든 로케일 형식(xx, xx-XX, xxx-XX 등)을 지원합니다<br><strong>참고:</strong> 이 매개변수를 지정하지 않으면 일부 웹사이트가 액세스를 거부할 수 있으며, 이 경우 응답 배열에서 <code>\"error_message\":\"Screenshot is empty\"</code>가 반환됩니다"
          },
          "custom_user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 지정 User-Agent</em><br>선택 필드<br>웹사이트 크롤링에 사용할 사용자 지정 User-Agent<br>예: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36<br></code><br>기본값: <code>Mozilla/5.0 (compatible; RSiteAuditor)</code>"
          },
          "browser_preset": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>브라우저 화면 매개변수 프리셋</em><br>선택 필드<br>이 필드를 사용하면 <code>browser_screen_width</code>, <code>browser_screen_height</code>, <code>browser_screen_scale_factor</code>를 지정할 필요가 없습니다<p>가능한 값:<br><code>desktop</code>, <code>mobile</code>, <code>tablet</code><p><code>desktop</code> 프리셋은 다음 값을 적용합니다:<p><code>browser_screen_width: 1920</code><br><code>browser_screen_height: 1080</code><br><code>browser_screen_scale_factor: 1</code><p><code>mobile</code> 프리셋은 다음 값을 적용합니다:<p><code>browser_screen_width: 390</code><br><code>browser_screen_height: 844</code><br><code>browser_screen_scale_factor: 3</code><p><code>tablet</code> 프리셋은 다음 값을 적용합니다:<p><code>browser_screen_width: 1024</code><br><code>browser_screen_height: 1366</code><br><code>browser_screen_scale_factor: 2</code><p><strong>참고:</strong> 이 엔드포인트에서는 <code>enable_browser_rendering</code>, <code>enable_javascript</code>, <code>load_resources</code>, <code>enable_xhr</code> 매개변수가 항상 활성화됩니다."
          },
          "browser_screen_width": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>브라우저 화면 너비</em><br>선택 필드<br>특정 기기에 대한 감사를 수행하도록 사용자 지정 브라우저 화면 너비를 설정할 수 있습니다;<br>이 필드를 사용하면 <code>browser_preset</code>은 무시되므로 지정할 필요가 없습니다;<p>최솟값(픽셀): <code>240</code> <br>최댓값(픽셀): <code>9999</code>",
            "format": "int64"
          },
          "browser_screen_height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>브라우저 화면 높이</em><br>선택 필드<br>특정 기기에 대한 감사를 수행하도록 사용자 지정 브라우저 화면 높이를 설정할 수 있습니다;<br>이 필드를 사용하면 <code>browser_preset</code>은 무시되므로 지정할 필요가 없습니다;<p>최솟값(픽셀): <code>240</code> <br>최댓값(픽셀): <code>9999</code>"
          },
          "browser_screen_scale_factor": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>브라우저 화면 배율</em><br>선택 필드<br>특정 기기에 대한 감사를 수행하도록 사용자 지정 브라우저 화면 해상도 비율을 설정할 수 있습니다;<br>이 필드를 사용하면 <code>browser_preset</code>은 무시되므로 지정할 필요가 없습니다;<p>최솟값: <code>0.5</code> <br>최댓값: <code>3</code>"
          },
          "full_page_screenshot": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>전체 페이지 스크린샷 찍기</em><br>선택 필드<br>스크롤하기 전에 표시되는 페이지 부분만 캡처하려면 <code>false</code>로 설정하세요<br>기본값: <code>true</code>"
          },
          "disable_cookie_popup": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>쿠키 팝업 비활성화 </em><br>선택 필드<br>사용자에게 쿠키 동의를 요청하는 팝업을 비활성화하려면 <code>true</code>로 설정하세요;<br>기본값: <br><code>false</code>"
          },
          "switch_pool": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>프록시 풀 전환</em><br>선택 필드<br><code>true</code>이면 추가 프록시 풀을 사용하여 요청한 데이터를 가져옵니다;<br>이 매개변수는 다수의 작업이 동시에 설정되어 간헐적으로 <code>rate-limit</code> 및/또는 <code>site_unreachable</code> 오류가 발생하는 경우 사용할 수 있습니다"
          },
          "ip_pool_for_scan": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>프록시 풀</em><br>선택 필드<br>요청한 데이터를 가져오는 데 사용할 프록시 풀의 위치를 선택할 수 있습니다;<br>이 매개변수는 한 위치에서 페이지 콘텐츠에 액세스할 수 없어 간헐적으로 <code>site_unreachable</code> 오류가 발생하는 경우 사용할 수 있습니다<br>가능한 값: <code>us</code>, <code>de</code>"
          }
        },
        "example": [
          {
            "url": "https://dataforseo.com/apis"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "url": "https://dataforseo.com/apis"
    }
  ]
}
```

## Responses

### 200 — 작업 성공

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object | null

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

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 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": "전체 작업 비용, USD",
      "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": "작업의 상태 코드\nDataForSEO가 생성하며 10000-60000 범위일 수 있습니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업의 정보 메시지\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "실행 시간, 초"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "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_OnPagePageScreenshotResponseInfo

`#/components/schemas/Response36Afe1097B20_OnPagePageScreenshotResponseInfo`

```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_OnPagePageScreenshotTaskInfo"
              }
            ]
          },
          "description": "<em>작업 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_OnPagePageScreenshotResultInfo

`#/components/schemas/Response36Afe1097B20_OnPagePageScreenshotResultInfo`

```json
{
  "type": "object",
  "properties": {
    "crawl_progress": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>크롤링 세션 상태</em><br>가능한 값: <code>in_progress</code>, <code>finished</code>"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>오류 메시지</em><br>지정한 <code>url</code>이 404 상태 코드를 반환하거나 유효한 URL이 아니면 <code>\"error_message\":\"Screenshot is empty\"</code>를 받게 됩니다<br>오류가 없으면 값은 <code>null</code>입니다"
    },
    "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_OnPagePageScreenshotTaskInfo

`#/components/schemas/Response36Afe1097B20_OnPagePageScreenshotTaskInfo`

```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_OnPagePageScreenshotResultInfo"
              }
            ]
          },
          "description": "<em>결과 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_ScreenshotItem

`#/components/schemas/Response36Afe1097B20_ScreenshotItem`

```json
{
  "type": "object",
  "properties": {
    "image": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>요청한 페이지의 스크린샷</em><br>DataForSEO 스토리지에 있는 페이지 스크린샷의 URL<br><strong>참고: DataForSEO 스토리지에 저장된 페이지 스크린샷은 요청 후 하루 동안만 액세스할 수 있습니다</strong>"
    }
  }
}
```
