The API to get user profiles, submissions, and problems on LeetCode, with highly customizable GraphQL API and Rate Limiter.
Includes recent submissions and posts.
Check test example
import { LeetCode } from "leetcode-query";
const leetcode = new LeetCode();
const user = await leetcode.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.submissions(100, 0)));