通过Google API查找组织的公共社交媒体资料

时间:2017-02-07 17:38:57

标签: javascript google-api google-knowledge-graph

当您在Google中搜索品牌或组织时,通常会收到如下信息块:

http://image.prntscr.com/image/87ff8db6800341d690f79a40468e78b6.png

通过一些调查,我确定此信息来自Google Knowledge Graph API。但是,如果我搜索该品牌或组织,我就无法获取社交媒体信息。

此信息可能会显示在任何实体(Thing类型)的url.sameAs字段下。但是,当我查询Google Knowedge Graph API时,我不会收到此信息:

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

收率:

"@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
},

我还尝试使用Google Places API查找信息,但它也没有。

是否可以通过API访问此信息?如果是这样,我在哪里以及如何访问它?

1 个答案:

答案 0 :(得分:2)

无法通过API访问社交资料信息(请参阅API响应规范here),并且尚无迹象表明这种情况将会改变。