You can log your browser's traffic to see the actual GET or POST requests. Use Fiddler or something like that. And then you'll be able to reuse them with http client.
is it possible, but I would say it is extremely difficult, each site will have a unique set of parameters you will need to manually fill, youtube I would guess is very complex
If the API is the same, then you shouldn't need to change anything except the API URL and of course, make sure that you have the appropriate funds. Make sure to read and compare the API functions, together with the response that you are receiving. What is the exact issue that you are encountering when trying to integrate it into your script?