👑✨

LeetCode API Documentation

Fetch and display your LeetCode profile stats with ease. Retrieve your problems solved and more. Just enter your username and copy the API link.

Usage:

  • Replace <username> with your LeetCode username.
  • Send a GET request to the generated URL.

The JSON Response will look like this:

Usage:

  • Replace <username> with your LeetCode username.
  • Optionally, you can add a background color by appending &bg=<color> to the URL, where color is a valid CSS color (e.g., %231e1e1e (%23 is basically #)).
  • Send a GET request to the generated URL.

The Image Response will look like this:

leetcode Stats

Use this JSON data to showcase your LeetCode stats on your personal website.