2017-08-07 62 views
1

首先,我得到一個zomato api。然後我使用nodejs獲取從api獲取餐館。如何通過zomato api獲得100多家餐館?

0-19項:

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=0&count=20 

20-40項:

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=20&count=20 

40-60項:

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=40&count=20 

60-80項:

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=60&count=20 

80-100項目:

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=80&count=20 

100-120(從開始,它開始返回空記錄)

https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=100&count=20 

我的問題是它的方式返回更多的項目。

回答

0

對於特定的搜索標準,上限限制爲100個結果。無法通過搜索API獲取超過100個列表(這適用於基本和合作夥伴API訪問)。

+0

這是一種獲得更多結果(通過其他方式)的方法嗎? – kenpeter

+0

不,功能尚未提供。 –