article_path
Find the shortest click-path between two Wikipedia articles. Searches the link graph for the shortest chain of blue links connecting a start and target page, following redirects.
Instructions
Find the shortest click-path between two articles — the six-degrees game. Given two article titles, searches Wikipedia's link graph for the shortest chain of blue links connecting them (e.g. Banana → Africa → Anatolia → Trojan War). Bidirectional and bounded: 1 hop checks a direct link, 2 hops intersects the start's outgoing links with pages linking to the target, 3 hops expands a bounded sample of the start's links. Follows redirects. The discovery companion to links and backlinks. Read-only action API — GET only, no new dependencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Wikipedia language code (default 'en') | en |
| start | Yes | Starting article title (e.g. 'Banana') | |
| target | Yes | Target article title (e.g. 'Trojan War') | |
| max_hops | No | Max path length to search (default 2, max 3) |