API Hop

문서

API Hop 문서

Google Maps API 참조

Google Maps에서 지역 업체와 장소를 검색하거나 장소 ID로 조회합니다. 장소 리뷰 · 장소 사진 · 사진 메타데이터 · 업체 게시물 · 경로 안내 · 장소 자동 완성 · 기여자 리뷰 · 지역 검색 · 지역 서비스 · 이벤트.

동시 실행 한도

AI와 Data는 각각 계정 전체의 동시 실행 슬롯을 공유합니다. 기본값은 AI 5 / Data 2이며 구독에 따라 달라집니다. 엔드포인트별 한도도 카테고리 전체 한도를 초과할 수 없습니다. 어느 한도든 도달하면 HTTP 429를 반환합니다. 비동기 작업은 실행이 끝날 때까지 슬롯을 차지합니다.

GET /v1/google-maps/search
기본 한도: 2
GET /v1/google-maps/reviews
기본 한도: 2
GET /v1/google-maps/photos
기본 한도: 2
GET /v1/google-maps/photos/meta
기본 한도: 2
GET /v1/google-maps/posts
기본 한도: 2
GET /v1/google-maps/directions
기본 한도: 2
GET /v1/google-maps/autocomplete
기본 한도: 2
GET /v1/google-maps/contributor/reviews
기본 한도: 2
GET /v1/google-maps/local
기본 한도: 2
GET /v1/google-maps/local/services
기본 한도: 2
GET /v1/google-maps/events
기본 한도: 2

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초이며 자동 재시도와 페이지 처리가 없습니다. 정산 오류도 공급자 요청을 반복하지 않습니다.

http
Authorization: Bearer YOUR_API_KEY

매개변수

Google Maps 장소 검색

GET https://api.apihop.ai/v1/google-maps/search

필드유형제약예시
querystring검색어coffee shop
typestring모드; search, place-
place_idstring장소 IDChIJP8p2kJC1RIYR2qrGoXZtZCk
data_cidstring십진 CID2982629209513831130
latitudenumber위도; min: -90; max: 9030.2672
longitudenumber경도; min: -180; max: 180-97.7431
locationstring기준 위치Austin, TX
zoomnumber확대; min: 3; max: 3013.1
mnumber화면 높이(미터); min: 1; max: 15028132-
startinteger오프셋; min: 0; max: 90071992547409910
glstring국가us
hlstring언어en-US
nearbyboolean인근 우선-
zero_traceboolean응답 보관 해제-
min_priceinteger최저 가격; min: 0; max: 9007199254740991-
max_priceinteger최고 가격; min: 0; max: 9007199254740991-
min_ratingnumber희망 최저 평점; 2, 2.5, 3, 3.5, 4, 4.5-
open_statestring영업 상태; now, 24h-
open_on_daystring현지 요일; mon, tue, wed, thu, fri, sat, sun-
open_at_hourinteger현지 시간; min: 0; max: 23-

장소 리뷰

