An example api call is: https://api.flickr.com/services/feeds/photos_public.gne?tags=dog&tagmode=any&format=json
一个示例api调用是:https://api.flickr.com/services/feeds/photos_public.gne?
Which only returns 20 images. Is there a way to get the next 20 images, or load more images?
它只返回20个图像。是否有办法获取接下来的20张图片,或者加载更多的图片?
2 个解决方案
#1
2
It's API page doesn't say anything: https://www.flickr.com/services/feeds/docs/photos_public/
API页面什么都没说:https://www.flickr.com/services/feeds/docs/photos_public/
But I found another query to work with:
但我找到了另一个与之合作的查询:
https://api.flickr.com/services/rest?sort=relevance&parse_tags=1&content_type=7&extras=can_comment%2Ccount_comments%2Ccount_faves%2Cdescription%2Cisfavorite%2Clicense%2Cmedia%2Cneeds_interstitial%2Cowner_name%2Cpath_alias%2Crealname%2Crotation%2Curl_c%2Curl_l%2Curl_m%2Curl_n%2Curl_q%2Curl_s%2Curl_sq%2Curl_t%2Curl_z%2Cis_marketplace_licensable&per_page=50&page=1&lang=en-US&text=dog&viewerNSID=&method=flickr.photos.search&csrf=&api_key=fb4c82e7cd32fc74eb349aa61fc1b1aa&format=json&hermes=1&hermesCl流动= 1 &reqid = f866abd5&nojsoncallback = 1
This one has all you need, including tag (text param), page and per_page. I think you should to sing up your app here and you gonna to receive your own api_key.
这个包含所有您需要的内容,包括标签(文本参数)、页面和per_page。我觉得你应该在这里唱你的应用然后你会收到你自己的api_key。
#2
-1
Yes. There is the parameter &per_page= [number of photos]. Try https://api.flickr.com/services/feeds/photos_public.gne?tags=dog&tagmode=any&per_page=40&format=json
是的。有参数&per_page=[照片数量]。试试https://api.flickr.com/services/feeds/photos_public.gne?tags=dog&tagmode=any&per_page=40&format=json
#1
2
It's API page doesn't say anything: https://www.flickr.com/services/feeds/docs/photos_public/
API页面什么都没说:https://www.flickr.com/services/feeds/docs/photos_public/
But I found another query to work with:
但我找到了另一个与之合作的查询:
https://api.flickr.com/services/rest?sort=relevance&parse_tags=1&content_type=7&extras=can_comment%2Ccount_comments%2Ccount_faves%2Cdescription%2Cisfavorite%2Clicense%2Cmedia%2Cneeds_interstitial%2Cowner_name%2Cpath_alias%2Crealname%2Crotation%2Curl_c%2Curl_l%2Curl_m%2Curl_n%2Curl_q%2Curl_s%2Curl_sq%2Curl_t%2Curl_z%2Cis_marketplace_licensable&per_page=50&page=1&lang=en-US&text=dog&viewerNSID=&method=flickr.photos.search&csrf=&api_key=fb4c82e7cd32fc74eb349aa61fc1b1aa&format=json&hermes=1&hermesCl流动= 1 &reqid = f866abd5&nojsoncallback = 1
This one has all you need, including tag (text param), page and per_page. I think you should to sing up your app here and you gonna to receive your own api_key.
这个包含所有您需要的内容,包括标签(文本参数)、页面和per_page。我觉得你应该在这里唱你的应用然后你会收到你自己的api_key。
#2
-1
Yes. There is the parameter &per_page= [number of photos]. Try https://api.flickr.com/services/feeds/photos_public.gne?tags=dog&tagmode=any&per_page=40&format=json
是的。有参数&per_page=[照片数量]。试试https://api.flickr.com/services/feeds/photos_public.gne?tags=dog&tagmode=any&per_page=40&format=json