API Hop 문서
Google Maps API 참조
Google Maps에서 지역 업체와 장소를 검색하거나 장소 ID로 조회합니다. 장소 리뷰 · 장소 사진 · 사진 메타데이터 · 업체 게시물 · 경로 안내 · 장소 자동 완성 · 기여자 리뷰 · 지역 검색 · 지역 서비스 · 이벤트.
동시 실행 한도
AI와 Data는 각각 계정 전체의 동시 실행 슬롯을 공유합니다. 기본값은 AI 5 / Data 2이며 구독에 따라 달라집니다. 엔드포인트별 한도도 카테고리 전체 한도를 초과할 수 없습니다. 어느 한도든 도달하면 HTTP 429를 반환합니다. 비동기 작업은 실행이 끝날 때까지 슬롯을 차지합니다.
GET /v1/google-maps/search GET /v1/google-maps/reviews GET /v1/google-maps/photos GET /v1/google-maps/photos/meta GET /v1/google-maps/posts GET /v1/google-maps/directions GET /v1/google-maps/autocomplete GET /v1/google-maps/contributor/reviews GET /v1/google-maps/local GET /v1/google-maps/local/services GET /v1/google-maps/events Google Maps에서 지역 업체와 장소를 검색하거나 장소 ID로 조회합니다. 장소 리뷰 · 장소 사진 · 사진 메타데이터 · 업체 게시물 · 경로 안내 · 장소 자동 완성 · 기여자 리뷰 · 지역 검색 · 지역 서비스 · 이벤트.
- Google Maps 장소 검색:
GET https://api.apihop.ai/v1/google-maps/search - 장소 리뷰:
GET https://api.apihop.ai/v1/google-maps/reviews - 장소 사진:
GET https://api.apihop.ai/v1/google-maps/photos - 사진 메타데이터:
GET https://api.apihop.ai/v1/google-maps/photos/meta - 업체 게시물:
GET https://api.apihop.ai/v1/google-maps/posts - 경로 안내:
GET https://api.apihop.ai/v1/google-maps/directions - 장소 자동 완성:
GET https://api.apihop.ai/v1/google-maps/autocomplete - 기여자 리뷰:
GET https://api.apihop.ai/v1/google-maps/contributor/reviews - 지역 검색:
GET https://api.apihop.ai/v1/google-maps/local - 지역 서비스:
GET https://api.apihop.ai/v1/google-maps/local/services - 이벤트:
GET https://api.apihop.ai/v1/google-maps/events
인증 및 요금
기본 요금은 성공한 요청당 $0.0003(300 credits)입니다. API Hop API 키를 사용합니다. 접근은 활성 게이트웨이와 권한에 따라 결정됩니다. 성공한 요청 요금은 카탈로그와 계정을 확인하세요. 계정별 요금이 우선하며 성공한 빈 결과도 과금됩니다. 실패하면 예약 금액을 해제합니다. 제한 시간은 60초이며 자동 재시도와 페이지 처리가 없습니다. 정산 오류도 공급자 요청을 반복하지 않습니다.
Authorization: Bearer YOUR_API_KEY매개변수
Google Maps 장소 검색
GET https://api.apihop.ai/v1/google-maps/search
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
query | string | 검색어 | coffee shop |
type | string | 모드; search, place | - |
place_id | string | 장소 ID | ChIJP8p2kJC1RIYR2qrGoXZtZCk |
data_cid | string | 십진 CID | 2982629209513831130 |
latitude | number | 위도; min: -90; max: 90 | 30.2672 |
longitude | number | 경도; min: -180; max: 180 | -97.7431 |
location | string | 기준 위치 | Austin, TX |
zoom | number | 확대; min: 3; max: 30 | 13.1 |
m | number | 화면 높이(미터); min: 1; max: 15028132 | - |
start | integer | 오프셋; min: 0; max: 9007199254740991 | 0 |
gl | string | 국가 | us |
hl | string | 언어 | en-US |
nearby | boolean | 인근 우선 | - |
zero_trace | boolean | 응답 보관 해제 | - |
min_price | integer | 최저 가격; min: 0; max: 9007199254740991 | - |
max_price | integer | 최고 가격; min: 0; max: 9007199254740991 | - |
min_rating | number | 희망 최저 평점; 2, 2.5, 3, 3.5, 4, 4.5 | - |
open_state | string | 영업 상태; now, 24h | - |
open_on_day | string | 현지 요일; mon, tue, wed, thu, fri, sat, sun | - |
open_at_hour | integer | 현지 시간; min: 0; max: 23 | - |
장소 리뷰
GET https://api.apihop.ai/v1/google-maps/reviews
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
id | string | Google 장소 ID 또는 16진수 데이터 ID. 10진수 CID와 기여자 ID는 지원하지 않습니다.; 필수 | - |
next_page_token | string | 내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 20 | - |
sort_by | string | 리뷰 정렬 순서.; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow | - |
query | string | 리뷰 텍스트 필터. topic_id와 함께 사용할 수 없습니다.; maxLength: 500 | - |
topic_id | string | 원본의 주제 ID. query와 함께 사용할 수 없습니다.; maxLength: 131; ^(?:[A-Za-z0-9_-]{1,128}|/[mg]/[A-Za-z0-9_-]{1,128})$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor IDquery XOR topic_id (optional)next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChIJM8w7rqS1RIYRhEz2-KuoqzE" \
--data-urlencode "limit=10"장소 사진
GET https://api.apihop.ai/v1/google-maps/photos
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
id | string | 해당 Google Maps 결과에서 반환된 원본 식별자.; 필수 | - |
next_page_token | string | 내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100 | - |
category_id | string | 이 장소에 대해 반환된 갤러리 카테고리 ID.; maxLength: 1024; ^[A-Za-z0-9_-]+={0,2}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifier; category_id: copy from this place gallerynext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"사진 메타데이터
GET https://api.apihop.ai/v1/google-maps/photos/meta
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
id | string | photos의 results[].id에서 복사한 사진 ID. 장소의 data_id를 사용하지 마세요.; 필수; maxLength: 255; ^[A-Za-z0-9_-]{20,255}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_idno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos/meta" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=AF1QipPFfVtTCFKV9n-uOBqTTOHuRemFBg0PWN7xdVxp"업체 게시물
GET https://api.apihop.ai/v1/google-maps/posts
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
id | string | 해당 Google Maps 결과에서 반환된 원본 식별자.; 필수 | - |
next_page_token | string | 내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifiernext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"경로 안내
GET https://api.apihop.ai/v1/google-maps/directions
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
origin | string | 출발지 주소. origin, start_data_id, start_coords 중 정확히 하나만 지정하세요. | - |
destination | string | 도착지 주소. destination, end_data_id, end_coords 중 정확히 하나만 지정하세요. | - |
start_data_id | string | 출발지의 16진수 Maps 데이터 ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
end_data_id | string | 도착지의 16진수 Maps 데이터 ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
start_coords | string | 출발지 위도,경도.; maxLength: 80 | - |
end_coords | string | 도착지 위도,경도.; maxLength: 80 | - |
travel_mode | string | 이동 수단.; driving, walking, bicycling, transit, two-wheeler, best, flight | - |
distance_unit | integer | 킬로미터(0) 또는 마일(1).; ≥ 0; ≤ 1 | - |
avoid | string | 피할 도로 유형. 쉼표로 구분합니다. | - |
prefer | string | 대중교통 수단. 쉼표로 구분하며 travel_mode=transit이 필요합니다. | - |
route | integer | 대중교통 경로 조건: 환승 최소화(2), 도보 최소화(3), 휠체어 이용 가능(4).; ≥ 2; ≤ 4 | - |
time | string | depart_at:timestamp, arrive_by:timestamp 또는 대중교통 전용 last_available.; maxLength: 40 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseorigin XOR start_data_id XOR start_coords (required)destination XOR end_data_id XOR end_coords (required)start_coords, end_coords: latitude,longitude; latitude: -90..90; longitude: -180..180prefer, route => travel_mode=transit; time=last_available => travel_mode=transittime: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_availabledistance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessibleno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/directions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "origin=Austin, TX" \
--data-urlencode "destination=Dallas, TX" \
--data-urlencode "travel_mode=driving"장소 자동 완성
GET https://api.apihop.ai/v1/google-maps/autocomplete
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
query | string | 검색어. UTF-8 기준 최대 8192바이트.; 필수 | - |
latitude | number | 위도. longitude가 필요합니다.; ≥ -90; ≤ 90 | - |
longitude | number | 경도. latitude가 필요합니다.; ≥ -180; ≤ 180 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100 | - |
ll | string | 표시 영역: @latitude,longitude,zoomz (3-21) 또는 @latitude,longitude,heightm.; maxLength: 120 | - |
cp | integer | query 내 커서 위치. UTF-16 코드 단위로 셉니다.; ≥ 0 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiselatitude AND longitude (optional)cp <= query.length (UTF-16)ll: @latitude,longitude,zoomz (3..21) OR @latitude,longitude,heightm (>0)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee in Austin" \
--data-urlencode "limit=5"기여자 리뷰
GET https://api.apihop.ai/v1/google-maps/contributor/reviews
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
id | string | Google Maps 기여자 프로필 URL의 숫자형 기여자 ID.; 필수; ^[0-9]+$ | - |
next_page_token | string | 내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576 | - |
page | integer | 처음 200개 리뷰 내의 페이지. 1보다 큰 페이지는 토큰과 함께 사용할 수 없습니다.; ≥ 1; ≤ 200 | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 50 | - |
sort_by | string | 최신 리뷰만.; newest | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: numeric Google Maps contributor profile ID(page - 1) * limit < 200; page default: 1; limit default: 20page > 1 => NOT next_page_tokennext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/contributor/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=112967280418127956987" \
--data-urlencode "limit=20"지역 검색
GET https://api.apihop.ai/v1/google-maps/local
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
query | string | 검색어. UTF-8 기준 최대 8192바이트.; 필수 | - |
location | string | 이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다. | - |
latitude | number | 위도. longitude가 필요합니다.; ≥ -90; ≤ 90 | - |
longitude | number | 경도. latitude가 필요합니다.; ≥ -180; ≤ 180 | - |
uule | string | 인코딩된 Google 위치. location 또는 좌표와 함께 사용할 수 없습니다.; maxLength: 4096 | - |
google_domain | string | Google 국가별 도메인. 예: google.com 또는 google.co.uk. | - |
start | integer | 결과 오프셋. 0부터 시작합니다.; ≥ 0; ≤ 1000 | - |
tbs | string | 쉼표로 구분한 Google 기본 key:value 필터.; maxLength: 512 | - |
ludocid | string | Google 장소 고객 식별자(CID).; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)tbs: comma-separated key:value filters; ludocid: Google place CIDno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "location=Austin, TX"지역 서비스
GET https://api.apihop.ai/v1/google-maps/local/services
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
query | string | 검색어. UTF-8 기준 최대 8192바이트.; 필수 | - |
location | string | 이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다. | - |
limit | integer | 반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 20 | - |
data_cid | string | 0이 아닌 부호 없는 64비트 지역 CID. location과 함께 사용할 수 없습니다. | - |
job_type | string | 기본 서비스 선택값. 예: restore_power.; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$ | - |
cid | string | 서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$ | - |
bid | string | 서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$ | - |
pid | string | 서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwisedata_cid: geographic city/district CID, string 1..18446744073709551615; NOT locationcid AND bid AND pid (optional group); query selects the service categoryno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=plumber" \
--data-urlencode "location=Austin, TX" \
--data-urlencode "limit=5"이벤트
GET https://api.apihop.ai/v1/google-maps/events
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
country | string | 두 글자 국가 코드.; ^[A-Za-z]{2}$ | us |
language | string | 제공업체에서 지원하는 언어 코드. | en |
device | string | 원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet | - |
zero_trace | boolean | 업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다. | - |
no_cache | boolean | 호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다. | - |
query | string | 검색어. UTF-8 기준 최대 8192바이트.; 필수 | - |
location | string | 이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다. | - |
latitude | number | 위도. longitude가 필요합니다.; ≥ -90; ≤ 90 | - |
longitude | number | 경도. latitude가 필요합니다.; ≥ -180; ≤ 180 | - |
uule | string | 인코딩된 Google 위치. location 또는 좌표와 함께 사용할 수 없습니다.; maxLength: 4096 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/events" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=events in Austin" \
--data-urlencode "location=Austin, TX"검증
본문 없이 쿼리만 허용합니다. 알 수 없거나 중복되거나 빈 값과 제어 문자는 거부합니다. 검색에는 query가 필요합니다. place_id 또는 data_cid가 장소 조회를 선택하며 두 ID는 배타적이고 type이 일치해야 합니다. CID는 십진 문자열입니다. 위도와 경도는 함께 지정하고 location과 배타적입니다. m과 nearby는 기준 위치가 필요하며 m과 zoom은 배타적입니다. 최저 가격은 최고 가격 이하여야 합니다. open_state는 요일 및 시간과 배타적이며 시간에는 요일이 필요합니다. 0은 자정입니다. gl은 두 글자 국가, hl은 언어입니다. 기본값을 추가하지 않으며 문자열은 8192자까지입니다. start는 보통 0, 20, 40이며 페이지당 최대 20건입니다. 아래 규칙이 전체 제약을 표시합니다.
search: query; type = search (optional)place: place_id XOR data_cid; type = place (optional); data_cid: 1..18446744073709551615 (string)place: NOT latitude, longitude, location, zoom, m, start, nearby, min_price, max_price, min_rating, open_state, open_on_day, open_at_hourorigin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR locationmin_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hourgl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192
예시
curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "latitude=30.2672" \
--data-urlencode "longitude=-97.7431" \
--data-urlencode "start=0"curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "data_cid=2982629209513831130" \
--data-urlencode "hl=en"응답 및 오류
원본 JSON과 숫자 정밀도를 유지합니다. 예시는 성공한 빈 결과입니다. HTTP 400: 입력; 401: 인증; 402: 잔액; 403: 접근; 405: 메서드; 429: 제한; 5xx: 서비스. X-Request-Id를 보관하세요.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"search_parameters": {
"q": "coffee shop",
"type": "maps",
"engine": "google_maps"
},
"has_next_page": false,
"results": []
}
}
}