API is documented in
https://nzbget.net/api.
For an example in Python see
Logger.py. The Python library xmlrpclib takes care of communication with nzbget.
If you need to communicate using plain http, you need to send post-requests containing XML-RPC or JSON-RPC data as required by these protocols.