Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 751 Bytes

File metadata and controls

20 lines (12 loc) · 751 Bytes

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!