Skip to content
Discussion options

You must be logged in to vote

The short answer is no—LeetCode does not provide an official public API or webhook that notifies GitHub when you solve a problem.

The most common approaches are:

  1. LeetHub / LeetHub v2

    • Browser extension.
    • Automatically commits accepted solutions to GitHub.
    • Supports multiple programming languages.
    • No local setup required.
  2. LeetCode Sync

    • Another browser extension with similar functionality.
    • Syncs accepted solutions to a GitHub repository.
  3. Custom Automation

    • Use a browser userscript (Tampermonkey) or browser extension to detect accepted submissions.
    • Use the GitHub REST API to create commits.
    • Authenticate using a GitHub Personal Access Token (PAT).
    • This provides complete control over co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shreyamishra4387-cmyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates API Discussions around GitHub API platform and docs
2 participants