pokeapi
pokeapi copied to clipboard
Prefix search suggestions must be included to enhance convenience
If a user doesn't know the complete name of a pokemon, they must be able to view suggestions for their prefix of a word or similar strings. This must be an added feature for the search bar.
Just make a query like this https://pokeapi.co/api/v2/pokemon?limit=10000&offset=0
to get all possible end points available in the api you would get the following format of data
{
"count":1302,
"next":null,
"previous":null,
"results":[
{
"name":"bulbasaur",
"url":"https://pokeapi.co/api/v2/pokemon/1/"
},
...
]
}
You can parse names and id from this