• Search Engine Land
  • Sections
    • SEO
    • SEM
    • Mobile
    • Local
    • Retail
    • Google
    • Bing
    • Social
    • Home
  • Follow Us
    • Follow
  • Search Engine Land
  • SEO
  • SEM
  • Mobile
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • More
  • Events
    • Follow
  • SUBSCRIBE

Search Engine Land

Search Engine Land

"Medic" update recovery

How one site did it

Shopping Ads 2019

What's in store for SMBs?

Events

Join us at SMX Advanced!

  • SEO
  • SEM
  • Mobile
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • Newsletters
  • Home
SEO

Sign up for our daily recaps of the ever-changing search marketing landscape.

Note: By submitting this form, you agree to Third Door Media's terms. We respect your privacy.


Cool tricks to explore Google’s Knowledge Graph results, featuring Donald Trump

Whether you want to gain some insight into how Google's Knowledge Graph works or you just want to prank your friends, columnist Tony Edward shows some cool tricks for changing up the SERP display with URL modifiers.

Tony Edward on February 9, 2017 at 11:44 am
  • More
Kashin / Shutterstock.com

Kashin / Shutterstock.com

By now the majority of searchers on Google are familiar with the Knowledge Graph box, which appears on the right side of the search results page and highlights information about various entities (companies, people, places, things and so on).

In the past, I’ve written about how to both obtain and optimize a Knowledge Graph result. In my attempts to learn more and get a better understanding of Google’s Knowledge Graph, I’ve discovered some cool hacks and tricks. While these tricks do not have any significant practical implications, they can serve as a way to better understand how Google’s Knowledge Graph works, which can be used to optimize your personal or company Knowledge Graph results.

Before getting into the tricks, let’s break down some important items. For the examples below, I used Donald Trump.

Google Knowledge Graph API

The Google Knowledge Graph API is a tool that can be used to get insight into your Knowledge Graph result. It provides details about classification of the entity, score and ranking. It also provides a machine-generated identifier (MID), which is a unique code assigned to each entity.

Google Knowledge Graph API

MID (machine-generated identifier)

Machine-generated identifiers, or MIDs, are unique entity IDs that were originally generated from Freebase. Although Freebase was ultimately shut down and the data was migrated to Wikidata, Google is still using the Freebase identifier codes for entities. This could eventually change to Wikidata Qids, but we have to wait and see what Google will do.

As you can see below, in the Knowlege Graph API results for “donald trump,” the president’s entity MID is /m/0cqt90.

Donald Trump MID Entity

Normal search engine results page (SERP)

Here is what the normal SERP looks like when a search for “Donald Trump” is completed. As you can see, Trump is an entity and has a detailed Knowledge Graph panel appearing alongside his search results.

https://www.google.com/search?q=donald+trump

Donald Trump SERP

Knowledge Graph tricks

Knowledge Graph-only SERP

By inserting the following modifiers into the search URL, we can have just the Knowledge Graph Panel appear on the SERP, with no paid or organic listings.

Modifiers:

  • kponly  (a command that tweaks the SERPs to only show the Knowledge Graph panel)
  • kgmid= (a command that allows the SERP to be filtered specifically for the specified entity; simply add the MID number after the equal sign)

Original URL: https://www.google.com/search?q=donald+trump

Modified URL: https://www.google.com/search?q=donald+trump&kponly&kgmid=/m/0cqt90

Donald Trump Knowledge Graph Result

Change the language of content in the Knowledge Graph

Adding the hl string to the URL and specifying a language code will change the language of the Knowledge Graph SERP. Here is an example of the content changed to Spanish.

Original URL: https://www.google.com/search?q=donald+trump

Modified URL: https://www.google.com/search?q=donald+trump&kponly&kgmid=/m/0cqt90&hl=es

Donald Trump Spanish

Change related images in the Knowledge Graph panel

Another trick that can be done is to change the related images within the Knowledge Graph panel to items you specify in your search query. For example, a regular search for “donald trump mexico” does not return a Knowledge Graph result.

Donald Trump Mexico No Knowledge Graph

However, by appending the MID to the search results URL, we can generate a Knowledge Graph result that contains images relevant to the search query.

Original URL: https://www.google.com/search?q=donald+trump+mexico

Modified URL: https://www.google.com/search?q=donald+trump+mexico&kgmid=/m/0cqt90

Donald Trump Mexico with Knowledge Graph

Generate a Knowledge Graph panel for an entity for any search query

This trick is my favorite, as it’s great for a prank or joke. Applying the same tactic from the previous example allows you to have a Knowledge Graph panel for your specified MID appear on the SERP for any search query — even if your Knowledge Graph entity is not related to your search.

Original URL: https://www.google.com/search?q=homer+simpson

Modified URL: https://www.google.com/search?q=homer+simpson&kgmid=/m/0cqt90

Donald Trump Homer Simpson

Note that this trick will override an existing Knowledge Graph panel for an entity. Without the “hacked” URL, a search for “Homer Simpson” generates a Knowledge Graph result for Homer Simpson, as expected.

 

homer-simpson-knowledge-graph

I hope this helps shed some light on how some parts of Google’s Knowledge Graph work. It can be useful if you’re redirecting users to a Google SERP result for reasons related to business or humor.


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.



About The Author

Tony Edward
Tony Edward is a Senior SEO Manager at Elite SEM and an Adjunct Instructor of Search Marketing at NYU. He leads the SEO team at Elite SEM's New York City office. Tony has been in the online marketing industry for eight years. His background stems from affiliate marketing and has experience in paid search, social media and video marketing.

Popular Stories

How to test (and perfect) nearly everything in PPC
Yahoo-Bing Reach New Search Deal; Yahoo Gains Right To Serve Search Ads On The PC
How To Remove Your Personal Information From Google
A site migration SEO checklist: Don’t lose traffic

Related Topics

All Things SEO ColumnChannel: SEOGoogleGoogle: Knowledge GraphGoogle: Web Search

Sign up for our daily recaps of the ever-changing search marketing landscape.

Note: By submitting this form, you agree to Third Door Media's terms. We respect your privacy.


We're listening.

Have something to say about this article? Share it with us on Facebook, Twitter or our LinkedIn Group.

Attend Our Conferences

April 2-3, 2019: SMX Munich

May 21-22, 2019: SMX London

June 3-5, 2019: SMX Advanced

June 12-13, 2019: SMX Paris

Sept 30 - Oct 1, 2019: SMX Advanced Europe

November 13-14, 2019: SMX East

×

Attend SMX - Click Here


Learn More About Our SMX Events

Gain new strategies and insights at the intersection of marketing, technology, and management. Our next conference will be held:

April 3-5, 2019: San Jose

September 16-18, 2019: Boston

×

Attend MarTech - Click Here


Learn More About Our MarTech Events

White Papers

  • The Ultimate Guide to Site Search User Experience
  • The Marketing Analytics Buyer’s Guide 2019
  • Mission Possible: Quality Content Marketing
  • 2019 Marketing Trends: Nine factors reshaping marketing and how you can stay ahead of them
  • The Dummies Guide to Enterprise Customer Data Platforms
See More Whitepapers

Webinars

  • 2019 Martech Trends You Need To Know
  • How to Prepare for a Successful Marketing Analytics Implementation
  • Get More From Your Customer Data With Open Marketing Cloud: A Demo of Mautic’s Marketing Automation Platform
See More Webinars

Research Reports

  • B2B Marketing Automation Platforms
  • Account-Based Marketing Tools
  • Enterprise SEO Platforms
  • Call Analytics Platforms
  • Paid Media Campaign Management Platforms
  • Local Marketing Automation Tools
See More Research

Search Engine Land’s Guide To SEO

Search Engine Land’s Guide To SEO
Sign up for our daily newsletter.
Search Engine Land
Download the Search Engine Land app on iTunes Download the Search Engine Land App on Google Play

Follow Us

© 2019 Third Door Media, Inc. All rights reserved.