# Baidu Images Scraper (`searchapi/baidu-images-scraper`) Actor

Search Baidu Images and extract normalized image URLs, source pages, dimensions, formats, and listing metadata with API pagination and DOM fallback.

- **URL**: https://apify.com/searchapi/baidu-images-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 search results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Baidu Images Scraper

### What is this tool?

Baidu Images Scraper helps you collect images data from Baidu (China's #1 search engine). Just type in what you're looking for, and the tool will gather images with their full-size URLs, thumbnails, dimensions, file formats, and the websites where they were published.

### What can you use it for?

- Find images on any topic
- Visual research and design inspiration
- Build image collections for content, reports, or presentations
- Track visual trends

### What data do you get?

Each result includes up to **23 fields**, organized into the following categories:

**Identity** (2 fields): Position, Page

**URLs** (5 fields): Image URL, Thumbnail URL, Source Page URL, Source Domain, Creator URL

**Text** (2 fields): Title, Alt Text

**Image Details** (8 fields): Width, Height, Aspect Ratio, File Format, File Size (bytes), Animated, Dominant Color, Adult

**Location** (1 fields): Country

**Source** (1 fields): Creator

**Search Context** (2 fields): Query, Language

**Other** (2 fields): License, Scraped At

### How to use it

#### Step 1: Enter your search

Type in your search term, like "小猫".

#### Step 2: Set your preferences

Adjust the options below to customize your search.

#### Step 3: Run the tool

Click the run button and wait for your results. The tool will gather all the data and save it in a clean, organized format.

### Input options

| Option | What it means | Required | Default |
|--------|---------------|----------|---------|
| **Search Query** | Image search query (Chinese queries recommended) | Yes | 小猫 |
| **Start URLs (optional)** | Pre-built Baidu image search URLs. Takes precedence over 'query'. | No | — |
| **Max Items** | Max images to scrape | No | 100 |
| **Category** | Filter by category. Common: 全部, 简笔画, 卡通, 写实, 漫画, 风景, 人物, 美食, 静物, 手抄报 | No | 全部 |
| **Color** | Filter by dominant color. Common: 全部, 黑白, 红色, 橙色, 黄色, 绿色, 蓝色, 紫色, 粉色, 棕色 | No | 全部 |
| **Market (locale tag)** | Locale tag (e.g. zh-CN) | No | zh-CN |

### Output

Your results come in a clean, organized table with **two views**:

#### Overview view

Shows the most important fields at a glance:

- **Position**
- **Title**
- **Image URL**
- **Thumbnail URL**
- **Width**
- **Height**
- **Source Page URL**
- **Source Domain**
- **Creator**
- **License**
- **Page**
- **Query**
- **Scraped At**

#### Full details view

Shows all 23 fields in detail. See "What data do you get?" above for the complete list.

### Tips for best results

✅ **Use Chinese keywords** for the best results since Baidu is a Chinese search engine

✅ **Be specific** with your search terms for more relevant results

✅ **Try different variations** of your search term to discover more results

✅ **Browse multiple pages** of results to get a wider variety

### Frequently asked questions

**Why use Baidu?**
Baidu is the most popular search engine in China. It returns results that other search engines (like Google) may not have, especially for Chinese-language content and the Chinese market.

**How do I get the results?**
Your results are saved in your Apify dashboard. You can download them in various formats (JSON, CSV, Excel) or access them via the API.

**Can I run it on a schedule?**
Yes! Apify supports scheduled runs. You can set up the tool to run automatically at any interval (hourly, daily, weekly, etc.) from your dashboard.

**What if I get fewer results than I asked for?**
This can happen if the search engine doesn't have enough matching results for your search, or if some results are blocked. Try different keywords or relax your filters.

**Need more help?**
If you have questions or run into issues, our support team is ready to help. Just reach out through the Apify platform and we'll get back to you quickly.

# Actor input Schema

## `query` (type: `string`):

Image search query (Chinese queries recommended)

## `startUrls` (type: `array`):

Pre-built Baidu image search URLs. Takes precedence over 'query'.

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

Maximum number of images to scrape

## `category` (type: `string`):

Filter by category. Common: 全部, 简笔画, 卡通, 写实, 漫画, 风景, 人物, 美食, 静物, 手抄报

## `color` (type: `string`):

Filter by dominant color. Common: 全部, 黑白, 红色, 橙色, 黄色, 绿色, 蓝色, 紫色, 粉色, 棕色

## `market` (type: `string`):

Locale tag for the search (e.g. zh-CN)

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

Proxy configuration for the scraper

## Actor input object example

```json
{
  "query": "小猫",
  "startUrls": [],
  "maxItems": 100,
  "category": "全部",
  "color": "全部",
  "market": "zh-CN",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "query": "小猫",
    "startUrls": [],
    "maxItems": 100,
    "category": "全部",
    "color": "全部",
    "market": "zh-CN",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/baidu-images-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 = {
    "query": "小猫",
    "startUrls": [],
    "maxItems": 100,
    "category": "全部",
    "color": "全部",
    "market": "zh-CN",
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "query": "小猫",
  "startUrls": [],
  "maxItems": 100,
  "category": "全部",
  "color": "全部",
  "market": "zh-CN",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call searchapi/baidu-images-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=searchapi/baidu-images-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5bTyg9xHuB9bq95nA/builds/HRIIj5z81aiE11MCP/openapi.json
