原创

搜索引擎下拉提示关键词 API接口

谷歌(Google)
Api地址:www.google.com/s?hl=zh-cn&sugexp=llsin&q=设计

window.google.ac.h(["设计", [
["设计在线", "", "0"],
["设计", "", "1"],
["设计素材", "", "2"],
["设计签名", "", "3"],
["设计网", "", "4"]
], {“
k”: 1
}])


百度(baidu)
Api地址:http://suggestion.baidu.com/su?wd=设计&p=3&cb=callback

callback({
q: "设计",
p: false,
s: ["设计本", "设计班徽", "设计师怎么学", "设计图制作软件", "设计教学法", "设计师设计一套房子多少钱", "设计网课", "设计类专业", "设计房子的软件", "设计包装"]
});

// 关键字搜索接口
var getSearchData = function(search_str) {
$.ajax({
type: "GET",
url: "http://suggestion.baidu.com/su?p=3&cb=callback&wd=" + search_str,
dataType: "jsonp",
jsonpCallback: "callback",
success: function (data) {
console.log(data)
}
});
};


搜搜(soso)
Api地址:http://www.soso.com/smart_web.q?w=设计

后面在补充

有道(youdao)
Api地址:http://www.youdao.com/suggest2/suggest.s?query=设计&keyfrom=web.suggest&rn=10&o=aa

后面在补充

搜狗(sogou)
Api地址:http://w.sugg.sogou.com/sugg/ajaj_json.jsp?key=设计&type=web

window.sogou.sug(["设计", ["设计兼职平台", "设计兼职", "设计师", "设计好的网站", "设计类专业", "设计一个软件要多少钱", "设计经理工作", "设计行业", "设计装修", "设计师怎么学"],
["0;6;0;0", "1;6;0;0", "2;14;0;0", "3;6;0;0", "4;14;0;0", "5;6;0;0", "6;6;0;0", "7;6;0;0", "8;2;0;0", "9;10;0;0"],
["", "", "", "", "", "", "", "", "", ""],
["0"], "", "suglabId_1"
], -1);


一淘(etao)
Api地址:http://suggest.taobao.com/sug?area=etao&code=utf-8&callback=callback&q=设计

callback({
"result": [
["设计感上衣", "264203.50598142773"],
["设计感裙子 轻熟风", "74924.57470844"],
["设计感连衣裙不规则", "83345.77569769141"],
["设计感上衣小众港风", "138748.22326693227"],
["设计感上衣 心机", "361064.19278606965"],
]
})

// 关键字搜索接口

var getSearchData = function(search_str) {

$.ajax({
type: "GET",
url: "http://suggest.taobao.com/sug?area=etao&code=utf-8&callback=callback&q=" + search_str,
dataType: "jsonp",
jsonpCallback: "callback",
success: function (data) {
console.log(data)
}
});
};

必应(bing)
Api地址:http://sg1.api.bing.com/qsonhs.aspx?type=cb&cb=callback&q=关键字

if(typeof callback == 'function') callback({"AS":{"Query":"设计","FullResults":1,"Results":[{"Type":"AS","Suggests":[{"Txt":"设计模式","Type":"AS","Sk":"","HCS":0},{"Txt":"设计本","Type":"AS","Sk":"AS1"},{"Txt":"设计网站","Type":"AS","Sk":"AS2"},{"Txt":"设计之家","Type":"AS","Sk":"AS3"},{"Txt":"设计导航","Type":"AS","Sk":"AS4"},{"Txt":"设计师网址导航","Type":"AS","Sk":"AS5"},{"Txt":"设计说明","Type":"AS","Sk":"AS6"},{"Txt":"设计癖","Type":"AS","Sk":"AS7"}]}]}}/* pageview_candidate */);

// 关键字搜索接口
var getSearchData = function(search_str) {
$.ajax({
type: "GET",
url: "http://sg1.api.bing.com/qsonhs.aspx?type=cb&cb=callback&q=" + search_str,
dataType: "jsonp",
jsonpCallback: "callback",
success: function (data) {
console.log(data)
}
});
};

正文到此结束
本文目录