When submitting URLs to search engines, the two most common ways are single URL submission and sitemap submission.
For example, on Baidu:
- You can do a quick manual submission here: http://zhanzhang.baidu.com/linksubmit/url
- You can submit your sitemap to Baidu in Baidu Webmaster Tools. This is the go-to method for most webmasters.
But this summer, Baidu introduced a fancier yet kind of geeky way of URL submission – bulk submission via the direct submission API.
By utilizing Baidu’s direct submission API, webmasters don’t have to sit there waiting for Baidu to come to your site and find new URLs on your site any more – now you can directly push new URLs to Baidu, which can potentially make the indexation process much quicker.
Isn’t that cool? Okay, we have created a simple guide to help you get started quickly.
First, you need a Baidu Webmaster Tools account. Baidu assigns each webmaster tools account a unique token, which is part of the request URL for URL submission.
You can find you own access token by going to “链接提交” in your BWT account.
For example, if your website is www.a.com, your access URL will be something like:
|site||yes||string||a verified website in Baidu Webmaster Tools|
|token||yes||string||Your own private token|
Put the URLs in a file named urls.txt. One URL per line.
HTTP Post Method Example
|success||yes||int||no. of URLs that are successfully submitted|
|remain||yes||int||no. of URLs left in the daily quota|
|not_same_site||no||array||not a verified site in your BWT account|
|not_valid||no||array||invalid URLs submitted|
"message":"token is not valid"
|error||yes||int||error code, usually a 4xx HTTP status code|
To simplify the URL submission process, Baidu has released official plugins for WordPress and Discuz. The plugins not only submit the site’s URLs to Baidu, but also make the submitted data in a Baidu-friendly way.
You can grab the plugins here: http://zhanzhang.baidu.com/dataplug/