# Chess Move Validator API

> Chess Move Validator verifies algebraic chess notation and identifies move types including castling, captures, checks, and promotions.

**Endpoint:** `GET https://api.apiverve.com/v1/chessmovevalidator`  
**Category:** Entertainment  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/chessmovevalidator

## Overview

Accepts standard algebraic notation and long algebraic notation, including castling (O-O, O-O-O), pawn moves, piece moves, captures, checks, checkmates and promotions. Move numbers and annotation glyphs from PGN exports are stripped first, and a rejected move comes back with a reason.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/chessmovevalidator?move=Nf3" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `move` | string | Yes | Chess move in SAN (Nf3, exd5, O-O, e8=Q) or long algebraic (Ng1-f3, e2-e4); move numbers and !? annotations are ignored |

## Response fields

- `move` — string · The validated chess move in algebraic notation format
- `valid` — boolean · Whether the move follows proper algebraic notation rules
- `type` — string · Classification of move type such as piece move or castling · (premium)
- `piece` — string · The chess piece that moved in single letter notation · (premium)
- `capture` — boolean · Indicates whether the move captures an opponent piece · (premium)
- `check` — boolean · Indicates whether the move puts opponent king in check · (premium)
- `checkmate` — boolean · Indicates whether the move results in checkmate condition · (premium)
- `promotion` — boolean · Indicates whether the move involves pawn promotion · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "move": "Nf3",
    "valid": true,
    "type": "piece move",
    "piece": "N",
    "capture": false,
    "check": false,
    "checkmate": false,
    "promotion": false
  }
}
```

## Use cases

- **Chess Applications** — Validate user input in chess applications and games
- **Move Recording** — Verify chess move notation for game recording and analysis systems
- **Notation Parsing** — Parse and validate algebraic chess notation for chess engines
- **Game Analysis** — Analyze chess notation in game databases and training applications

## SDKs

- **npm** — `npm install @apiverve/chessmovevalidator` (https://www.npmjs.com/package/@apiverve/chessmovevalidator)
- **PyPI** — `pip install apiverve-chessmovevalidator` (https://pypi.org/project/apiverve-chessmovevalidator/)
- **NuGet** — `dotnet add package APIVerve.API.ChessMoveValidator` (https://www.nuget.org/packages/APIVerve.API.ChessMoveValidator)
- **Source** — https://github.com/apiverve/chessmovevalidator-api

## More

- Full reference: https://docs.apiverve.com/ref/chessmovevalidator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
