VOOZH about

URL: https://apify.com/taneja/leetcode-api-scraper

โ‡ฑ Leetcode API ยท Apify


Pricing

from $0.02 / 1,000 results

Go to Apify Store

Scrape LeetCode user profiles, problems, contests, and discussions. Get user stats, solved problems, contest ratings, submission history, activity heatmaps, daily challenges, and more - all without authentication.

Pricing

from $0.02 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Raghav Taneja

Raghav Taneja

Maintained by Community

Actor stats

0

Bookmarked

41

Total users

7

Monthly active users

7 months ago

Last modified

Share

LeetCode API Scraper

Scrape LeetCode user profiles, problems, contests, and discussions data without authentication.

Features

  • User Data: Profiles, badges, solved problems, contest rankings, submission history, activity heatmaps
  • Problem Data: Daily challenges, specific problems, problem lists with filters, official solutions
  • Contest Data: All contests, upcoming contests, contest details, leaderboards
  • Discussion Data: Trending discussions, topic details, comments

Input

FieldTypeDescription
operationStringRequired. The type of data to fetch
usernameStringLeetCode username (for user operations)
titleSlugStringProblem/contest slug (e.g., "two-sum")
limitIntegerNumber of items to fetch (default: 20)
skipIntegerItems to skip for pagination
yearIntegerYear for calendar/heatmap data
difficultyStringFilter: EASY, MEDIUM, HARD
tagsStringComma-separated topic tags
topicIdIntegerDiscussion topic ID
pageIntegerPage number for rankings

Operations

User Operations

  • userProfile - Basic user profile
  • userSummary - Complete user data in one call (recommended)
  • userBadges - User badges
  • userSolved - Solved problems with percentages
  • userContest - Contest rating and stats
  • userContestHistory - Contest participation history
  • userSubmissions - Recent submissions (max 20)
  • userAcSubmissions - Recent accepted submissions (max 20)
  • userCalendar - Submission calendar
  • userHeatmap - Activity heatmap (year/month/day breakdown)
  • userSkillStats - Skill tags by category
  • userLanguageStats - Programming language stats

Problem Operations

  • dailyProblem - Today's daily challenge
  • selectProblem - Get specific problem by titleSlug
  • problemList - List problems with filters
  • officialSolution - Get official solution for a problem

Contest Operations

  • allContests - All LeetCode contests
  • upcomingContests - Upcoming contests with countdown
  • contestDetail - Specific contest details
  • contestRanking - Contest leaderboard

Discussion Operations

  • trendingDiscussions - Trending discussion topics
  • discussTopic - Get discussion topic details
  • discussComments - Get discussion comments

Example Usage

Get User Summary

{
"operation":"userSummary",
"username":"uwi"
}

Get Daily Problem

{
"operation":"dailyProblem"
}

Get Problem List with Filters

{
"operation":"problemList",
"difficulty":"MEDIUM",
"tags":"array,dynamic-programming",
"limit":50
}

Get Contest Ranking

{
"operation":"contestRanking",
"titleSlug":"weekly-contest-350",
"page":1
}

Output

Results are saved to the default dataset with this structure:

{
"operation":"userSummary",
"success":true,
"data":{/* LeetCode data */},
"timestamp":"2024-01-15T10:30:00.000Z"
}

Limitations

  • Submission limit: LeetCode's public API limits userSubmissions and userAcSubmissions to 20 items. Use userSummary for aggregate stats.
  • Rate limiting: Implemented to avoid overloading LeetCode's servers
  • Premium content: Some content may require LeetCode Premium subscription

Notes

  • Problem content is cleaned and formatted from HTML to readable text
  • HTML entities (\u003C, <, etc.) are properly decoded
  • Solutions include video and code playground links
  • Heatmaps include daily submission counts organized by year/month/day

Cost

This Actor uses minimal compute resources as it only makes HTTP requests to LeetCode's GraphQL API.

Support

For issues and feature requests, please open an issue in the repository.

You might also like

LeetCode Interview Questions Scraper

harvest/leetcode-interview-questions-scraper

Extract interview experiences and questions related to a specific company from LeetCode. This tool helps job seekers analyze common interview trends, question types, and candidate experiences.

86

Daily Job Pulse - Multi Source Job Opportunity Aggregator

lenient_grove/Daily-Job-Pulse-Multi-Source-Job-Opportunity-Aggregator

Daily Job Pulse scans 25+ job platforms (LinkedIn, Naukri, Indeed, Glassdoor, RemoteOK & more) daily and aggregates fresh job opportunities with direct apply links. Features an interactive dashboard with search & filters. recruiters & automation. Supports India & worldwide platforms. ๐Ÿš€

286

Remote Jobs Aggregator - API-Based Multi-Platform Job Scraper

benthepythondev/remote-jobs-aggregator

Aggregate remote job postings from 4 free public APIs: Arbeitnow, Jobicy, Himalayas, and RemoteOK. Extract job titles, companies, salaries, locations, and descriptions. Legal, stable, and fast API-based data collection.

Ambitionbox Salary Scraper

getdataforme/ambitionbox-salary-scraper

Extract salary insights from AmbitionBox for targeted companies. This Apify Actor provides reliable, structured JSON data on compensation trends, using residential proxies for undetected scraping....

21

Glassdoor Scraper

parseforge/glassdoor-scraper

Scrape Glassdoor company data: employee reviews with ratings and pros/cons, salary estimates by job title, interview experiences, job listings with pay ranges, office locations, benefits, culture ratings, and company overviews. Supports all 18 international domains. No login required.

AmbitionBox Reviews & Salaries Scraper India

thirdwatch/ambitionbox-scraper

Scrape company reviews, salary data, and ratings from AmbitionBox.com. Get avg CTC, salary ranges, pros/cons, reviewer details for any Indian company. Covers TCS, Infosys, Wipro, and 100K+ companies.

๐Ÿ”ฅ Glassdoor Scraper

silentflow/glassdoor-scraper-ppe

Extract Glassdoor reviews, salaries, interviews, benefits, and company overviews from any URL. Pay per result only, residential proxies included, 23 country domains supported. Perfect for HR research, employer branding, salary benchmarking, and competitive analysis.

Ambitionbox Reviews Scraper

getdataforme/ambitionbox-reviews-scraper

Extract authentic employee reviews from Ambitionbox.com with this Apify Actor. Gain deep insights into company cultures, salaries, and work experiences through automated, scalable scraping....

56

GLASSDOOR: Reviews &Jobs &Interviews&Locations &Salary&Overview

memo23/apify-glassdoor-reviews-scraper

Glassdoor scraper that bypasses the 200-result review cap for full coverage. Reviews with sub-ratings, pros/cons & employer replies, plus job postings, interview questions, salary bands, benefits, company overviews & locations. Pay-per-result (PPE), pure HTTP โ€” no browser.

๐Ÿ‘ User avatar

Muhamed Didovic

884

4.5