gpt4 book ai didi

javascript - 通过 Google API 查找组织的公共(public)社交媒体资料

转载 作者:搜寻专家 更新时间:2023-11-01 04:29:35 25 4
gpt4 key购买 nike

当您在 Google 中搜索品牌或组织时,您通常会看到这样的信息 block :

根据一些研究,我确定此信息来自 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 访问此信息?如果是这样,我在哪里以及如何访问它?

最佳答案

无法通过 API 访问社交个人资料信息(请参阅 API 响应规范 here),目前还没有迹象表明这会发生变化。

关于javascript - 通过 Google API 查找组织的公共(public)社交媒体资料,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42096405/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com