LeetCode Public API
An unofficial public API for LeetCode with full type support!
![LeetCode Public API](https://github.com/husain3012/leetcode-public-api/assets/49821470/3b30b00f-e39f-4dea-9aea-0e71557ff669)
📝 Table of Contents
🧐 About
I small package written in typescript to fetch public stats of a LeetCode profile. This API makes call to leetcode.com
so abusing it might lead to rate limiting your IP.
🏁 Getting Started
Installing
Usage
-
Import
import {getLCAccount} from "leetcode-public-api"
-
Use
const leetCodeAccount = await getLCAccount('username')
Functions
fetchAccount = (username:string) => Promise<status:number, statusText:string, data:string|null>
parseAccount = (profile_html:string) => ILeetCodeUser