REST API FAQs
How can I access an external REST API with ScriptRunner?
See our example script that demonstrates this.
You can also talk to the Git hub API using this HTTP builder library.
With the above-mentioned HTTP builder library, you may also need to consult the Authentication section depending on the requirements of the ThirdParty API.