opponents_play
Discover the moves opponents play from any chess position, filtered by your rating and speed (Lichess) or from master games, to target your opening preparation.
Instructions
What gets played from a position: by players at the user's own rating and speed (source='lichess', the default) or by masters (source='masters').
Defaults come from config so the pool matches the user's actual games — blitz around their rating band, not the site-wide average. Cached locally; a repeated query makes no network call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| source | No | lichess |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moves | Yes | Moves played from here, most common first. | |
| source | Yes | 'masters' or 'lichess'. | |
| speeds | Yes | Speed filter applied (lichess source only). | |
| ratings | Yes | Rating band applied (lichess source only). | |
| total_games | Yes | Games reaching this position in the selected pool. 0 means the position is simply rare there — not an error. |