HTTP API
Lidraughts exposes a RESTish HTTP/JSON API that you are welcome to use. Read the HTTP API documentation.
Embed Lidraughts TV in your site
Add the following HTML to your site:
Parameters:
- theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, brown, brown2, leather, match, ic, green, marble, grey, metal, olive, purple
- bg: light, dark
Embed the daily puzzle in your site
Add the following HTML to your site:
Parameters:
- theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, brown, brown2, leather, match, ic, green, marble, grey, metal, olive, purple
- bg: light, dark
The text is automatically translated to your visitor's language.
Embed a draughts analysis in your site
Create a study, then click the share button to get the HTML code for the current chapter.
Parameters:
- theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, brown, brown2, leather, match, ic, green, marble, grey, metal, olive, purple
- bg: light, dark
The text is automatically translated to your visitor's language.
Embed an interactive lesson in your site
Create a study with a chapter of type "Interactive lesson", then click the share button to get the HTML code for that chapter.
Parameters:
- theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, brown, brown2, leather, match, ic, green, marble, grey, metal, olive, purple
- bg: light, dark
The text is automatically translated to your visitor's language.
Embed a draughts game in your site
On a game analysis page, click the "FEN & PDN" tab at the bottom, then "Embed in your website".
Parameters:
- theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, brown, brown2, leather, match, ic, green, marble, grey, metal, olive, purple
- bg: light, dark
The text is automatically translated to your visitor's language.