# Gojek API Wrapper

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

- **Type:** Open source
- **Role:** Author
- **Period:** 2017 – 2022
- **Focus:** Backend, Automation
- **Stack:** TypeScript, PHP, OpenAPI 3.0, OpenAPI Generator, GitHub Packages, Reverse engineering
- **View on GitHub:** https://github.com/mychaelgo/gojek
- **Page:** https://mychaelgo.com/projects/gojek-api-wrapper

## 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 Mychael 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

- The README: three APIs, OpenAPI docs and generated SDKs. (https://mychaelgo.com/projects/gojek-api-wrapper/readme.webp): README of the gojek repository listing the GoID, Gojek and GoPay APIs
- Part of the GoPay OpenAPI spec, written from the decompiled app. (https://mychaelgo.com/projects/gojek-api-wrapper/openapi-spec.webp): The GoPay OpenAPI 3.0 YAML spec open on GitHub, showing the KYC status endpoint
