Skip to content
Scrappa Get API key
Baidu API 1 credit/request

Baidu News Search

GET https://scrappa.co/api/baidu/news

Returns the articles Baidu News shows for a query: title, article URL, snippet, publisher, publisher icon, thumbnail and Baidu's display time. Page with page (1 to 10, 10 articles per page). Narrow by age with period: hour, day, week, month or year. date is Baidu's own text, for example 3天前 or 9月1日, and is never turned into a guessed timestamp. A request that returns no articles or fails is not billed.

Baidu News Search 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/baidu/news
Auth header
x-api-key
Cost
1 credit/request
query = 人工智能
Response preview
200 OK
{
    "pagination": {
        "page": 1,
        "next_page": 2,
        "results_on_page": 10
    },
    "news_results": [
        {
            "url": "https://baijiahao.baidu.com/s?id=1880139673342805861&wfr=spider&for=pc",
            "date": "3\u5929\u524d",
            "title": "\u4e3a\u4eba\u5de5\u667a\u80fd\u6cbb\u7406\u951a\u5b9a\u65f6\u4ee3\u822a\u5411",
            "source": "\u5149\u660e\u7f51",
            "snippet": "\u57282026\u4e16\u754c\u4eba\u5de5\u667a\u80fd\u5927\u4f1a\u4e0a\uff0c\u4e60\u8fd1\u5e73\u603b\u4e66\u8bb0\u90d1\u91cd\u5ba3\u5e03\u2026\u2026",
            "position": 1,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

query string Required

Search query in any language. Chinese queries return the most results.

Example value 人工智能
page integer Optional

Page number from 1 to 10, 10 articles per page. Default: 1.

Example value 1
period string Optional

Only articles up to this age: hour, day, week, month or year.

Example value week

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

pagination news_results response_time_ms search_parameters

Common news_results fields

url date title source
JSON Response
200 OK
{
    "pagination": {
        "page": 1,
        "next_page": 2,
        "results_on_page": 10
    },
    "news_results": [
        {
            "url": "https://baijiahao.baidu.com/s?id=1880139673342805861&wfr=spider&for=pc",
            "date": "3\u5929\u524d",
            "title": "\u4e3a\u4eba\u5de5\u667a\u80fd\u6cbb\u7406\u951a\u5b9a\u65f6\u4ee3\u822a\u5411",
            "source": "\u5149\u660e\u7f51",
            "snippet": "\u57282026\u4e16\u754c\u4eba\u5de5\u667a\u80fd\u5927\u4f1a\u4e0a\uff0c\u4e60\u8fd1\u5e73\u603b\u4e66\u8bb0\u90d1\u91cd\u5ba3\u5e03\u2026\u2026",
            "position": 1,
            "thumbnail": null,
            "source_icon": "https://pic.rmb.bdstatic.com/388317709b6c55c898306a6925fc8279.jpeg"
        }
    ],
    "response_time_ms": 4200,
    "search_parameters": {
        "page": 1,
        "query": "\u4eba\u5de5\u667a\u80fd",
        "engine": "baidu_news",
        "period": "week"
    }
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Invalid parameter

query is missing, page is outside 1 to 10 or period is not one of the listed values. Not billed.

503

Upstream unavailable

Baidu could not be reached after safe retries. The request is not billed.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.