# OnPage API 리소스

**API:** Data API

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

**Tags:** DataForSEO

크롤링에서 발견된 페이지 이외 자산(이미지, 스크립트, 스타일시트)과 해당 상태 코드 및 크기입니다. 페이지 넘김에는 `search_after_token`을 사용합니다. 완료된 크롤링을 읽으므로 `post_dataforseo_on_page_submit`에서 받은 `id`가 필요하며, `crawl_progress`와 `max_crawl_pages`, `pages_in_queue`, `pages_crawled` 값을 담은 `crawl_status`를 반환합니다. 결과가 적을 때는 이 값을 먼저 확인하세요. 아직 실행 중인 크롤링은 보고할 내용이 적을 뿐입니다. 크롤러가 전혀 접근할 수 없었던 자산은 `post_dataforseo_on_page_uncrawlable_resources`를 사용하세요. 💰 업스트림 무료: 완료된 크롤링 조회에는 비용이 들지 않으며, 크롤링 자체에만 비용이 발생합니다.

### 가격 참고

- 과금 기준: 응답에 보고된 비용.
- 참고 요청 추정치: USD 0.012.
- 참고 고객 배수: 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": {
          "id": {
            "type": "string",
            "description": "<em>작업 ID</em><br><strong>필수 필드</strong><br>이 ID는 <a href=\"/v3/on_page/task_post/\">Task POST</a> 엔드포인트의 응답에서 얻을 수 있습니다<br>예:<br>\"07131248-1535-0216-1000-17384017ad04\""
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>페이지 URL</em><br>선택 필드<br>특정 페이지의 리소스를 얻으려면 이 필드를 지정하세요<br>특정 URL에서 리소스의 <code>meta</code>를 얻으려면 이 필드에 URL을 지정해야 합니다;<br>작업을 설정할 때 <code>url</code>을 지정하지 않으면 결과의 리소스 <code>meta</code>는 크롤러가 리소스를 처음 발견한 페이지의 데이터를 기준으로 반환됩니다"
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>반환되는 최대 리소스 수</em><br>선택 필드<br>기본값: <code>100</code><br>최댓값: <code>1000</code>"
          },
          "offset": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>반환된 리소스의 결과 배열에서의 오프셋</em><br>선택 필드<br>기본값: <code>0</code><br>최댓값: <code>2000000</code><br><code>10</code> 값을 지정하면 결과 배열의 처음 열 리소스를 건너뛰고 이후 리소스의 데이터를 제공합니다"
          },
          "filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>결과 필터링 매개변수 배열</em><br>선택 필드<br><strong>필터를 한 번에 여러 개 추가할 수 있습니다(최대 8개)</strong><br>조건 사이에 논리 연산자 <code>and</code>, <code>or</code>를 설정해야 합니다<br>지원되는 연산자:<br><code>regex</code>, <code>not_regex</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>=</code>, <code>&lt;&gt;</code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code><br><code>like</code> 및 <code>not_like</code>와 함께 <code>%</code> 연산자를 사용하여 길이가 0 이상인 임의의 문자열을 일치시킬 수 있습니다<br>예:<br><code>[\"resource_type\",\"=\",\"stylesheet\"]</code><p><code>[[\"resource_type\",\"=\",\"image\"],<br>\"and\",[\"checks.is_https\",\"=\",false]]</code><p><code>[[\"fetch_timing.duration_time\",\">\",1],\"and\",[[\"total_transfer_size\",\"&gt;\",100],\"or\",[\"checks.high_loading_time\",\"=\",true]]]</code><p>사용 가능한 필터의 전체 목록은 <a href=\"/v3/on_page/filters_and_thresholds/?bash\" rel=\"noopener noreferrer\" target=\"_blank\">이 링크</a>에서 확인할 수 있습니다."
          },
          "relevant_pages_filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>관련 페이지별 리소스 필터링</em><br>선택 필드<br>이 필드를 사용하면 정의된 매개변수와 일치하는 페이지의 리소스를 얻을 수 있습니다<br><a href=\"/v3/on_page/pages/\" rel=\"noopener noreferrer\" target=\"_blank\">pages 엔드포인트</a>에서 사용할 수 있는 것과 동일한 필터를 여기에 적용할 수 있습니다<br><strong>필터를 한 번에 여러 개 추가할 수 있습니다(최대 8개)</strong><br>조건 사이에 논리 연산자 <code>and</code>, <code>or</code>를 설정해야 합니다<br>지원되는 연산자:<br><code>regex</code>, <code>not_regex</code>, <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code>, <code>=</code>, <code>&lt;&gt;</code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code><br><code>like</code> 및 <code>not_like</code>와 함께 <code>%</code> 연산자를 사용하여 길이가 0 이상인 임의의 문자열을 일치시킬 수 있습니다<br>예:<br><code>[\"checks.no_image_title\",\"=\",true]</code>"
          },
          "order_by": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>결과 정렬 규칙</em><br>선택 필드<br><code>filters</code> 배열과 동일한 값을 사용하여 결과를 정렬할 수 있습니다<br>가능한 정렬 유형:<br><code>asc</code> - 결과가 오름차순으로 정렬됩니다<br><code>desc</code> - 결과가 내림차순으로 정렬됩니다<br>정렬 유형을 설정하려면 쉼표를 사용해야 합니다<br>예:<br><code>[\"size,desc\"]</code><br><strong>단일 요청에서 정렬 규칙은 최대 세 개까지 설정할 수 있습니다</strong><br>여러 정렬 규칙을 구분하려면 쉼표를 사용해야 합니다<br>예:<br><code>[\"size,desc\",\"fetch_timing.fetch_end,desc\"]</code>"
          },
          "search_after_token": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>후속 요청을 위한 토큰</em><br>선택 필드<br>각 요청에 대한 응답의 동일한 필드에서 제공됩니다.<br>단일 요청으로 <code>20,000</code>개를 초과하는 결과를 가져올 때 타임아웃을 피하려면 이 매개변수를 사용하세요.<br>응답 배열에서 고유한 <code>search_after_token</code> 값을 지정하면 초기 작업의 후속 결과를 받게 됩니다.<br><code>search_after_token</code> 값은 후속 작업마다 고유합니다.<br><strong>참고:</strong> 요청에 <code>search_after_token</code>을 지정한 경우 다른 모든 매개변수는 이전 요청과 동일해야 합니다."
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 정의 작업 식별자</em><br>선택 필드<br><em>최대 255자</em><br>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<br><code>tag</code>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          }
        },
        "example": [
          {
            "id": "07281559-0695-0216-0000-c269be8b7592",
            "filters": [
              [
                "resource_type",
                "=",
                "image"
              ],
              "and",
              [
                "size",
                ">",
                100000
              ]
            ],
            "order_by": [
              "size,desc"
            ],
            "limit": 10
          }
        ]
      }
    ]
  },
  "example": [
    {
      "id": "07281559-0695-0216-0000-c269be8b7592",
      "filters": [
        [
          "resource_type",
          "=",
          "image"
        ],
        "and",
        [
          "size",
          ">",
          100000
        ]
      ],
      "order_by": [
        "size,desc"
      ],
      "limit": 10
    }
  ]
}
```

## Responses

### 200 — 작업 성공

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

**application/json**

Schema: object | null

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

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

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

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseOnPageResourceItem

`#/components/schemas/Response36Afe1097B20_BaseOnPageResourceItem`

