# Google 호텔 검색 작업 생성

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/business_data/google/hotel_searches/task_post`

**Tags:** DataForSEO

Google Hotels 검색을 대기열에 넣고 작업 `id`를 반환합니다. DataForSEO 응답 봉투로 감싸집니다. 데이터는 `tasks[0].result`에, 결과는 `tasks[0].status_code`에 있으며, 거부된 요청도 여전히 HTTP 200을 반환합니다. `get_dataforseo_business_google_hotel_searches_fetch`로 가져오세요.

### 가격 참고

- 과금 기준: 응답에 보고된 비용.
- 참고 요청 추정치: USD 0.2428.
- 참고 고객 배수: 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": {
          "keyword": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>키워드</em><br>선택 필드<br>지정하는 키워드는 호텔 목록을 검색하는 데 사용됩니다;<br>이 필드를 사용하지 않으면 지정한 위치에서 찾은 호텔 목록을 반환합니다;<br><code>keyword</code> 필드에는 <strong>최대 700자</strong>까지 지정할 수 있습니다<br><strong>모든 %##가 디코딩됩니다(‘+’ 문자는 공백 문자로 디코딩됨)</strong><br><code>keyword</code>에 “%” 문자를 사용해야 하는 경우 “%25”로 지정하세요; <br><strong>참고:</strong> 정확한 검색 결과를 얻으려면 위치 이름이 키워드 뒤에 자동으로 추가됩니다<p>DataForSEO API의 <code>keyword</code> 및 <code>keywords</code> 필드 규칙과 제한은 이 <a href=\"https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis\" rel=\"noopener noreferrer\" target=\"_blank\">Help Center 문서</a>에서 확인하세요"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>작업 우선순위</em><br>선택 필드<br>다음 값을 사용할 수 있습니다:<br>1 – 일반 실행 우선순위(기본으로 설정됨)<br>2 – 높은 실행 우선순위. 높은 실행 우선순위 작업에는 추가 요금이 부과됩니다.<br>비용은 <a title=\"Pricing\" href=\"https://dataforseo.com/pricing/business-data/google-hotels-api\" target=\"_blank\" rel=\"noopener noreferrer\">가격</a> 페이지에서 계산할 수 있습니다."
          },
          "location_name": {
            "type": "string",
            "description": "<em>검색 엔진 위치의 전체 이름</em><br><strong><code>location_code</code> 또는 <code>location_coordinate</code>를 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>location_code</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong><br>사용 가능한 위치와 해당 <code>location_name</code> 목록은 다음 주소로 별도 요청해 받을 수 있습니다<code>https://api.dataforseo.com/v3/business_data/google/locations</code><br>예:<br><code class=\"long-string\">London,England,United Kingdom</code><br><strong>참고:</strong> 정확한 검색 결과를 얻으려면 지정한 <code>location_name</code>이 키워드 뒤에 자동으로 추가됩니다"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>검색 엔진 위치 코드</em><br><strong><code>location_name</code> 또는 <code>location_coordinate</code>를 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong><br>사용 가능한 위치와 해당 <code>location_code</code> 목록은 다음 주소로 별도 요청해 받을 수 있습니다<code>https://api.dataforseo.com/v3/business_data/google/locations</code><br>예:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>위치의 GPS 좌표</em><br><strong><code>location_name</code> 또는 <code>location_code</code>를 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_code</code>를 지정할 필요가 없습니다</strong><br><code>location_coordinate</code> 매개변수는 <em>\"latitude,longitude\"</em> 형식으로 지정해야 합니다<br><em>\"latitude\"</em>와 <em>\"longitude\"</em>의 최대 소수 자릿수: 7<br><strong>참고</strong>: 좌표로 위치를 지정하면 가장 가까운 정착지에서 검색이 수행됩니다;<br>예:<br><code class=\"long-string\">53.476225,-2.243572</code>"
          },
          "search_this_area": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>표시된 영역의 호텔 표시</em><br>선택 필드<br><code>true</code>, <code>false</code> 값을 사용할 수 있습니다<br>기본값: <code>true</code><br><code>false</code>로 설정하면 <code>search_this_area</code> 모드가 꺼집니다<br><strong>참고:</strong> <code>search_this_area</code> 모드가 꺼져 있으면 검색 시 <code>location_name</code>이 <code>keyword</code>에 추가되지 않습니다<br>이 매개변수에 대한 자세한 내용은 <a href=\"https://dataforseo.com/help-center/how-to-use-search_this_area-parameter-in-google-hotel-searches\" target=\"_blank\">Help Center</a>에서 확인하세요"
          },
          "language_name": {
            "type": "string",
            "description": "<em>검색 엔진 언어의 전체 이름</em><br><strong><code>language_code</code>를 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>language_code</code>를 지정할 필요가 없습니다</strong><br>사용 가능한 언어와 해당 <code>language_name</code> 목록은 다음 주소로 별도 요청해 받을 수 있습니다 <code>https://api.dataforseo.com/v3/business_data/google/languages</code><br>예:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>검색 엔진 언어 코드</em><br><strong><code>language_name</code>을 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>language_name</code>을 지정할 필요가 없습니다</strong><br>사용 가능한 언어와 해당 <code>language_code</code> 목록은 다음 주소로 별도 요청해 받을 수 있습니다 <code>https://api.dataforseo.com/v3/business_data/google/languages</code><em><br></em>예:<em><br></em><code class=\"long-string\">en</code>"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>파싱 깊이</em><br>선택 필드<br>Google Hotels의 결과 수<br>기본값: 유기적 결과 <code>18</code>개<br>최댓값: <code>140</code><br><strong>참고:</strong> 응답의 유료 목록과 관계없이 유기적 결과 18개마다 계정에 요금이 청구됩니다;<br>따라서 깊이를 <code>18</code>보다 크게 설정하면 Google Hotels가 18개를 초과하는 결과를 반환할 때 추가 요금이 발생할 수 있습니다;<br>지정한 깊이가 응답의 결과 수보다 크면 차액이 계정 잔액으로 자동 환불됩니다"
          },
          "check_in": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>체크인 날짜</em><br>선택 필드<br>이 필드를 지정하지 않으면 기본값으로 내일 날짜가 사용됩니다;<br>날짜 형식: <code>\"yyyy-mm-dd\"</code><br>예:<br><code>\"2019-01-15\"</code><br><strong>참고:</strong> 값은 오늘 날짜보다 앞설 수 없습니다"
          },
          "check_out": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>체크아웃 날짜</em><br>선택 필드<br>이 필드를 지정하지 않으면 시스템이 기본값으로 이틀 뒤 날짜를 적용합니다;<br>날짜 형식: <code>\"yyyy-mm-dd\"</code><br>예:<br><code>\"2019-01-15\"</code><br><strong>참고:</strong> 값은 <code>check_in</code>보다 작거나 같을 수 없습니다;<br><code>check_in</code>과 <code>check_out</code> 값 사이의 범위는 30일을 초과할 수 없습니다"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>통화</em><br>선택 필드<br>예:<br><code>\"USD\"</code>"
          },
          "adults": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>성인 수</em><br>선택 필드<br>이 필드를 지정하지 않으면 기본값 <code>2</code>가 적용됩니다;<br><strong>참고:</strong> 성인과 아동을 포함해 최대 6명까지 지정할 수 있습니다<br>예:<br><code>1</code>"
          },
          "children": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>아동 수와 나이</em><br>선택 필드<br>이 필드를 지정하지 않으면 검색에 아동이 포함되지 않습니다;<br>아동 나이는 <code>0</code>부터 <code>17</code>까지입니다;<br><strong>참고:</strong> 성인과 아동을 포함해 최대 6명까지 지정할 수 있습니다<br>14세 아동 한 명을 포함하려면 다음 값을 설정하세요:<br><code>[14]</code><br>13세 아동 한 명과 8세 아동 한 명을 포함하려면 다음 값을 설정하세요:<br><code>[13,8]</code>"
          },
          "stars": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>호텔 등급</em><br>선택 필드<br>5성급 호텔 목록만 받으려면 이 필드를 <code>[5]</code>로 설정하세요<br>예:<br><code>[3,4,5]</code>"
          },
          "min_rating": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>최소 평점</em><br>선택 필드<br>이 필드를 사용해 특정 값보다 높은 게스트 평점을 지정할 수 있습니다<br>예:<br><code>2.5</code>"
          },
          "sort_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>결과 정렬 매개변수</em><br>선택 필드<br>이 필드를 사용해 결과를 정렬할 수 있습니다<br>가능한 정렬 유형:<br><code>relevance</code> – 관련성 높은 순으로 정렬<br><code>lowest_price</code> – 최저 가격순으로 정렬<br><code>highest_rating</code> – 최고 평점순으로 정렬<br><code>most_reviewed</code> – 리뷰 많은 순으로 정렬<br>기본값: <code>relevance</code>"
          },
          "min_price": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>1박당 최소 가격</em><br>선택 필드<br>이 값의 통화는 <code>currency</code> 필드에 따릅니다<br>예:<br><code>100</code>"
          },
          "max_price": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>1박당 최대 가격</em><br>선택 필드<br>이 값의 통화는 <code>currency</code> 필드에 따릅니다<br>예:<br><code>600</code>"
          },
          "free_cancellation": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>무료 취소가 가능한 호텔</em><br>선택 필드<br>예약 무료 취소가 가능한 호텔 목록을 받으려면 이 필드를 <code>true</code>로 설정하세요<br>기본값: <code>false</code>"
          },
          "is_vacation_rentals": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>휴가용 임대 숙소 검색</em><br>선택 필드<br>호텔 대신 휴가용 임대 숙소 목록을 받으려면 이 필드를 <code>true</code>로 설정하세요<br>기본값: <code>false</code>"
          },
          "amenities": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>호텔 편의시설</em><br>선택 필드<br>이 필드를 사용해 다양한 호텔 편의시설을 지정할 수 있습니다<br>예:<br><code>  [<br>            \"free_parking\",<br>            \"pets_allowed\"<br>        ]<br></code><br>가능한 값:<br><code>\"air_conditioning\",<br>\"all_inclusive_available\",<br>\"bar\",<br>\"free_breakfast\",<br>\"fitness_center\",<br>\"kid_friendly\",<br>\"free_parking\",<br>\"pets_allowed\",<br>\"pool\",<br>\"restaurant\",<br>\"room_service\",<br>\"spa\",<br>\"free_wifi\",<br>\"parking\",<br>\"indoor_pool\",<br>\"outdoor_pool\",<br>\"wheelchair_accessible\",<br>\"beach_access\"</code>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 정의 작업 식별자</em><br>선택 필드<br><em>최대 255자</em><br>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<br><code>tag</code>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>작업 결과를 보내는 URL</em><br>선택 필드<br>작업이 완료되면 결과를 <code>gzip</code> 형식으로 압축해 지정한 <code>postback_url</code>로 POST 요청을 보냅니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<br>예:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>참고:</strong> <code>postback_url</code>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>완료된 작업의 알림 URL</em><br>선택 필드<br>작업이 완료되면 지정한 URL로 GET 요청을 보내 알립니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<br>예:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>참고:</strong> <code>pingback_url</code>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_name": "New York,New York,United States",
            "keyword": "cheap hotel",
            "check_in": "2023-06-01",
            "check_out": "2023-06-30",
            "currency": "USD",
            "adults": 2,
            "children": [
              "14"
            ],
            "sort_by": "highest_rating",
            "priority": 2,
            "tag": "example"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_name": "New York,New York,United States",
      "keyword": "cheap hotel",
      "check_in": "2023-06-01",
      "check_out": "2023-06-30",
      "currency": "USD",
      "adults": 2,
      "children": [
        "14"
      ],
      "sort_by": "highest_rating",
      "priority": 2,
      "tag": "example"
    }
  ]
}
```

## Responses

### 200 — 작업 성공

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

**application/json**

Schema: object | null

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

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

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskPostResponseInfo`

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

### Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>결과 배열</em><br>이 경우 값은 <code>null</code>입니다"
        }
      }
    }
  ]
}
```
