PLACES REST API 참조

Microsoft Web IQ Places API를 사용하여 장소를 검색하고 주소, 영업 시간, 리뷰 및 사진과 같은 구조화된 정보를 검색합니다. 엔드포인트:POST https://api.microsoft.ai/v3/search/places

모든 요청에는 API 키 또는 Microsoft Entra ID 액세스 토큰이 필요합니다. 설치 지침은 인증 을 참조하세요.

샘플 요청

curl -X POST "https://api.microsoft.ai/v3/search/places" \
  -H "host: api.microsoft.ai" \
  -H "x-apikey: <Your key>" \
  -H "content-type: application/json" \
  -d '{
    "query": "Cafe Flora Seattle",
    "maxResults": 5,
    "language": "en",
    "region": "US",
    "location": "lat:47.6062;long:-122.3321"
  }'

Parameters

매개 변수 Required Type Default Description
query Yes string - 예를 들어 popular restaurants in Seattle, WA위치에 대한 검색 쿼리입니다. 최대 길이는 1000자입니다.
maxResults No 정수 10 반환할 최대 결과 수입니다. 1에서 10 사이여야 합니다. 범위를 벗어난 값은 유효성 검사 오류를 반환합니다. 생략하거나 null은 10을 사용합니다. 사용 가능한 위치가 적을 경우 더 적은 결과가 반환될 수 있습니다.
language No string "en" 검색 결과의 인터페이스 언어에 대한 2자 ISO 639-1 언어 코드입니다. 전체 목록은 지원되는 언어 를 참조하세요.
region No string "US" 결과가 나오는 위치(예: "US", "JP" 또는 "FR")에 대한 2자로 된 국가/지역 코드입니다. 전체 목록은 지원되는 지역을 참조하세요.
location No string - 위치 정보 형식입니다 lat:<float>;long:<float> . 지정하지 않으면 서비스는 쿼리의 위치 정보를 사용합니다.

요청 헤더

Field Type Description
host string Microsoft AI API용 호스트: api.microsoft.ai.
x-apikey 또는 권한 부여 string 인증을 위한 API 키 또는 Entra ID 액세스 토큰입니다.
컨텐츠 유형 (content-type) string 요청 본문의 MIME 형식입니다. application/json을 사용합니다.

응답

null 문자열 값이 있거나 빈 필드는 응답에서 생략되며 목록 필드는 비어[] 있거나 비워 둘 수 있습니다. 결석 필드를 사용할 수 없는 것으로 간주하고 비어 있거나 없는 목록을 항목이 없는 것으로 간주합니다. 응답 이해 참조

PlacesResponse

Field Type Description
placeResults PlaceResult 배열 위치 결과 목록입니다.
traceId string 디버깅 및 추적에 대한 추적 ID입니다.

PlaceResult

Field Type Description
name string 장소의 이름입니다.
category string 카테고리 정보.
phone string 연락처 전화 번호입니다.
businessUrl string 위치의 비즈니스 URL입니다.
location PlaceLocation 위치 정보
timeZone string 장소의 UTC 오프셋(예: UTC-08:00 UTC 뒤에 8시간, ISO 8601 오프셋 -08:00과 동일).
openHours PlaceOpenHour 영업 시간 정보입니다.
closureState string 장소가 영구적으로 또는 일시적으로 닫혀 있는지 여부를 나타냅니다.
descriptions PlaceDescription 배열 장소의 설명 또는 강조 표시
passages 통로 배열 쿼리와 관련된 구절 및 링크 목록입니다.
reviews PlaceReview 배열 공급자 등급 및 개별 검토 세부 정보입니다.
photos PlacePhoto 배열 사진 목록입니다.
amenities 문자열의 배열 숙소에서 제공하는 편의 시설.
actions PlaceAction 배열 위치와 연결된 작업입니다.
socialProfiles PlaceSocialProfile 배열 장소와 연결된 소셜 미디어 프로필입니다.

PlaceLocation

다음 필드 이름은 API에서 반환된 JSON 속성 이름입니다.

Field Type Description
addressLine string 주소 줄입니다.
city string 도시 이름입니다.
region string 상태 또는 지역입니다.
country string 국가 또는 지역 이름입니다.
postalCode string 우편 번호 또는 우편 번호입니다.
latitude double 위도 좌표입니다.
longitude double 경도 좌표입니다.

PlaceReview

