{detailedDescription`

时间:2019-04-09 15:57:14

标签: google-api google-knowledge-graph

在显示here的泰勒·斯威夫特(Taylor Swift)的示例请求之后,我收到以下响应,该响应与网站上显示的响应不匹配。此外,我对articleBody字段的detailedDescription感兴趣,但该字段的返回方式不同。是否有未在文档中反映的API更新?是否可以通过Python API请求articleBody

{
  "@context": {
    "@vocab": "http://schema.org/",
    "goog": "http://schema.googleapis.com/",
    "EntitySearchResult": "goog:EntitySearchResult",
    "detailedDescription": "goog:detailedDescription",
    "resultScore": "goog:resultScore",
    "kg": "http://g.co/kg"
  },
  "@type": "ItemList",
  "itemListElement": [
    {
      "@type": "EntitySearchResult",
      "result": {
        "@id": "kg:/m/0dl567",
        "name": "Taylor Swift",
        "@type": [
          "Thing",
          "Person"
        ],
        "description": "American singer",
        "image": {
          "contentUrl": "http://t0.gstatic.com/images?q=tbn:ANd9GcST848UJ0u31E6aoQfb2nnKZFyad7rwNF0ZLOCACGpu4jnboEzV",
          "url": "https://en.wikipedia.org/wiki/Begin_Again_(Taylor_Swift_song)"
        },
        "url": "http://taylorswift.com/"
      },
      "resultScore": 1237.141968
    }
  ]
}

0 个答案:

没有答案