Calling API from browser and include the username and password in the url

I have a white listed method which i can use from the browser using
http://localhost:8001/api/method/myapp.api.test

but this only works while i have a logged in session

but it fails when i am not logged in

i tried to include username and password in the url like:
http://localhost:8001/api/method/myapp.api.test?username=xxxx&password=yyyyy

but always failed

my question is how to include the username and password or api key and secret in the URL

thanks for your support

Hi there,

Authentication is explained in the documentation:

https://frappeframework.com/docs/v13/user/en/guides/integration/rest_api/simple_authentication
https://frappeframework.com/docs/v13/user/en/guides/integration/rest_api/token_based_authentication