The previous answers are technically correct; if you use HTTPS, these URLs and querystring will be encrypted before transmission and can be considered secure.
However, the fact that the API asks for a username and password as request parameters may indicate a somewhat weak approach to security.
For example, many web servers will log default querystring request parameters, which means that your plain text credentials may be located somewhere on disk (and many companies will store or back up web server logs in unreliable ways).
In short: passing credentials as query parameters is not a security risk per se , but it is usually bad practice and can be a symptom of big security problems.
source share