javascript - Bing search string - Stack Overflow

I was wondering if I could construct my own Bing Uri search string's based on the following inform

I was wondering if I could construct my own Bing Uri search string's based on the following information.

I am trying to search over a certain domain and locale. For instance;

search here "http//:www.kotaku" for "playstation 3" and take me to a bing results page that is in es-es locale language (spanish.)

Can anyone give a link for more reading or an easy solution?

Thanks in advance.

Edit: Looks like the Bing API returns search results for one to use in their own site. This is not what I want, I just want to redirect to the Bing page with the results I want.

I was wondering if I could construct my own Bing Uri search string's based on the following information.

I am trying to search over a certain domain and locale. For instance;

search here "http//:www.kotaku." for "playstation 3" and take me to a bing results page that is in es-es locale language (spanish.)

Can anyone give a link for more reading or an easy solution?

Thanks in advance.

Edit: Looks like the Bing API returns search results for one to use in their own site. This is not what I want, I just want to redirect to the Bing page with the results I want.

Share Improve this question edited Mar 24, 2011 at 17:02 theDawckta asked Mar 24, 2011 at 7:40 theDawcktatheDawckta 8743 gold badges11 silver badges25 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 2

According to Bing API 2.0 you can search like so:

http://api.search.live/json.aspx?AppId=<YOUR_APP_ID>&Query=<QUERY_STRING>&sources=web

QUERY_STRING is URL encoded string containing all your params.

This document also contains some example how to use service with JavaScript, PHP and C#.

For your example it should be like:

playstation%203%20site:www.kotaku.%20language:es

or in human readable format:

playstation 3 site:www.kotaku. language:es

You can get your APP_ID here absolutely free.

I was wondering myself how we can e up with Bing search strings like the one found on Avant's Forum Site:

http://forum.avantbrowser./viewtopic.php?f=13&t=14092

In Avant Browser, we can input search strings so we can automatically use that particular search engine whenever we type a word on the search box. I wanted to use Bing ever since Google made ga-ga over their safe search goo-goo. Problem was I didn't know how to syntax that. Hope this helps you in the same way that I'm asking for help myself. Thanks!

I think the easiest for you is to try to build up your advanced query using the site and then look at the format. For your query I can build up this url:

http://www.bing./search?q=playstation+3+language%3Aes+site%3Awww.kotaku.

The %3A is a url encoded colon.

So basically you can apply advanced parameters as language:es or site:mysite. (where the colon is url encoded).

If you want to search in English add language:en in your URL. For example, if the search term is "test" then your URL will be http://www.bing./search?q=test+language%3Aen

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745131925a4613013.html

相关推荐

  • javascript - Bing search string - Stack Overflow

    I was wondering if I could construct my own Bing Uri search string's based on the following inform

    6小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信