Skip to main content

wikipedia

Search and retrieve Wikipedia articles via the free API. Use when this capability is needed.

跳到安装

来源信息

仓库
tomevault-io/skills-registry
最近来源活动
2026年4月28日 22:53
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
wikipedia
description
Search and retrieve Wikipedia articles via the free API. Use when this capability is needed.
metadata
{"author":"aidiss"}
# Wikipedia Query Wikipedia's free API for summaries, full articles, and search. ## Quick Summary Get a brief summary of any topic: ```bash curl -s "https://en.wikipedia.org/api/rest_v1/page/summary/Python_(programming_language)" | jq '{title, extract}' ``` ## Search Articles Find articles matching a query: ```bash curl -s "https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=artificial+intelligence&format=json" | jq '.query.search[] | {title, snippet}' ``` ## Full Article Content Get full article as HTML: ```bash curl -s "https://en.wikipedia.org/api/rest_v1/page/html/Linux" | head -100 ``` Get as mobile-friendly HTML: ```bash curl -s "https://en.wikipedia.org/api/rest_v1/page/mobile-html/Linux" ``` ## Random Article ```bash curl -s "https://en.wikipedia.org/api/rest_v1/page/random/summary" | jq '{title, extract}' ``` ## Article Sections Get table of contents: ```bash curl -s "https://en.wikipedia.org/api/rest_v1/page/mobile-sections/Python_(programming_language)" | jq '.lead.sections[] | {id, line}' ``` ## Other Languages Replace `en.wikipedia.org` with language code: ```bash # French curl -s "https://fr.wikipedia.org/api/rest_v1/page/summary/Paris" | jq '{title, extract}' # German curl -s "https://de.wikipedia.org/api/rest_v1/page/summary/Berlin" | jq '{title, extract}' # Japanese curl -s "https://ja.wikipedia.org/api/rest_v1/page/summary/東京" | jq '{title, extract}' ``` ## Related Pages Get pages that link to an article: ```bash curl -s "https://en.wikipedia.org/w/api.php?action=query&titles=Python_(programming_language)&prop=links&pllimit=20&format=json" | jq '.query.pages[].links[].title' ``` ## Tips - URL-encode spaces as `_` or `%20` - Article titles are case-sensitive (first letter capitalized) - No API key required - Rate limit: be reasonable (no explicit limit for read operations) --- > Converted and distributed by [TomeVault](https://tomevault.io/claim/aidiss) — claim your Tome and manage your conversions. <!-- tomevault:4.0:skill_md:2026-04-16 -->
在 GitHub 查看