```json
{
  "type": "object",
  "properties": {
    "resource_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다.\n참고: 관련 예외 또는 오류 조건을 처리하는 시스템을 반드시 설계할 것을 강력히 권장합니다."
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "description": "위치 헤더, 페이지를 리디렉션할 URL을 나타냅니다"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "페이지 URL"
    },
    "resource_errors": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_OnPageResourceIssueInfo"
        }
      ],
      "description": "리소스 오류 및 경고"
    },
    "size": {
      "type": [
        "integer",
        "null"
      ],
      "description": "리소스 크기, 지정된 페이지의 크기를 바이트 단위로 나타냅니다"
    },
    "encoded_size": {
      "type": [
        "integer",
        "null"
      ],
      "description": "인코딩 후 페이지 크기, 인코딩된 페이지의 크기를 바이트 단위로 나타냅니다"
    },
    "total_transfer_size": {
      "type": [
        "integer",
        "null"
      ],
      "description": "압축된 페이지 크기, 지정된 페이지의 압축 크기를 나타냅니다",
      "format": "int64"
    },
    "fetch_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "리소스를 가져온 날짜와 시간, UTC 형식: “yyyy-mm-dd hh-mm-ss +00:00” 예: 2019-11-15 12:57:46 +00:00"
    },
    "cache_control": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_CacheControl"
        }
      ],
      "description": "캐싱 지침"
    },
    "checks": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "description": "웹사이트 검사, 페이지 관련 온페이지 점검"
    },
    "content_encoding": {
      "type": [
        "string",
        "null"
      ],
      "description": "인코딩 유형"
    },
    "media_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "페이지를 표시하는 데 사용되는 미디어 유형"
    },
    "server": {
      "type": [
        "string",
        "null"
      ],
      "description": "서버 버전"
    },
    "last_modified": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_LastModified"
        }
      ],
      "description": "리소스와 관련된 변경 데이터를 포함합니다. 데이터가 없으면 값은 null입니다"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "resource_type",
    "mapping": {
      "html": "#/components/schemas/Response36Afe1097B20_OnPageHtmlResourceItem",
      "broken": "#/components/schemas/Response36Afe1097B20_OnPageBrokenResourceItem",
      "redirect": "#/components/schemas/Response36Afe1097B20_OnPageRedirectResourceItem",
      "script": "#/components/schemas/Response36Afe1097B20_OnPageScriptResourceItem",
      "image": "#/components/schemas/Response36Afe1097B20_OnPageImageResourceItem",
      "stylesheet": "#/components/schemas/Response36Afe1097B20_OnPageStylesheetResourceItem"
    }
  }
}
```

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

