我已经使用 Knowledge Graph API 几个月了。我刚刚收到 400“请求包含无效参数”。我相信 API 有中断或未记录的新要求。
以下是说明: https ://developers.google.com/knowledge-graph/#sample_request
这是每个指令的更具体示例。我的 API 密钥是正确的。使用故意无效的 API 密钥会产生相应的错误。
确切的查询 URL 为: https ://kgsearch.googleapis.com/v1/entities:search?query=taylor+swift&key= {api-key}&limit=1&indent=True
更新:它刚刚重新开始工作。