Bing API v1 documentation

邮差的信 提交于 2019-12-05 19:57:17

You have to perform your own counts and paging.

results.Count from your foreach statement would get the number of records returned.

There is a maximum of 50 results per query and you can specify the maximum result count with $top=x where x is your desired maximum result.

Ex: https://user:yourAccountKey@api.datamarket.azure.com/Bing/SearchWeb/Web?Query=%27leo%20fender%27&Market=%27en-US%27&$top=50&$format=JSON"

Bing uses OData parameters in the queries now so $top would be the number of results to return and $skip is the offset.

The FAQ with examples of $top and $skip can be found at http://go.microsoft.com/fwlink/?LinkID=252146

The migration guide, which is not very helpful, can be found here http://go.microsoft.com/fwlink/?LinkID=248077

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!