Getting the latest Gradle wrapper via API

Hey, is it possible to get or generate the latest Gradle wrapper scripts via an API, without having access to a running Gradle instance? Ideally, I’d like to be able to call an API to get a zip of file likes gradlew, gradlew.bat, and so on.