ワンクリックで
fetch-wiki-info-api
Fetch structured and descriptive information from Wikidata and Wikipedia via HTTP APIs (no browser, no Playwright)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fetch structured and descriptive information from Wikidata and Wikipedia via HTTP APIs (no browser, no Playwright)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | fetch-wiki-info-api |
| description | Fetch structured and descriptive information from Wikidata and Wikipedia via HTTP APIs (no browser, no Playwright) |
| argument-hint | [search term] [--images] |
| allowed-tools | Bash |
Parallel implementation of fetch-wiki-info that hits Wikidata + Wikipedia public APIs directly instead of going through Playwright. Faster, no Chromium dependency, no 8-parallel cap.
Topic to search for: $ARGUMENTS
Run the bundled Python helper. It is stdlib-only — no pip install.
python3 .claude/skills/fetch-wiki-info-api/fetch_wiki_info.py "$ARGUMENTS"
If the caller wants Wikipedia images + captions (e.g. for the ntr-term-researcher agent's image-xref step), pass --images:
python3 .claude/skills/fetch-wiki-info-api/fetch_wiki_info.py "$ARGUMENTS" --images
For machine-readable output, add --json.
wbsearchentities) — top 5 candidates.Special:EntityData/{Q}.json) for the top hit. Extracts label, description, aliases, P31/P361/P279, and the canonical English Wikipedia title via sitelinks.enwiki.title (avoids redirect guessing)./api/rest_v1/page/summary/{title}) — liberal relevance gate: rejects only disambiguation pages or empty extracts.action=query&prop=extracts&explaintext=1&redirects=1) — full plain-text article body.--images only): /api/rest_v1/page/media-list/{title}, keeping only items whose caption shares a word with the query term.Set a polite User-Agent (already done in the script).
Markdown with the same overall shape as the Playwright skill, plus an optional Wikipedia Full Text section and an optional Wikipedia Images section:
# <term>
## Wikidata (Q#######)
- Label / Description / Aliases / Instance of / Subclass of / Part of / Wikipedia link
## Wikipedia Summary (<title>)
<one-paragraph extract>
## Wikipedia Full Text
<full plain-text article>
## Wikipedia Images (only with --images)
- <file title> — <caption>
- src: <url>
## Notes
- <relevance-gate reasons, if any>
## Sources
- Wikidata: https://www.wikidata.org/wiki/Q#######
- Wikipedia: https://en.wikipedia.org/wiki/<page>
fetch-wiki-info for A/B comparison. Once validated on a real Stage 3 NTR run, the Playwright version (and the 8-parallel cap in bulk_ntr_workflow/CLAUDE.md) can be retired.