100 free credits. No credit card required. Get a key

Baidu API (beta)

Read public Baidu data in one call: web search results with titles, URLs, snippets and card types. Responses come in Baidu’s own card fields (mu, tpl) over its mobile results page, over REST or MCP.

Endpoints
1
From
1 credit · $0.01
Failed calls
Refunded
Access
REST · MCP · SDK

Baidu search API

Endpoint details →
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/baidu/search?query=%E5%92%96%E5%95%A1",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"query": "咖啡",
"page": 1,
"results": [
{
"position": 1,
"title": "咖啡- 百度百科",
"url": "https://baike.baidu.com/item/%E5%92%96%E5%95%A1/29518",
"snippet": "",
"tpl": "sg_kg_entity_san"
},
{
"position": 2,
"title": "咖啡的起源与品种",
"url": "https://ikan.baidu.com/pedia/",
"snippet": "",
"tpl": "new_baikan_index"
},
"… 7 more"
]
}

All Baidu endpoints

Credits per call · refunded on failure · Code tutorials

What people build with it

Local intelligence

Places, ratings and reviews from Google Maps.

News monitoring

Fresh headlines for a topic, with sources.

Web pages for AI

Any public page as clean Markdown for agents and RAG.

Pricing

Pay per call with credit packs that never expire, or keyless per call. No subscription. 100 free credits to start.

All packs →
ProviderPer 1,000Unit
Groundsocial$1.00 → $0.40standard calls; $0.01 per call keyless
SerpApi$25.00 → $1.96searchs

Other providers’ prices from their public pages, in their own currency. A credit buys a different amount on each.

Baidu API questions

Do I need a Baidu account or API key?

No. Every call reads what Baidu shows a logged-out visitor. You only need a Groundsocial API key, or none at all with pay-per-call.

How much does the Baidu API cost?

From 1 credit per call. Credits cost $1.00 to $0.40 per 1,000 depending on the pack, or $0.01 per call keyless. Failed calls are refunded. You start with 100 free credits.

What format is the data in?

Responses come in Baidu’s own card fields (mu, tpl) over its mobile results page, not a lossy cross-platform schema, so field names match what Baidu itself uses.

Can an AI agent use it?

Yes. Every Baidu endpoint is an MCP tool (baidu_search_all, …), and agents can sign themselves up with POST /v1/agent/signup.

Is it official?

No. Groundsocial is an independent API for public data. Baidu is a trademark of Baidu, Inc. We are not affiliated with or endorsed by Baidu.

All platforms →

Baidu is a trademark of Baidu, Inc. We are not affiliated with or endorsed by Baidu.