`#/components/schemas/Response36Afe1097B20_CacheControl`

```json
{
  "type": "object",
  "properties": {
    "cachable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "페이지를 캐시할 수 있는지 나타냅니다"
    },
    "ttl": {
      "type": [
        "integer",
        "null"
      ],
      "description": "캐시 수명, 브라우저가 리소스를 캐시하는 시간"
    }
  }
}
```

### Response36Afe1097B20_CrawlStatusInfo

`#/components/schemas/Response36Afe1097B20_CrawlStatusInfo`

```json
{
  "type": "object",
  "properties": {
    "max_crawl_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "크롤링할 최대 페이지 수\n작업을 설정할 때 지정한 max_crawl_pages 한도를 나타냅니다",
      "format": "int64"
    },
    "pages_in_queue": {
      "type": [
        "integer",
        "null"
      ],
      "description": "현재 크롤링 대기열에 있는 페이지 수",
      "format": "int64"
    },
    "pages_crawled": {
      "type": [
        "integer",
        "null"
      ],
      "description": "크롤링된 페이지 수",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_LastModified

`#/components/schemas/Response36Afe1097B20_LastModified`

```json
{
  "type": "object",
  "properties": {
    "header": {
      "type": [
        "string",
        "null"
      ],
      "description": "헤더가 마지막으로 수정된 날짜와 시간. UTC 형식: \"yyyy-mm-dd hh-mm-ss +00:00\". 예: 2019-11-15 12:57:46 +00:00. 데이터가 없으면 값은 null입니다"
    },
    "sitemap": {
      "type": [
        "string",
        "null"
      ],
      "description": "사이트맵이 마지막으로 수정된 날짜와 시간. UTC 형식: \"yyyy-mm-dd hh-mm-ss +00:00\". 예: 2019-11-15 12:57:46 +00:00. 데이터가 없으면 값은 null입니다"
    },
    "meta_tag": {
      "type": [
        "string",
        "null"
      ],
      "description": "메타 태그가 마지막으로 수정된 날짜와 시간. UTC 형식: \"yyyy-mm-dd hh-mm-ss +00:00\". 예: 2019-11-15 12:57:46 +00:00. 데이터가 없으면 값은 null입니다"
    }
  }
}
```

### Response36Afe1097B20_OnPageResourceIssueInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourceIssueInfo`

```json
{
  "type": "object",
  "properties": {
    "errors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_OnPageResourceIssueItemInfo"
          }
        ]
      },
      "description": "리소스 오류"
    },
    "warnings": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_OnPageResourceIssueItemInfo"
          }
        ]
      },
      "description": "리소스 경고"
    }
  },
  "description": "리소스 오류 및 경고"
}
```

### Response36Afe1097B20_OnPageResourceIssueItemInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourceIssueItemInfo`

```json
{
  "type": "object",
  "properties": {
    "line": {
      "type": [
        "integer",
        "null"
      ],
      "description": "오류가 발견된 줄"
    },
    "column": {
      "type": [
        "integer",
        "null"
      ],
      "description": "오류가 발견된 열"
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "오류의 텍스트 메시지. 가능한 HTML 오류의 전체 목록은 여기에서 확인할 수 있습니다"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다.\n참고: 관련 예외 또는 오류 조건을 처리하는 시스템을 반드시 설계할 것을 강력히 권장합니다."
    }
  }
}
```

### Response36Afe1097B20_OnPageResourcesResponseInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourcesResponseInfo`

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

### Response36Afe1097B20_OnPageResourcesResultInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourcesResultInfo`

```json
{
  "type": "object",
  "properties": {
    "crawl_progress": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>크롤링 세션 상태</em><br>가능한 값: <code>in_progress</code>, <code>finished</code>"
    },
    "crawl_status": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_CrawlStatusInfo"
        }
      ],
      "description": "<em>크롤링 세션 세부 정보</em>"
    },
    "search_after_token": {
      "type": [
        "string",
        "null"
      ]
    },
    "current_offset": {
      "type": [
        "integer",
        "null"
      ]
    },
    "total_items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>크롤링된 관련 항목 총 개수</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>결과 배열의 항목 수</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseOnPageResourceItem"
          }
        ]
      },
      "description": "<em>항목 배열</em>"
    }
  }
}
```

### Response36Afe1097B20_OnPageResourcesTaskInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourcesTaskInfo`

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