Baidu search URL parameters

Source: Internet
Author: User

Http://www.baidu.com? WD = keyword
WD (keyword): the keyword of the query;
Http://www.baidu.com? WD = keyword & CL = 3
CL (class): Search type. Cl = 3 indicates web search, and Cl = 2 indicates image search;
Http://video.baidu.com/V? Rn = 20 & Pn = 0
Pn (page number): displays the number of pages in the result;
Http://www.baidu.com? Ie = gb2312
IE (input encoding): encoding of the query keyword. The default value is simplified Chinese, that is, ie = gb2312;
Http://image.baidu.com/I? Ct = 503316480 & Si = zbjingshui.com
CT -- this value is generally a string of numbers, which may be the verification code of the search request;
Si -- search for a specified domain name. For example, if you want to search for a domain name on this site, you can use the parameter Si = shangzhiwang.com. To make this parameter effective, you must use it with the CT parameter;
Http://video.baidu.com/V? Rn = 20 & Pn = 0
RN (Record Number): number of records displayed in the search result. The default value is RN = 10. The value range is 10-100;
Http://www.baidu.com? BS = Business Intelligence Network
BS (before search): the keyword of the last search;
TN: the source site for submitting search requests. This is the source of interest when Baidu cooperates with free software. For example, when we use Baidu search provided by some free browsers, the URL contains Tn = content, and the content after Tn = is the account of the Baidu alliance. For example: Firefox Tn = suvion_dg (Tn = suvion_4_dg), aoyou Tn = myie2dg, the world Tn = suvion_4_pg, as long as you use the search with Tn =, if you click an advertisement, the browser that provides the software will earn profits. An exception exists in search results. When Tn = baidulocal, you can get a Baidu search result without bidding or advertisement.
Collection supplement:
Baidu parameter analysis-meaning of URL parameters during search

Http://www.baidu.com? Lm = 0 (search result time limit) & Si = & Rn = 10 (number of entries displayed per page) & Ie = gb2312 & (language) ct = 0 & WD = % Ca % 6% BB % fa & (keyword) Pn = 10 (add 1 page after the first day of the PN ratio) & Ver = 0 & CL = 3 & UIM = 6 & USM = 0
The website to which the TN search box belongs. For example, Tn = sitehao123, is the http://www.hao123.com/the search box on the left
IE input encoding-input encoding. Baidu does not seem to support other encodings. The default value is "gb2312"
Keywords for word search.
KW search keywords.
Bs BEFORE search-keywords entered in the last search.
This parameter is not recommended for Sr. It is used in combination with BS. Generally, when the query sr = 0 or is null, but sr = 1, the query uses the BS value together as the query keyword. The default value is 0, and other values except 0 and 1 are invalid.
CT language restrictions. 0-all languages, 1-Simplified Chinese Web pages, 2-Traditional Chinese web pages; others are uncertain or invalid. The default value is 0.
Rn: the number of search results on each page. The default value is 10.
The page number of the PN search result, which starts from scratch. That is, PN =$ {result page number-1} * rn.
Lm search result time limit. In days. For example, if you search for a webpage in the last month, lm = 30. The default value is 0, indicating that there is no time limit.
Q5 search content location restrictions. 0-all content; 1-webpage title (equivalent to the query prefix using 'title: '); 2-URL (equivalent to the query prefix using 'inurl:'); other values are equivalent to 0. the default value is 0.
Q6 search content website restrictions. For example, Q6 = sohu.com indicates that only sohu.com web pages are searched; equivalent to using 'site: prefix'. The default value is null.
This parameter is not recommended for DQ. The content of the query is restricted by the original region. The specific value is determined by Baidu. The default value is null. Try again and the effect of using this parameter is poor.
Myselectvalue
Submit =
TB = on?
F is unknown. The default value is null.
CL unknown. The default value is null.
Rs2 is unknown.
SC unknown.

========================================================== ========================================================

Baidu SEARCH Command Parameters
To construct a semi-automated search engine query, you need to understand the functions of Baidu URL composition and parameters. Although it is reprinted, it still has a great learning significance.
Http://www.baidu.com/baidu? CL = 3 & Tn = baidutop10 & WD = % B6 % B9 % B0 % EA
This is a URL link intercepted from the Baidu rankings. CL = 3 indicates Webpage Search, TN indicates origin site, and WD indicates keyword % B6 % B9 % B0 % EA is the result after UTF Encoding.
Baidu SEARCH Command Parameters
Required parameters:
WD -- key word of the query)
PN-page number)
Cl -- search type (class), CL = 3 for Web Search
Optional parameters:
Rn -- number of records displayed in the search result. The value range is 10-. The default value is RN = 10.
IE -- query the input text encoding. The default setting is Ie = gb2312, Which is simplified Chinese.
Tn-source site that submits the search request
Several useful TN
Tn = baidulocal indicates Baidu site search. The returned results are very clean and there is no advertisement interference.
For example, search for "happy" on the Baidu site to see if the returned results are refreshing.
Tn = baiducnnic do you want to put Baidu in the framework? You can try this parameter, which is customized by Baidu for CNNIC.
Si -- search for a specified domain name. For example, if you want to search for a domain name in Sina, you can use the SI = sina.com.cn parameter. To make this parameter effective, you must use it with the CT parameter.
CT -- the value of this parameter is generally a string of numbers and is estimated to be the verification code of the search request.
Si and CT parameters used in combination, such as search for "ideal" in sina.com.cn, available: http://www.baidu.com/s? Q = & Ct = 2097152 & Si = sina.com.cn & Ie = gb2312 & CL = 3 & WD = ideal
Bs -- the keyword of the last search (before search), which is estimated to be related to the related search.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.