Baidu SERP Scraper API

API Endpoint Specifications

  • Endpoint Path: /api/1/baiduSERPScraper
  • Type of Data: JSON & 20/minute
  • Data Source: Baidu.com
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Baidu SERP Scraper API Endpoint Basic Info

API Endpoint Path

required

Baidu Search Result Information Scraper API

api/1/baiduSERPScraper


Call Method

Required

GET

Type of Data Return

JSON

Output structured JSON data on Baidu SERP content


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Free and paid subscription APIs are both available: /api/1/baiduSERPScraper, and accessible to on-site APP on /app/1/baiduserp 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 Search Result Information Scraper API

api/1/baiduSERPScraper


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.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"

data="keyword=" + keyword + "&page=" + page
headers={"Authorization": "Bearer " + token}

## Call the api ##
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Keyword": " " (string),
    "SERP Title": " " (string),
    "SERP Snippet": " " (string),
    "SERP Link": " " (string),
    "serp_machine_learning_model": " " (string),
}