Field Type Description
ratingScore double, 선택 사항 1에서 5까지의 집계된 등급 점수입니다. 공급자에 집계된 등급이 없는 경우 생략됩니다.
ratingCount 정수, 선택 사항 등급 수입니다. 공급자에 집계된 등급이 없는 경우 생략됩니다.
reviewDetails PlaceReviewDetail의 배열 공급자의 개별 검토 세부 정보입니다.
providerName string 공급자의 이름입니다.
providerLogo string 공급자의 로고 URL입니다.
providerUrl string 공급자의 웹 사이트 URL입니다.

PlaceReviewDetail

Field Type Description
text string 텍스트를 검토합니다.
score double 점수를 검토합니다. 크기 조정은 검토 공급자에 따라 달라집니다.

PlacePhoto

Field Type Description
url string 사진 URL입니다.
caption string 사진에 대한 설명입니다.
thumbnailUrl string 썸네일 이미지 URL입니다.
providerName string 공급자의 이름입니다.
providerUrl string 공급자의 웹 사이트 URL입니다.

PlaceOpenHour

Field Type Description
standard map<string, string[]> 일(mon,, tue,frisatwedthu, , sun)로 키 지정된 표준 주별 오픈 시간 범위의 맵입니다. 각 값은 범위의 HH:mm-HH:mm 배열입니다.
exceptions PlaceOpenHourException 배열 특정 날짜에 적용되는 영업 시간 또는 폐쇄.

PlaceOpenHourException

Field Type Description
date string 예외가 적용되는 날짜입니다.
closed boolean 예외 날짜에 장소를 닫는지 여부입니다.
hours 문자열의 배열 예외 날짜에 적용되는 영업 시간 범위입니다.

PlaceAction

Field Type Description
actionType string URL에서 사용할 수 있는 작업 유형입니다.
url string 작업을 수행하기 위한 URL입니다.
providerName string 공급자의 이름입니다.
providerLogo string 공급자의 로고 URL입니다.
providerUrl string 공급자의 웹 사이트 URL입니다.

PlaceDescription

Field Type Description
text string 장소에 대한 설명 또는 강조 표시입니다.
providerName string 공급자의 이름입니다.
providerLogo string 공급자의 로고 URL입니다.
providerUrl string 공급자의 웹 사이트 URL입니다.

PlaceSocialProfile

Field Type Description
name string 소셜 네트워크 또는 프로필의 이름입니다.
url string 소셜 프로필의 URL입니다.
logo string 소셜 프로필 로고의 URL입니다.

통로

Field Type Description
url string 구절의 URL입니다.
content string 구절의 텍스트 내용입니다.
crawledAt string 구절이 마지막으로 크롤링된 날짜입니다.

응답 예제

