gpt4 book ai didi

php - Google Freebase API 一次获取名称、图像和文本

转载 作者:可可西里 更新时间:2023-11-01 01:02:23 24 4
gpt4 key购买 nike

<分区>

目前我做的是调用以下API

$url    = 'https://www.googleapis.com/freebase/v1/search?query='. $query; // to fetch name and id

并使用上述 API 结果中的 id,我执行了另外两个 API 来获取文本和图像

$url = 'https://usercontent.googleapis.com/freebase/v1/image' . $entity_id; // to fecth image

$url = 'https://www.googleapis.com/freebase/v1/text/' . $entity_id; // to fetch description

freebase 是否有任何 API/URL,这样我可以同时获得所有这三个 ?????

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