Mychael Go

Gojek API Wrapper

An unofficial, documented API and SDKs for Gojek and GoPay, found by reverse-engineering the Android app.

The problem

Gojek and GoPay have no public API, so there was no way to pull your own ride, food or payment history into other tools.

What I did

  • Decompiled the Android APK to find the endpoints, then documented three APIs (GoID authentication, Gojek core services and GoPay) as OpenAPI 3.0 specs.
  • Generated SDKs from those specs with OpenAPI Generator and published Node.js packages to GitHub Packages, with PHP and Go clients alongside.
  • Used it as a building block of my personal finance automation.

Impact

  • 73 stars and 19 forks on GitHub, with contributions from other developers.

Screenshots

README of the gojek repository listing the GoID, Gojek and GoPay APIs
The README: three APIs, OpenAPI docs and generated SDKs.
The GoPay OpenAPI 3.0 YAML spec open on GitHub, showing the KYC status endpoint
Part of the GoPay OpenAPI spec, written from the decompiled app.

Reading this with an AI tool? Get this page as Markdown.