Leetcode Public APIs

Leetcode Public APIs
  • I have been searching for public APIs of leetcode for a personal project. But sadly couldn't find one that offered multiple endpoints.

  • As a matter of fact, I found only a single service that offered only one endpoint.

  • So, I created my own service using NodeJS & ExpressJS and deployed it on @render , @cyclic_sh & @railway

  • Deployed it on 2 separate service providers to balance the incoming requests in case a specific endpoint is taking a lot of time.

  • Check out the source code and feel free to use these API's in your projects. I open-sourced it so you guys can contribute to it.

  • Leetcode uses GraphQL to request user data from their servers. So I wanted to create this service which I wanted to use in a personal project.

  • Go and hit some endpoints https://rapidapi.com/bharathkalyans/api/leetcode-api 😤.


See you in the next blog 🫡, don't forget to follow me on @github, @twitter