baidu-baike-data
⚠Review·Scanned 2/18/2026
This skill queries Baidu Baike and returns structured encyclopedia entries for a given noun. It reads the BAIDU_API_KEY, makes network calls to https://appbuilder.baidu.com/v2/baike, and includes examples that run python3 scripts/baidu_baike.py.
from clawhub.ai·v8b69db6·6.5 KB·0 installs
Scanned from 1.0.2 at 8b69db6 · Transparency log ↗
$ vett add clawhub.ai/ide-rea/baidu-baike-dataReview findings below
Baidu Baike Skill
Query Baidu Baike encyclopedia entries from OpenClaw.
Purpose
This skill enables two main scenarios:
- Direct search by keyword - Get the default matching entry for a term
- Homonym resolution - When multiple entries share the same name, list them and let user select specific one
Quick Start
export BAIDU_API_KEY="your_api_key"
# Scenario 1: Direct search
python3 scripts/baidu_baike.py --search_type=lemmaTitle --search_key="Andy Lau"
# Scenario 2: List homonyms
python3 scripts/baidu_baike.py --search_type=lemmaList --search_key="Liu Dehua" --top_k=5
# Then query specific entry by ID
python3 scripts/baidu_baike.py --search_type=lemmaId --search_key="114923"
API
LemmaList: List entries with same title (for homonym resolution)LemmaContent: Get detailed entry content by title or ID
Workflow for OpenClaw Agent
- Extract noun from user query
- If term likely has homonyms (common names, ambiguous terms), call
LemmaListfirst - Show user the list with IDs and descriptions
- User selects entry ID (or agent uses default entry)
- Call
LemmaContentwith selected ID - Return structured entry data to user
Response Format
Returns JSON with:
lemma_id: Entry IDlemma_title: Entry titlelemma_desc: Short descriptionurl: Baike page URLabstract_plain: Plain text summarycard: Information cards (attributes)albums: Image albumspic_url: Main image URL