Lichess API documentation and examples
GNU Affero General Public License v3.0
417
stars
140
forks
source link
`/api/player/autocomplete` Autocomplete endpoint with `?object=true` is returning a non-documented key #231
Closed
alexrintt closed 1 year ago
Source: https://lichess.org/api#tag/Users/operation/apiPlayerAutocomplete.
When hitting the endpoint
/api/player/autocomplete
withobject=false
the server response is a simple array of string, as documented:cURL:
But when hitting this same endpoint with
object=true
the server response is following the schema:This is not what the documentation says:
The sample schema also does not include this "results" key:
cURL:
I'm pretty new to this API though, maybe I'm missing an important piece of information related to search endpoints.