Google Releases Long-Awaited Knowledge Graph API

by Aaron Bradley on December 18, 2015

in Search Engines, Semantic Web

Google Releases Long-Awaited Knowledge Graph API

In a Google+ post on Wednesday Freebase announced that the Google Knowledge Graph Search API was now available.

Freebase, in announcing the closure of Freebase in December 2014, promised that a Knowledge Graph API would be made available as replacement for the Freebase API and widget. The Freebase API and widget will remain available for three months after a replacement for the Freebase Suggest Widget, still in development, is launched.

The Knowledge Graph API itself allows users to find entities that reside in the Google Knowledge Graph, using standard schema.org types. Results are returned in JSON-LD format.

Google Knowledge Graph API result for the query "taylor swift" in JSON-LD format

As noted in the API reference documentation, by using the types parameter entities returned by the query can be restricted to a specified schema.org type (of which there are currently 638).

The API also allows users to get a "a ranked list of the most notable entities that match certain criteria." This is conveyed as a numeric value for the EntitySearchResult property resultScore. The description of resultScore merely states that "[r]esults with higher resultScores are considered better matches."

EntitySearchResult, resultScore and another new property with a range (expected type) of Article, detailedDescription, are all new extensions residing at the subdomain schema.googleapis.com. As far as I know this is the first external schema.org extension employed by Google.

Thanks to Mark van Berkel for the heads-up (via Dan Brickley).

UPDATE (23 December 2015) – Here are some quick initial observations on the API that I've made via the Semantic Search Marketing community on Google+:


{ 11 comments… read them below or add one }

1 rachel December 21, 2015 at 8:10 am

Do you know if there is anyway to put business info into the knowledge graph, the way you were able to do it by Freebase?

Reply

2 Aaron Bradley December 21, 2015 at 8:57 am

Thanks for your question Rachel. And the answer is yes: Google recently revamped its guidelines for local businesses on their developer site, now supporting the provision of business information via schema.org markup on the local business website. While this is currently being tested with a select set of businesses, Google claims they will “soon open up the feature so any provider who implements spec-compliant markup is eligible to participate.” Read more here.

Reply

3 Yuri Katkov December 26, 2015 at 3:34 pm

Congratulations with the release! As far as I can see, the abilities of the new API are relatively modest right now, compared to MQL language used in Freebase. Are there any plans to include the full query language to the API?

Reply

4 Aaron Bradley January 4, 2016 at 9:55 am

Thanks for your comment Yuri. While many have noted, like you, the bare bones nature of the current querying capability, Google has not yet announced any plans to expand the functionality of the API. I guess we’ll just have to stay tuned. :)

Reply

5 Best SEO Company Delhi January 19, 2016 at 9:09 pm

Thanks a lot for sharing such a useful information . Aaron would you please tell me the schema about displaying technical support toll free number. As you search “samsung toll free number” you get number on top i want the schema like this can you help me.

Reply

6 Aaron Bradley January 20, 2016 at 9:37 am

See these Google guidelines about how to mark up telephone numbers (and other contact details).

Reply

7 Patrick January 23, 2016 at 7:27 am

Dear Aaron Bradley
I already integrated Google knowledge graph api by using scheme format but i still can’t find any result on google search right panel, even I tested structure data testing tools it’s showing everything is correct. Now what to do buddy?

Reply

8 Aaron Bradley January 25, 2016 at 10:58 am

Hi Patrick. What do you mean “I already integrated Google knowledge graph api by using scheme format”? And what were you expecting to appear in the Knowledge Panel (the “google right search panel”) as a result of “integrating” the Knowledge Graph API? There’s no ranking or visibility benefit to be had directly by using the Knowledge Graph Search API: it’s a utility for looking up what information Google has in its Knowledge Graph about a particular entity – nothing more, nothing less.

Reply

9 Brano February 29, 2016 at 7:00 pm

Hi Aaron, first of all thanks for this article. For Patrick, I think I understand what he is trying to do. Lets get example, search query is “matrix” – in google, on the right side you got various info about that – covers, description, cast, imdb link and other links – all useful info.
Is there any possibility using google API to retrieve this info ? I know how to use method https://kgsearch.googleapis.com/v1/entities:search?query=matrix… and I am getting basic results, but thats all.

Reply

10 Demetrius Shaw January 23, 2016 at 12:33 pm

Someone please get me on Knowledge Graph?
Plus im verified on facebook as a musician!

Reply

11 Aaron Bradley January 25, 2016 at 10:59 am

And “someone” should “get you” on the Knowledge Graph for what reason?

Reply

Leave a Comment

Previous post:

Next post: