Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding an organization's public social media profiles via Google API

When you search for a brand or organization in Google, you often get an info block like this:

From some research, I've determined that this information comes from the Google Knowledge Graph API. However, if I search for that brand or organization, I don't get the social media information.

Potentially, this information can appear under the url.sameAs field of any entity (of type Thing). However, when I make a query to the Google Knowedge Graph API, I do not receive this information:

GET https://kgsearch.googleapis.com/v1/entities:search?prefix=true&query=Bezeq&key={YOUR_API_KEY}

Yields:

"@type": "EntitySearchResult",
 "result": {
  "@id": "kg:/m/01tjk8",
  "name": "Bezeq",
  "@type": [
   "Corporation",
   "Thing",
   "Organization"
  ],
  "description": "Telecommunications company",
  "image": {
   "contentUrl": "http://t0.gstatic.com/images?q=tbn:ANd9GcRybGXwH0QomTkKsrK_Klilh6Pcuj9WS0tqrO_DgBkyX6NbEsvR",
   "url": "https://he.wikipedia.org/wiki/%D7%91%D7%96%D7%A7",
   "license": "http://creativecommons.org/licenses/by-sa/4.0"
  },
  "detailedDescription": {
   "articleBody": "Bezeq is the largest telecommunications group in Israel. Bezeq and its subsidiaries offer a range of telecom services, including fixed-line, mobile telephony, high-speed Internet, transmission, and pay TV.",
   "url": "https://en.wikipedia.org/wiki/Bezeq",
   "license": "https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"
  },
  "url": "http://www.bezeq.co.il/"
 },
 "resultScore": 43.007484
},

I've also attempted to look for the information using the Google Places API, but it wasn't there either.

Is this information accessible via the API? If so, where and how do I access it?

like image 572
GregRos Avatar asked Feb 07 '17 17:02

GregRos


People also ask

Are Google APIs free?

Some Google APIs charge for usage, and you need to enable billing before you can start using these APIs. Enabling billing for the APIs that your projects use also has other advantages: Some APIs allow free usage up to a courtesy usage limit, and in some cases this free limit is increased when you enable billing.

What is Google APIs used for?

Google Cloud APIs are programmatic interfaces to Google Cloud Platform services. They are a key part of Google Cloud Platform, allowing you to easily add the power of everything from computing to networking to storage to machine-learning-based data analysis to your applications.


1 Answers

The social profile information is not accessible via the API (see the API response specification here) and there is no indication yet that this is going to change.

like image 68
Anton Vasetenkov Avatar answered Oct 05 '22 22:10

Anton Vasetenkov