Sajantoor / LeetCode-API

Unofficial LeetCode API, wrapping common LeetCode APIs in one place such as submission, getting questions by category, etc.
3 stars 0 forks source link

Unofficial LeetCode API

Wraps common LeetCode APIs in one place such as submitting, get questions by category, difficulty, etc.

Usage

Host: https://leetcode-361923.wl.r.appspot.com/

Certain APIs require X-CSRF-Token and Session headers for authentication.

Login to your LeetCode account and copy the data from the cookie. For Chrome go to chrome://settings/cookies/detail?site=leetcode.com and use the X-CSRF-Token and LEETCODE_SESSION values for these headers, respectively. These tokens remain valid for ~1 week.

Contributing

Pull requests for new APIs and features are welcome!