





API:Scraper
API Endpoint Path
required
Baidu SERP General Text Content Scraper API
https://www.buyfromlo.com/api/1/baiduSERPScraper
Call Method
Required
GET
Type of Data Return
JSON
JSON output structured data for Baidu SERP content
Token
required
BUYFROMLO API token. Free and subscription APIs are both available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app as well
keyword
required
Input a keyword in Simplified Chinese
page
Optional
Selected pagination of SERP information. The default value is 1st page, which is 1
Baidu SERP General Text Content Scraper API
https://www.buyfromlo.com/api/1/baiduSERPScraper
Python Code Sample
import requests
apiendpoint = "https://www.buyfromlo.com/api/1/baiduSERPScraper"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
keyword = "Input a query"
## optional arguments and parameters ##
page="total amount of serp results, max. 5 pages"
## Call the api ##
response = requests.get(apiendpoint + "?token=" + token + "&keyword=" + keyword + "&page=" + page)
print(response.status)
print(response.json())
JSON Response Sample
{
"Keyword": "",
"SERP Title": "",
"SERP Snippet": "",
"SERP Link": "",
"serp_machine_learning_model": ""
}