Get user profiles, submissions, and problems on LeetCode.
- Get Public User Profile.
- Get User's Recent Submissions. (Public, Max: 20)
- Get All Problem List.
- Get Problem Detail.
- Get All Submissions of The Authenticated User.
Includes recent submissions and posts.
import { LeetCode } from "leetcode-query";
const leetcode = new LeetCode();
const user = await leetcode.get_user("username");
import { LeetCode, Credential } from "leetcode-query";
const credential = new Credential();
await credential.init("YOUR-LEETCODE-SESSION-COOKIE");
const leetcode = new LeetCode(credential);
console.log((await leetcode.get_submissions(100, 0)));
Documentation for this package is available on https://jacoblincool.github.io/LeetCode-Query/.
- NPM Package: https://www.npmjs.com/package/leetcode-query
- GitHub Repository: https://github.com/JacobLinCool/LeetCode-Query/