RoyaleApi Api requests

Hello !

I would like to create commands using Botrix for my youtube channel. I would like to create a command named !deck that would take as argument the number of trophies or the pseudo. I know how to do that but how can I send a request to your website using the number of trophies or a pseudo to get the deck of player as plain text ?

Have a good day !