To get names you need to change the endpoints to https://names-api2.p.rapidapi.com/names/{your_name} to return 10 a like name that you enter.
To get single name you need to change the endpoints to https://names-api2.p.rapidapi.com/single_name/{you_name} and it return to single data.
Take note some of the names is not yet available but soon it will add more names with meanings, origin, and more.