Use strapi function in the plugin

Hi! Is it possible to use docker function from this tutorial inside Strapi plugin - Fetching external data | Strapi Developer Documentation ?

I want to encapsulate API-request (from external source) on backend side and use in on frontend side of my plugin.