G2D also expose public APIs for getting google drive direct link. Factually generating google drive direct link is just a munipulation of url. We have created APIs if you are feeling lazy. G2D exposes an end points, which respond with JSON i.e. api/directlink.
For single link conversion call the API with GET request method. For example:
In case if you want to convert multiple links at once you can call api with POST request method. For example: