API Hop 문서
Google Hotels API 참조
Google Hotels 호텔, 추천, 사진 및 리뷰를 검색합니다.
동시 실행 한도
AI와 Data는 각각 계정 전체의 동시 실행 슬롯을 공유합니다. 기본값은 AI 5 / Data 2이며 구독에 따라 달라집니다. 엔드포인트별 한도도 카테고리 전체 한도를 초과할 수 없습니다. 어느 한도든 도달하면 HTTP 429를 반환합니다. 비동기 작업은 실행이 끝날 때까지 슬롯을 차지합니다.
GET /v1/google-hotels/search GET /v1/google-hotels/autocomplete GET /v1/google-hotels/photos GET /v1/google-hotels/reviews Google Hotels 호텔, 추천, 사진 및 리뷰를 검색합니다.
인증 및 요금
기본 요금은 성공한 요청당 $0.0003(300 credits)입니다. API Hop API 키를 사용합니다. 접근은 활성 게이트웨이와 권한에 따라 결정됩니다. 성공한 요청 요금은 카탈로그와 계정을 확인하세요. 계정별 요금이 우선하며 성공한 빈 결과도 과금됩니다. 실패하면 예약 금액을 해제합니다. 제한 시간은 60초이며 자동 재시도와 페이지 처리가 없습니다. 정산 오류도 공급자 요청을 반복하지 않습니다.
Authorization: Bearer YOUR_API_KEYGoogle Hotels: 호텔 검색
GET https://api.apihop.ai/v1/google-hotels/search
매개변수
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
query | string | 검색어; query: optional | hotels in New York |
next_page_token | string | 다음 페이지 토큰; next_page_token: optional; UTF-8 bytes: 24576 | - |
currency | string | 통화 코드 (currency); currency: optional; ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, BGN, XPF, CAD, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, USD, UAH, AED, VND; ^[A-Z]{3}$ | USD |
country | string | 국가 또는 스토어 코드 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 언어; language: optional | - |
limit | integer | 결과 수 제한; limit: optional; min: 1; max: 100 | 1 |
device | string | 기기; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 응답 보관 안 함; zero_trace: optional | true |
check_in_date | string | 여행 날짜 (YYYY-MM-DD) 또는 지원 날짜 범위 (check_in_date); check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
check_out_date | string | 여행 날짜 (YYYY-MM-DD) 또는 지원 날짜 범위 (check_out_date); check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
adults | integer | 성인 수 (adults); adults: optional; min: 1; max: 100 | 1 |
children | integer | 어린이 수 (children); children: optional; min: 0; max: 99 | 0 |
children_ages | string | 어린이 나이 목록 (children_ages); 기본값: 12; children_ages: optional; UTF-8 bytes: 296; ^(?:[1-9]|1[0-7])(?:,(?:[1-9]|1[0-7])){0,98}$ | - |
sort_by | string | 정렬; sort_by: optional; relevance, lowest_price, highest_rating, most_reviewed | relevance |
min_price | integer | 최저 가격 (min_price); min_price: optional; min: 0; max: 2147483647 | 0 |
max_price | integer | 최고 가격 (max_price); max_price: optional; min: 1; max: 2147483647 | 1 |
rating | integer | 별점, 쉼표로 구분; 7 → 3.5+, 8 → 4.0+, 9 → 4.5+; rating: optional; 7, 8, 9 | 7 |
hotel_class | string | 숙박 조건 필터 (hotel_class); hotel_class: optional; UTF-8 bytes: 7 | - |
amenities | string | 숙박 조건 필터 (amenities); amenities: optional; UTF-8 bytes: 300; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
free_cancellation | boolean | 숙박 조건 필터 (free_cancellation); free_cancellation: optional | true |
special_offers | boolean | 숙박 조건 필터 (special_offers); special_offers: optional | true |
eco_certified | boolean | 숙박 조건 필터 (eco_certified); eco_certified: optional | true |
property_types | string | 숙박 조건 필터 (property_types); property_types: optional; UTF-8 bytes: 100; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
brands | string | 숙박 조건 필터 (brands); brands: optional; UTF-8 bytes: 300; ^[1-9][0-9]{0,5}(?:,[1-9][0-9]{0,5})*$ | - |
vacation_rentals | boolean | 숙박 조건 필터 (vacation_rentals); vacation_rentals: optional | true |
bedrooms | integer | 최소 침실 또는 침대 수 (bedrooms); bedrooms: optional; min: 0; max: 2147483647 | 0 |
bathrooms | integer | 최소 욕실 수 (bathrooms); bathrooms: optional; min: 0; max: 2147483647 | 0 |
property_token | string | 최신 응답에서 복사한 선택 토큰 (property_token); property_token: optional; UTF-8 bytes: 256; ^[A-Za-z0-9_-]{16,256}$ | - |
검증
쿼리 매개변수만 허용하며 요청 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부됩니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. 규칙: AND = 모두, OR = 또는, XOR = 하나만, NOT = 제외, => = 필요.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/min_price <= max_pricecheck_in_date AND check_out_date: supply both or neither; valid YYYY-MM-DD dates; check_out_date > check_in_datequery OR property_token OR next_page_token: requiredadults (default 2) + children <= 100; children_ages: comma-separated ages 0..17; count = childrenbedrooms OR bathrooms => vacation_rentals = true; vacation_rentals = true => NOT brandsTokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
예시
curl --get "https://api.apihop.ai/v1/google-hotels/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "currency=USD" \
--data-urlencode "query=hotels in New York"Google Hotels: 호텔 제안 조회
GET https://api.apihop.ai/v1/google-hotels/autocomplete
매개변수
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
query | string | 검색어; query: REQUIRED | New York |
country | string | 국가 또는 스토어 코드 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 언어; language: optional | - |
limit | integer | 결과 수 제한; limit: optional; min: 1; max: 100 | 1 |
device | string | 기기; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 응답 보관 안 함; zero_trace: optional | true |
currency | string | 통화 코드 (currency); currency: optional; ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, BGN, XPF, CAD, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, USD, UAH, AED, VND; ^[A-Z]{3}$ | ALL |
검증
쿼리 매개변수만 허용하며 요청 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부됩니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. 규칙: AND = 모두, OR = 또는, XOR = 하나만, NOT = 제외, => = 필요.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
예시
curl --get "https://api.apihop.ai/v1/google-hotels/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=New York"Google Hotels: 호텔 사진 조회
GET https://api.apihop.ai/v1/google-hotels/photos
매개변수
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
id | string | 검색 결과의 호텔 식별자 (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
country | string | 국가 또는 스토어 코드 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 언어; language: optional | - |
limit | integer | 결과 수 제한; limit: optional; min: 1; max: 100 | 1 |
device | string | 기기; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 응답 보관 안 함; zero_trace: optional | true |
next_page_token | string | 다음 페이지 토큰; next_page_token: optional; UTF-8 bytes: 24576 | - |
검증
쿼리 매개변수만 허용하며 요청 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부됩니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. 규칙: AND = 모두, OR = 또는, XOR = 하나만, NOT = 제외, => = 필요.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
예시
curl --get "https://api.apihop.ai/v1/google-hotels/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ"Google Hotels: 호텔 리뷰 조회
GET https://api.apihop.ai/v1/google-hotels/reviews
매개변수
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
id | string | 검색 결과의 호텔 식별자 (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
next_page_token | string | 다음 페이지 토큰; next_page_token: optional; UTF-8 bytes: 24576 | - |
sort_by | string | 정렬; sort_by: optional; relevance, newest, highest_rating, lowest_rating | relevance |
country | string | 국가 또는 스토어 코드 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 언어; language: optional | - |
limit | integer | 결과 수 제한; limit: optional; min: 1; max: 10 | 10 |
device | string | 기기; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 응답 보관 안 함; zero_trace: optional | true |
category_token | string | 최신 응답에서 복사한 선택 토큰 (category_token); category_token: optional; UTF-8 bytes: 2800; ^[A-Za-z0-9_-]+$ | - |
source_number | integer | 숙박 조건 필터 (source_number); source_number: optional; min: -1; max: 2147483647 | -1 |
검증
쿼리 매개변수만 허용하며 요청 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부됩니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. 규칙: AND = 모두, OR = 또는, XOR = 하나만, NOT = 제외, => = 필요.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
예시
curl --get "https://api.apihop.ai/v1/google-hotels/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ" \
--data-urlencode "limit=10"응답 및 오류
원본 JSON과 숫자 정밀도를 유지합니다. 예시는 성공한 빈 결과입니다. HTTP 400: 입력; 401: 인증; 402: 잔액; 403: 접근; 405: 메서드; 429: 제한; 5xx: 서비스. X-Request-Id를 보관하세요.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}