Skip to main content
GET
Baidu News
Search Baidu’s news vertical. Articles carry the publisher name, the publish date in both Baidu’s raw form and ISO 8601, and the real article URL — not a baidu.com redirect. Credits: 5

Authorization

string
required
Your ScrapeBadger API key.

Query Parameters

string
required
Search keywords, e.g. 人工智能. URL-encode as UTF-8.
integer
default:"1"
Result page, 176. Fixed at 10 articles per page — the news vertical has no page-size parameter.
string
default:"relevance"
Result ordering. relevance (Baidu’s default ranking) or time (most recent first).

Response

string
Echo of the requested query.
integer
The page returned.
integer
Baidu’s own reported total, when it renders one. null otherwise.
string
The baidu.com URL that was fetched.
NewsResult[]
Articles on this page.
Only position, title, query and page are guaranteed present. Every other field is nullable — Baidu’s news cards vary by publisher.

Example

Response

Sorting for monitoring

For a news monitor, poll with sort=time and stop at the first article you have already seen. Deduplicate on url (the real article URL), not on title — Chinese outlets syndicate the same headline across many domains, and on baidu_url, which is per-impression and changes between requests.
sort=time orders by Baidu’s own index date. Freshly indexed older articles can appear above newer ones, so date_at is the field to trust when you need a real chronology.

Errors