Is there an online chess evaluation engine with a REST API? I'd like to be able to send a game or position (with castling ability presumably) to a simple REST API and get back the positional evaluation from a reasonably strong engine.

  • I don't think so.
    – SmallChess
    Mar 20, 2016 at 8:07
  • 1
    I think a very simple purpose would be to allow developers to use it to create apps. On the other hand the API provider can use the requests for deep learning networks. Win-Win. Mar 20, 2016 at 17:57
  • 3
    It is part of an evil plan to create the world's strongest chess player Mar 20, 2016 at 18:18
  • 1
    @PeterCotton There's no free lunch. You can't expect anyone giving you anything like that. Please learn how to code a proper engine for the web.
    – SmallChess
    Mar 20, 2016 at 23:58
  • 1
    Nobody expects the inquisition. analysis.cpuchess.com is pretty close, but no API Mar 21, 2016 at 0:29

2 Answers 2


The project https://github.com/noobpwnftw/chessdb provides an API for getting engine evaluations including also the PV, with the FEN of a position as input.

E.g., try an example from the readme:


The response I got is:

  • 1
    It is essentially functioning as an opening book api and not able to evaluate unknown positions on-the-fly. e.g. chessdb.cn/cdb.php?action=querypv&board=8/7K/P2P4/1b1k3p/…
    – prusswan
    Jul 6, 2019 at 17:44
  • That's what I infer too. Funny comment at bottom "Expect no further documentation except this one but the code should be self-explanatory", even though there isn't a single line explaining what it is :) Oct 22, 2021 at 2:32
  • Interesting find. I awarded the bounty although this question remains open. I'm rather surprised that in 2021 the world doesn't have a chess position evaluation API ! Oct 25, 2021 at 13:06
  • On the contrary, I would rather be surprised if there existed one. Who would provide such an API and all the necessary computational resources and why?
    – Hauptideal
    Jul 18 at 22:48

It is pointless to have a rest API for random position evals which have to be precomputed for near-instant response. In that case you might as well ask for an opening book. There are a few sites that with opening book querying tools, which are pretty close.

  • 2
    Why do you say that? You can squeeze plenty into a reasonable REST API timeout. Oct 17, 2021 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.