Wraps common LeetCode APIs in one place such as submitting, get questions by category, difficulty, etc.
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.
Pull requests for new APIs and features are welcome!