STOCKFISH 14–19Latest release: 19Explore engines ↗

Documentation / Guides

Annotate PGNs in CI

Before your first request, sign in with Google, create a key for 100 free requests with a verified email, then add a card. Start with 100 free requests with a verified email, then add a card for 2,000 units/day and automatic overage billing. The trial is shared across your account, never resets, and is never charged. All prices are in USD.

a GitHub Action that evaluates every game in a repo

Workflow

name: analyze games
on: [push]
jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: |
          for f in games/*.pgn; do
            curl -s https://stockfishapi.com/v1/analyze \
              -H "Authorization: Bearer ${{ secrets.STOCKFISH_API_KEY }}" \
              -H "Content-Type: application/json" \
              -d "$(jq -n --rawfile pgn "$f" '{pgn:$pgn, depth:18}')" > "${f%.pgn}.json"
          done
      - uses: actions/upload-artifact@v4
        with: { name: analysis, path: games/*.json }

/analyze returns a job id (202) once the async pipeline ships; until then loop over positions with /eval. Price a game first: GET /v1/price?endpoint=analyze&depth=18&plies=80.

Sign in to create a key. Free plan, depth 14, 2,000 units a day.