#How to use Export one game
27 messages · Page 1 of 1 (latest)
do you need the pgn?
you need the content-type header
can you explain more detailed?
then attach this to axios.get
yeah I guess, I don't know axios
just tell me what to type at content-type header
axios.get('https://lichess.org/game/export/KtaviVSl', {
headers: {
'Accept': 'application/json'
}
})
still same response
I try post method and still same response :(
axios.post('https://lichess.org/game/export/xVLVFwRiCisP', {}, { headers: { 'Content-Type': 'application/json' } })
remove the last 4 characters
the game id should be 8 chars without the the 4 character fingerprints
oh really thanks a lot
where did you get that information
i read lichess api guide and didnt notice
I just ran two queries and saw the responses
curl -H 'Accept: application/json' https://lichess.org/game/export/xVLVFwRiCisP
curl -H 'Accept: application/json' https://lichess.org/game/export/xVLVFwRi