Send feedback
Migrate from legacy Google Knowledge Graph Search API
Stay organized with collections
Save and categorize content based on your preferences.
Preview
This product is subject to the "Pre-GA Offerings Terms" in the General Service Terms section
of the Service Specific Terms .
You can process personal data for this product as outlined in the
Cloud Data Processing
Addendum , subject to the obligations and restrictions described in the agreement under
which you access Google Cloud.
Pre-GA products are available "as is" and might have limited support.
For more information, see the
launch stage descriptions .
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 instead.
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:
Legacy
https://kgsearch.googleapis.com/v1/entities
Updated
https://enterpriseknowledgegraph.googleapis.com/v1/projects/PROJECT_ID /locations/global/publicKnowledgeGraphEntities
Updates to the response
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) .
"ide nt i f ier ": [
{
"@ t ype ": "Proper t yValue ",
"proper t yID ": "googleKgMID ",
"value ": "/m/ 06 pwq "
}
]
The additionalProperty
has been added to describe the license requirement for the name
field.
"addi t io nal Proper t y ": {
"@ t ype ": "Proper t yValue ",
"na me ": "na meLice nse ",
"value ": "h tt ps : //cloud.google.com/maps-platform/terms "
}
The resultScore
field has been removed from the response.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["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 2024-10-01 UTC."]]