Baidu News Scraper avatar

Baidu News Scraper

Pricing

from $1.99 / 1,000 search results

Go to Apify Store
Baidu News Scraper

Baidu News Scraper

Scrape news search results from Baidu (China's #1 search engine). Extracts article titles, snippets, sources, authors, publication dates, and thumbnails. Supports pagination, source filters, and Chinese date parsing.

Pricing

from $1.99 / 1,000 search results

Rating

0.0

(0)

Developer

Search API

Search API

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Share

Search Baidu's public News interface and export normalized articles with stable IDs, canonical article URLs, publisher metadata, snippets, publication dates, images, query context, and extraction provenance.

Features

  • Uses the current news.baidu.com/ns search interface and follows Baidu's validated native pagination links.
  • Supports single and fair batch query modes.
  • Enforces total and per-query record limits, with bounded query concurrency.
  • Resolves Baidu article redirects when enabled and removes common tracking parameters.
  • Produces stable SHA-256 IDs and deduplicates by canonical article URL.
  • Omits null, blank, empty-array, and empty-object fields recursively.
  • Buffers the complete run before writing, so a later verification challenge cannot publish a partial dataset.
  • Supports direct access, Apify Residential Proxy, and custom proxy URLs through Apify's proxy input editor.
  • Detects CAPTCHA/verification pages and fails closed; it does not solve or bypass interactive verification.

GOOGLE_SERP Proxy is not supported because it is restricted to Google Search and Google Shopping, not Baidu.

Input

FieldDescriptionDefault
modesingle or batchsingle
queryQuery used in single mode人工智能
queriesUp to 20 deduplicated queries used in batch mode[]
maxItemsMaximum records across the run50
maxItemsPerQueryMaximum records collected for each query50
maxPagesMaximum pages followed for each query5
resultsPerPageRequested Baidu page size; live pagination links remain authoritative20
maxConcurrencyConcurrent query browser pages2
resolveRedirectsResolve Baidu article redirect linkstrue
marketLocale tag used in output contextzh-CN
maxRequestRetriesRetries for temporary transport/rate-limit failures3
navigationTimeoutSecsPer-navigation timeout60
requestHandlerTimeoutSecsPer-query handler timeout120
proxyConfigurationDirect, Apify Proxy, or custom proxy configurationdirect
debugSanitized structural diagnostics onlyfalse

Output

The documented schema contains 56 typed fields. A representative run populated 37–45 fields per record, including:

  • Identity: id, type, resultType, position, globalPosition, queryPosition, resultPosition, page
  • Article: title, titleHtml, snippet, snippetHtml, description, emphasis
  • URLs: link, url, domain, displayUrl, sourceUrl, sourceDomain, searchUrl
  • Publisher and dates: source, publishedAt, publishedAtRaw, relativeTime, date
  • Media: thumbnail, thumbnailUrl, imageUrl, images, dimensions, source logo/favicon
  • Context: query, searchQuery, market, country, language, searchMetadata
  • Provenance: engineId, engineData, extractionMethod, snippetExtractionMethod, scrapedAt

Optional fields are omitted when Baidu does not expose them. No placeholder or fabricated values are added.

Examples

Single query:

{
"mode": "single",
"query": "人工智能",
"maxItems": 20,
"maxPages": 2,
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "countryCode": "CN" }
}

Fair batch:

{
"mode": "batch",
"queries": ["人工智能", "机器人"],
"maxItems": 20,
"maxItemsPerQuery": 10,
"maxConcurrency": 2,
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "countryCode": "CN" }
}

Verified behavior

  • Local direct run: 10 audit-clean current News records in about 12 seconds before the local IP was later challenged.
  • Cloud China Residential pagination run: 20 unique records across two pages; crawler runtime about 38 seconds.
  • Cloud China Residential batch run: 20 unique records in a strict 10+10 fair interleave.
  • Cloud no-results run: succeeded with an empty dataset.
  • Dataset audits check required fields, types, nested empty values, URL/date validity, duplicate IDs/URLs, challenge content, unsafe HTML, and sensitive/internal fields.