Curl Command in Javascript

Hey Thanks for your reply

Is it possible too use the API in the Browser? But how do I authenticate then?
Could you maybe give me an example?
I tryed a lot already but nothing worked for me