更新要求
新版 Google 知識圖譜 Search API 推出兩種版本:
Basic和Advanced。詳情請參閱「Basic 和 Advanced 版本」。為支援安全性和法規遵循需求,請改用新的預測端點。如要使用
Basic版本,請為這個 API 使用新的存取權杖或服務帳戶,並替換端點網址,如下所示:
舊版
https://kgsearch.googleapis.com/v1/entities
已更新
https://enterpriseknowledgegraph.googleapis.com/v1/projects/PROJECT_ID/locations/global/publicKnowledgeGraphEntities
更新回覆
Cloud 知識圖譜 MID 會成為實體的主要 MID (
identifier)。為顧及回溯相容性,您仍可在identifier部分找到 Google 知識圖譜 MID。詳情請參閱「瞭解機器 ID (MID)」。"identifier": [ { "@type": "PropertyValue", "propertyID": "googleKgMID", "value": "/m/06pwq" } ]已新增
additionalProperty,說明「name」欄位的授權規定。"additionalProperty": { "@type": "PropertyValue", "name": "nameLicense", "value": "https://cloud.google.com/maps-platform/terms" }回應中已移除
resultScore欄位。