Migrate from legacy Google Knowledge Graph Search API
Stay organized with collections
Save and categorize content based on your preferences.
Updates to the request
New Google Knowledge Graph Search API introduces two editions, Basic and Advanced. For more information, see Basic and Advanced editions.
To support security and compliance requirements, move to a new prediction endpoint. If planning to use the Basic edition, use a new access token or a service account for this API and replace your endpoint URL as shown here:
Cloud Knowledge Graph MID becomes the primary MID (identifier) for the entity. You can still find the Google Knowledge Graph MID in the identifier section for backward compatibility. For more information, see Understand Machine ID (MID).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis product is in a Pre-GA stage, meaning it is available "as is" with potentially limited support, and is subject to the "Pre-GA Offerings Terms" within the General Service Terms.\u003c/p\u003e\n"],["\u003cp\u003ePersonal data can be processed using this product as outlined in the Cloud Data Processing Addendum, under the obligations and restrictions described in your Google Cloud agreement.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Knowledge Graph Search API now offers \u003ccode\u003eBasic\u003c/code\u003e and \u003ccode\u003eAdvanced\u003c/code\u003e editions, with a new prediction endpoint for the \u003ccode\u003eBasic\u003c/code\u003e edition, requiring an updated access token or service account.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Knowledge Graph MID is now the primary \u003ccode\u003eidentifier\u003c/code\u003e, while the previous Google Knowledge Graph MID is retained for backward compatibility.\u003c/p\u003e\n"],["\u003cp\u003eThere are two changes to the response, which are the \u003ccode\u003eadditionalProperty\u003c/code\u003e field has been added, and the \u003ccode\u003eresultScore\u003c/code\u003e field has been removed.\u003c/p\u003e\n"]]],[],null,["# Migrate from legacy Google Knowledge Graph Search API\n\n| **Preview**\n|\n|\n| This product is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| You can process personal data for this product as outlined in the\n| [Cloud Data Processing\n| Addendum](/terms/data-processing-addendum), subject to the obligations and restrictions described in the agreement under\n| which you access Google Cloud.\n|\n| Pre-GA products are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\n\u003cbr /\u003e\n\n| **Note:** The Google Knowledge Graph Search API returns only individual matching entities, rather than graphs of interconnected entities. If you need the interconnected entities, use data dumps from [Wikidata](https://www.wikidata.org) instead.\n\nUpdates to the request\n----------------------\n\n1. New Google Knowledge Graph Search API introduces two editions, `Basic` and `Advanced`. For more information, see [Basic and Advanced editions](/enterprise-knowledge-graph/docs/editions).\n\n2. To support security and compliance requirements, move to a new prediction endpoint. If planning to use the `Basic` edition, use a new access token or a service account for this API and replace your endpoint URL as shown here:\n\n### Legacy\n\n https://kgsearch.googleapis.com/v1/entities\n\n### Updated\n\n https://enterpriseknowledgegraph.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/global/publicKnowledgeGraphEntities\n\nUpdates to the response\n-----------------------\n\n1. Cloud Knowledge Graph MID becomes the primary MID (`identifier`) for the entity. You can still find the Google Knowledge Graph MID in the `identifier` section for backward compatibility. For more information, see [Understand Machine ID (MID)](/enterprise-knowledge-graph/docs/mid).\n\n \"identifier\": [\n {\n \"@type\": \"PropertyValue\",\n \"propertyID\": \"googleKgMID\",\n \"value\": \"/m/06pwq\"\n }\n ]\n\n2. The `additionalProperty` has been added to describe the license requirement for the `name` field.\n\n \"additionalProperty\": {\n \"@type\": \"PropertyValue\",\n \"name\": \"nameLicense\",\n \"value\": \"https://cloud.google.com/maps-platform/terms\"\n }\n\n3. The `resultScore` field has been removed from the response."]]