{
  "placeResults": [
    {
      "name": "Cafe Flora",
      "category": "Vegetarian restaurant",
      "phone": "(206) 325-9100",
      "businessUrl": "https://cafeflora.com/",
      "location": {
        "addressLine": "2901 E Madison St",
        "city": "Seattle",
        "region": "WA",
        "postalCode": "98112",
        "country": "United States",
        "latitude": 47.624027,
        "longitude": -122.29511
      },
      "timeZone": "UTC-08:00",
      "openHours": {
        "standard": {
          "tue": ["09:00-21:00"],
          "wed": ["09:00-21:00"],
          "thu": ["09:00-21:00"],
          "fri": ["09:00-21:00"],
          "sat": ["08:00-14:30", "17:00-21:00"],
          "sun": ["08:00-14:30", "17:00-21:00"]
        },
        "exceptions": [
          {
            "date": "2026-12-24",
            "closed": false,
            "hours": ["11:00-16:00", "17:00-22:00"]
          }
        ]
      },
      "descriptions": [
        {
          "text": "Established in 1991, Cafe Flora serves vegetarian, vegan, and gluten-free cuisine.",
          "providerName": "Cafe Flora",
          "providerLogo": "https://cafeflora.com/favicon.ico",
          "providerUrl": "https://cafeflora.com/"
        }
      ],
      "passages": [
        {
          "url": "https://cafeflora.com/about/",
          "content": "Cafe Flora has served creative vegetarian cuisine in Seattle since 1991.",
          "crawledAt": "2026-09-15T18:30:00Z"
        }
      ],
      "reviews": [
        {
          "ratingScore": 4,
          "ratingCount": 128,
          "reviewDetails": [],
          "providerName": "HappyCow",
          "providerLogo": "https://www.bing.com/th?id=OLC.HappyCowLogo.png&pid=Local",
          "providerUrl": "https://www.happycow.net/reviews/cafe-flora-seattle-2628"
        },
        {
          "reviewDetails": [
            {
              "text": "Great vegetarian restaurant with excellent vegan and gluten-free options.",
              "score": 5
            }
          ],
          "providerName": "Tripadvisor",
          "providerLogo": "https://www.bing.com/th?id=OLC.TripAdvisor_Filled.png&pid=Local",
          "providerUrl": "https://www.tripadvisor.com/Restaurant_Review-g60878-d432891-Reviews-Cafe_Flora-Seattle_Washington.html"
        },
        {
          "reviewDetails": [
            {
              "text": "A lovely restaurant with seasonal dishes and a garden-like atmosphere.",
              "score": 5
            }
          ],
          "providerName": "Yelp",
          "providerLogo": "https://www.bing.com/th?id=OLC.Yelp_Filled.png&pid=Local",
          "providerUrl": "https://www.yelp.com/biz/cafe-flora-seattle"
        }
      ],
      "photos": [
        {
          "url": "https://images.happycow.net/venues/1024/26/28/hcmp2628_1105421.jpeg",
          "caption": "Cafe Flora dining area",
          "thumbnailUrl": "https://www.bing.com/th?id=OLC.+h449su81zbOig480x360",
          "providerName": "HappyCow",
          "providerUrl": "https://www.happycow.net/reviews/cafe-flora-seattle-2628"
        },
        {
          "url": "https://images.happycow.net/venues/1024/26/28/hcmp2628_685679.jpeg",
          "caption": "Vegetarian dish served at Cafe Flora",
          "thumbnailUrl": "https://www.bing.com/th?id=OLC.1w7CsoUrqXZGsQ480x360",
          "providerName": "HappyCow",
          "providerUrl": "https://www.happycow.net/reviews/cafe-flora-seattle-2628"
        }
      ],
      "amenities": ["Vegan options", "Gluten-free options"],
      "actions": [
        {
          "actionType": "Menu",
          "url": "https://places.singleplatform.com/cafe-flora/menu",
          "providerName": "SinglePlatform",
          "providerLogo": "https://places.singleplatform.com/favicon.ico",
          "providerUrl": "https://places.singleplatform.com/"
        }
      ],
      "socialProfiles": [
        {
          "name": "Facebook",
          "url": "https://www.facebook.com/CafeFloraVeg/",
          "logo": "https://www.facebook.com/favicon.ico"
        },
        {
          "name": "Instagram",
          "url": "https://www.instagram.com/cafefloraveg/",
          "logo": "https://www.instagram.com/favicon.ico"
        }
      ]
    }
  ],
  "traceId": "abc123-def456-ghi789"
}

MCP 도구

Places MCP 도구의 이름은 places다음과 같습니다. REST API와 동일한 매개 변수를 허용하고( 매개 변수 참조) 동일한 응답 개체를 반환합니다 structuredContent. 설치는 MCP를 참조하세요.

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "places",
    "arguments": {
      "query": "Cafe Flora Seattle",
      "maxResults": 5,
      "language": "en",
      "region": "US",
      "location": "lat:47.6062;long:-122.3321"
    }
  },
  "id": 1
}

오류 코드

상태 코드 오류 범주 Description 일반적인 원인
200 Success 요청이 성공했습니다. -
400 잘못된 요청 잘못된 요청 매개 변수입니다. 필수 필드 누락, 잘못된 매개 변수 값, 형식이 잘못된 JSON
401 Unauthorized 인증이 실패했거나 누락되었습니다. 잘못된 API 키, x-apikey 헤더 누락
403 금지 유효한 자격 증명이지만 권한이 부족합니다. 호출 웹 IQ AppID는 위치에 대해 사용하도록 설정되지 않았습니다.
410 사라졌다 HTTPS가 필요합니다. HTTPS 대신 HTTP를 통해 요청
415 지원되지 않는 미디어 형식 콘텐츠 형식은 지원되지 않습니다. 콘텐츠 형식 헤더가 없거나 잘못되었습니다.
429 요청이 너무 많음 속도 제한을 초과했습니다. 시간 창에 요청이 너무 많습니다.
500 내부 서버 오류 서버 또는 업스트림 서비스 오류입니다. 임시 서버 문제, 업스트림 서비스 오류 또는 시간 제한

자세한 오류 처리 지침은 오류 처리를 참조하세요.