GET https://api.apihop.ai/v1/google-maps/reviews

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
idstringGoogle 장소 ID 또는 16진수 데이터 ID. 10진수 CID와 기여자 ID는 지원하지 않습니다.; 필수-
next_page_tokenstring내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 20-
sort_bystring리뷰 정렬 순서.; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow-
querystring리뷰 텍스트 필터. topic_id와 함께 사용할 수 없습니다.; maxLength: 500-
topic_idstring원본의 주제 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 body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor ID
  • query XOR topic_id (optional)
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
idstring해당 Google Maps 결과에서 반환된 원본 식별자.; 필수-
next_page_tokenstring내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100-
category_idstring이 장소에 대해 반환된 갤러리 카테고리 ID.; maxLength: 1024; ^[A-Za-z0-9_-]+={0,2}$-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google Maps place identifier; category_id: copy from this place gallery
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
idstringphotos의 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 body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_id
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
idstring해당 Google Maps 결과에서 반환된 원본 식별자.; 필수-
next_page_tokenstring내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: Google Maps place identifier
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
originstring출발지 주소. origin, start_data_id, start_coords 중 정확히 하나만 지정하세요.-
destinationstring도착지 주소. destination, end_data_id, end_coords 중 정확히 하나만 지정하세요.-
start_data_idstring출발지의 16진수 Maps 데이터 ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$-
end_data_idstring도착지의 16진수 Maps 데이터 ID.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$-
start_coordsstring출발지 위도,경도.; maxLength: 80-
end_coordsstring도착지 위도,경도.; maxLength: 80-
travel_modestring이동 수단.; driving, walking, bicycling, transit, two-wheeler, best, flight-
distance_unitinteger킬로미터(0) 또는 마일(1).; ≥ 0; ≤ 1-
avoidstring피할 도로 유형. 쉼표로 구분합니다.-
preferstring대중교통 수단. 쉼표로 구분하며 travel_mode=transit이 필요합니다.-
routeinteger대중교통 경로 조건: 환승 최소화(2), 도보 최소화(3), 휠체어 이용 가능(4).; ≥ 2; ≤ 4-
timestringdepart_at:timestamp, arrive_by:timestamp 또는 대중교통 전용 last_available.; maxLength: 40-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • origin 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..180
  • prefer, route => travel_mode=transit; time=last_available => travel_mode=transit
  • time: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_available
  • distance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessible
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
querystring검색어. UTF-8 기준 최대 8192바이트.; 필수-
latitudenumber위도. longitude가 필요합니다.; ≥ -90; ≤ 90-
longitudenumber경도. latitude가 필요합니다.; ≥ -180; ≤ 180-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 100-
llstring표시 영역: @latitude,longitude,zoomz (3-21) 또는 @latitude,longitude,heightm.; maxLength: 120-
cpintegerquery 내 커서 위치. UTF-16 코드 단위로 셉니다.; ≥ 0-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • latitude 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
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
idstringGoogle Maps 기여자 프로필 URL의 숫자형 기여자 ID.; 필수; ^[0-9]+$-
next_page_tokenstring내부 내용을 해석하지 않는 연속 조회 토큰. 1시간 후 만료됩니다. 계정, 매개변수, 기기, limit을 변경하지 마세요.; maxLength: 24576-
pageinteger처음 200개 리뷰 내의 페이지. 1보다 큰 페이지는 토큰과 함께 사용할 수 없습니다.; ≥ 1; ≤ 200-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 50-
sort_bystring최신 리뷰만.; newest-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • id: numeric Google Maps contributor profile ID
  • (page - 1) * limit < 200; page default: 1; limit default: 20
  • page > 1 => NOT next_page_token
  • next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic pagination
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
querystring검색어. UTF-8 기준 최대 8192바이트.; 필수-
locationstring이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다.-
latitudenumber위도. longitude가 필요합니다.; ≥ -90; ≤ 90-
longitudenumber경도. latitude가 필요합니다.; ≥ -180; ≤ 180-
uulestring인코딩된 Google 위치. location 또는 좌표와 함께 사용할 수 없습니다.; maxLength: 4096-
google_domainstringGoogle 국가별 도메인. 예: google.com 또는 google.co.uk.-
startinteger결과 오프셋. 0부터 시작합니다.; ≥ 0; ≤ 1000-
tbsstring쉼표로 구분한 Google 기본 key:value 필터.; maxLength: 512-
ludocidstringGoogle 장소 고객 식별자(CID).; ^[0-9]{1,20}$-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: 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 CID
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
querystring검색어. UTF-8 기준 최대 8192바이트.; 필수-
locationstring이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다.-
limitinteger반환할 최대 항목 수. 원본에서 더 적은 항목을 반환할 수 있습니다.; ≥ 1; ≤ 20-
data_cidstring0이 아닌 부호 없는 64비트 지역 CID. location과 함께 사용할 수 없습니다.-
job_typestring기본 서비스 선택값. 예: restore_power.; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$-
cidstring서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$-
bidstring서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$-
pidstring서비스 제공자 식별자. cid, bid, pid를 함께 지정하세요.; ^[0-9]{1,20}$-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise
  • data_cid: geographic city/district CID, string 1..18446744073709551615; NOT location
  • cid AND bid AND pid (optional group); query selects the service category
  • no_cache: true OR false both fetch fresh results; normal successful-request billing
bash
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

필드유형제약예시
countrystring두 글자 국가 코드.; ^[A-Za-z]{2}$us
languagestring제공업체에서 지원하는 언어 코드.en
devicestring원본 페이지의 기기별 표시 형식.; desktop, mobile, tablet-
zero_traceboolean업스트림 응답 결과물을 보관하지 않습니다. 과금 메타데이터는 유지됩니다.-
no_cacheboolean호환성 플래그. 두 값 모두 최신 데이터를 가져오며 일반 과금이 적용됩니다.-
querystring검색어. UTF-8 기준 최대 8192바이트.; 필수-
locationstring이름으로 지정한 위치. 좌표 또는 uule과 함께 사용할 수 없습니다.-
latitudenumber위도. longitude가 필요합니다.; ≥ -90; ≤ 90-
longitudenumber경도. latitude가 필요합니다.; ≥ -180; ≤ 180-
uulestring인코딩된 Google 위치. location 또는 좌표와 함께 사용할 수 없습니다.; maxLength: 4096-
  • GET query only; unknown, repeated, empty, control-character values rejected; no request body
  • query: 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
bash
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_hour
  • origin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR location
  • min_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hour
  • gl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192

예시

bash
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"
bash
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를 보관하세요.

json
{
  "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": []
    }
  }
}