# Baidu AI Overview Scraper (`lexis-solutions/baidu-ai-overview-scraper`) Actor

Send a prompt and get Baidu's AI overview: the answer blocks, the sources it cites, and the videos shown with that answer. Built for Chinese search monitoring, brand mentions, and answer-engine checks.

- **URL**: https://apify.com/lexis-solutions/baidu-ai-overview-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 74.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.90 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![Baidu](https://www.baidu.com/img/flexible/logo/pc/result.png)

### What does Baidu AI Overview Scraper do?

**Baidu AI Overview Scraper** turns a **prompt** into the **AI overview** shown on [Baidu Search](https://www.baidu.com/). Paste a question the way you would type it into Baidu, and the Actor returns the **answer blocks**, the **sources Baidu cites**, and the **videos** shown inside that answer.

It is a **Baidu AI Overview API** alternative for Chinese search: one prompt in, one structured result out. No Baidu login is required. The Actor reads the public search result only.

### Why use this Baidu AI overview scraper?

Baidu is China's main search engine, and its **AI overview** (百度AI+) sits above the classic results for many informational prompts. The answer mixes paragraphs, headings, lists, and short videos, each tied back to a numbered source. Teams use this Actor to:

- **Answer-engine tracking** — See whether a brand, product, or page is cited in the Chinese AI answer.
- **Content research** — Collect the summary Baidu writes, plus the newsrooms, encyclopedias, and sites it treats as sources.
- **Brand monitoring** — Run a keyword list on a schedule and watch how the answer changes.
- **Cross-engine comparison** — Pair the same prompt with Google, Naver, or other AI-answer tools and compare citations.
- **Knowledge-base drafts** — Export the overview text, source links, and videos for editors to check.

On the **Apify platform** you can schedule runs, call the Actor from the API, export JSON, CSV, or Excel, rotate proxies, and send results to Slack, Make, or Zapier.

### What data can you extract from a Baidu AI overview?

| Field                                     | Description                                                       |
| ----------------------------------------- | ----------------------------------------------------------------- |
| `prompt`                                  | The question you submitted                                        |
| `text_blocks`                             | Ordered answer blocks: `paragraph`, `heading`, `list`, or `video` |
| `text_blocks[].snippet`                   | Text of a paragraph, heading, or list item                        |
| `text_blocks[].snippet_highlighted_words` | Phrases Baidu emphasizes in that snippet                          |
| `text_blocks[].reference_indexes`         | Source numbers cited by that snippet                              |
| `text_blocks[].video`                     | Video URL and thumbnail when the block is a video                 |
| `references`                              | Cited pages: index, title, link, and source name                  |
| `snippet`                                 | Short preview of the first paragraph                              |
| `searchUrl`                               | Public Baidu search URL for the prompt                            |

`references[].index` matches `reference_indexes` inside `text_blocks`. A list item can contain a nested `list`.

Baidu does not generate an AI overview for every search. A normal search page with no overview is opened up to 2 times, then saved with `aiOverviewPresent: false`. A blocked or failed request is retried separately. Question-style prompts are the most reliable.

### How to scrape Baidu AI overviews

1. Open **Baidu AI Overview Scraper** in Apify Console.
2. Add one or more **prompts** (Chinese or any language Baidu understands).
3. Set **Maximum prompts** if you want to cap the run.
4. Start the run and open the **Dataset** tab.
5. Download JSON, CSV, Excel, or HTML, or call the dataset from the API.

### Input

See the input tab for the full form. Each line under **Prompts** is one Baidu search.

| Field                | Description                                                        |
| -------------------- | ------------------------------------------------------------------ |
| `prompts`            | Questions or search prompts. Example: `如何煮鸡蛋`.                |
| `maxItems`           | How many prompts to look up (default `3`).                         |
| `proxyConfiguration` | Optional. Leave the proxy off unless Baidu shows a security check. |

A single prompt is enough. Add a list when you want a keyword set in one run.

### Output

You can download the dataset in **JSON, HTML, CSV, or Excel**.

```json
{
  "prompt": "如何煮鸡蛋",
  "searchUrl": "https://www.baidu.com/s?wd=%E5%A6%82%E4%BD%95%E7%85%AE%E9%B8%A1%E8%9B%8B&ie=utf-8",
  "aiOverviewPresent": true,
  "snippet": "煮鸡蛋推荐水开后下锅煮 6-9 分钟，出锅立刻过冷水，这样既好剥壳又能控制熟度。",
  "sourceCount": 2,
  "text_blocks": [
    {
      "type": "paragraph",
      "snippet": "煮鸡蛋推荐水开后下锅煮 6-9 分钟，出锅立刻过冷水，这样既好剥壳又能控制熟度。",
      "snippet_highlighted_words": [
        "煮鸡蛋推荐水开后下锅煮 6-9 分钟，出锅立刻过冷水"
      ],
      "reference_indexes": [1, 2]
    },
    {
      "type": "heading",
      "snippet": "煮几分钟看你想吃啥"
    },
    {
      "type": "list",
      "list": [
        {
          "snippet": "溏心蛋：煮 5-6 分钟，蛋黄流动，适合拌饭。",
          "snippet_highlighted_words": ["溏心蛋"],
          "reference_indexes": [3]
        }
      ]
    },
    {
      "type": "video",
      "video": {
        "url": "http://haokan.baidu.com/v?pd=wisenatural&vid=8300452169335212860",
        "thumbnail": "http://t14.baidu.com/it/u=1&fm=225"
      }
    }
  ],
  "references": [
    {
      "index": 1,
      "title": "煮鸡蛋的正确方法",
      "link": "https://baijiahao.baidu.com/s?id=1",
      "source": "天然力美食"
    }
  ]
}
```

### How much does it cost to scrape Baidu AI overviews?

Each prompt is one public Baidu search page. A handful of prompts usually finishes in a few minutes.

When pay-per-event pricing is enabled, a result is charged only when Baidu actually returns an AI overview. A prompt with no overview is saved and is not charged. A failed request is retried and is not saved as an empty overview.

### Tips

- Prefer full questions (`如何煮鸡蛋`) over single keywords when you want a how-to answer.
- Answers are in the language Baidu generates, which is usually Chinese even for English prompts.
- Keep **Maximum prompts** low while you test a new keyword list.
- Turn on a proxy only if a run fails because Baidu showed a security check.
- Schedule one task per topic set when you want a daily Chinese AI-answer watchlist.

### FAQ, disclaimers, and support

**Does every prompt return an AI overview?**\
No. Baidu shows an AI overview when it decides a summary helps. The Actor tries that prompt 2 times, then saves the row with `aiOverviewPresent` set to `false`. Only a blocked or failed request uses the failure retries.

**Do I need a Baidu account?**\
No. The Actor uses the public search page only. It does not log in or ask for cookies.

**Is the AI answer medical, legal, or financial advice?**\
No. Baidu labels these answers as generated summaries. Check the cited `references` and talk to a qualified professional before acting on health, legal, or money topics.

**Is scraping Baidu legal?**\
This Actor collects only the public AI overview shown on Baidu Search without login. You are responsible for complying with applicable laws and Baidu's terms when you use the data.

Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

**Need help?**\
Open the Issues tab on the Actor page. For programmatic runs, use the API tab.

### Image Credit

Image credit: [baidu.com](https://www.baidu.com/)

# Actor input Schema

## `prompts` (type: `array`):

Questions or search prompts, one per line. Informational prompts such as "如何煮鸡蛋" are the most likely to return an AI overview.

## `maxItems` (type: `integer`):

Maximum number of prompts to look up in this run.

## `proxyConfiguration` (type: `object`):

Proxy settings. The Actor works without a proxy. Enable Apify Proxy if Baidu shows a security check.

## Actor input object example

```json
{
  "prompts": [
    "如何煮鸡蛋",
    "周杰伦",
    "苹果和橙子的区别"
  ],
  "maxItems": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompts": [
        "如何煮鸡蛋",
        "周杰伦",
        "苹果和橙子的区别"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/baidu-ai-overview-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "prompts": [
        "如何煮鸡蛋",
        "周杰伦",
        "苹果和橙子的区别",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/baidu-ai-overview-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompts": [
    "如何煮鸡蛋",
    "周杰伦",
    "苹果和橙子的区别"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call lexis-solutions/baidu-ai-overview-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/baidu-ai-overview-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VIQiivYkCrjWgcPvG/builds/1HRtNz5nNHHJK2aid/openapi.json
