Baidu
Search the web with Baidu and get organic results with their position, title, link, domain and snippet
Baidu is a web search engine. This endpoint returns its organic results for a query in the same rows as Bing and DuckDuckGo: position, title, url, displayed_url, domain, site_name, snippet and date, so one parser reads every engine.
Base URL: /v1/baidu/...
Baidu exposes 1 routes here.
Quickstart
Search
Pass your search terms as query.
curl "https://www.socialcrawl.dev/v1/baidu/search?query=%E7%83%AD%E6%B3%B5" \
-H "x-api-key: YOUR_API_KEY"{
"success": true,
"data": {
"items": [
{
"position": 1,
"title": "…",
"url": "https://…",
"domain": "…",
"snippet": "…"
}
],
"next_cursor": "2"
}
}Read the next page
Pass the returned next_cursor as cursor.
curl "https://www.socialcrawl.dev/v1/baidu/search?query=%E7%83%AD%E6%B3%B5&cursor=2" \
-H "x-api-key: YOUR_API_KEY"Questions people ask
How do I get the next page?
Pass the next_cursor of a page back as cursor. Baidu serves 10, 20 or 50 a page, as deep as Baidu's 750th result.
What is site_name on a Baidu result?
The source Baidu names for the result, for example 百度百科 for Baidu Baike, or null when it names none. url is the result's real address, not Baidu's redirect link.
How deep can I go?
To Baidu's 750th result: 16 pages at limit=50, 76 pages at limit=10. Baidu can return fewer results than asked when a page holds other modules.
What is date?
The date Baidu prints for the result, exactly as it prints it, or null when it prints none. It is never reformatted.
Does it return ads?
No. Only the organic results.
All endpoints
1 endpoint available.
| Endpoint | Path | Credit Tier |
|---|---|---|
| Search the web with Baidu | /v1/baidu/search | standard (1cr) |
How far back and how deep
Each list returns one page at a time. Send cursor for the next page, or max_items or max_pages to collect several pages in one call. A page size appears only where it has been verified. How paging works
| Path | Rows per page | Date window | One call collects |
|---|---|---|---|
/v1/baidu/search | about 10 | none | up to 5,000 rows or 50 pages |
