LeetCode Scraper for Problems, Acceptance Rates and Contests

A LeetCode scraper that reads the public problem library: number, difficulty, topics, acceptance rate and accepted counts, with every run dated so the counters become a trend.

Plans from €169 a month · Free project assessment · Reply within 1 business day

API · JSON feed · CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

leetcode.com
LeetCode Scraper for Problems, Acceptance Rates and Contests
leetcode.comwhat you get
Typical fields for education sites
course_titleproviderpricedurationstart_daterating
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

LeetCode scraping as a managed service

  1. You send

    LeetCode pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

Start with the slice you need. We can scrape LeetCode questions for the whole open library, one track such as Database or pandas, a topic, a study plan, or the contests of a chosen period. We write the extraction plan around problem numbers and slugs, and you can order a sample before the full run.

LeetCode draws its pages in the browser and answers unfamiliar traffic with a challenge, so rendering, proxy rotation, pacing and CAPTCHA handling belong to our side of the work. Statements keep their structure: examples, constraints and follow-up questions arrive in separate columns, with code blocks and superscripts intact, instead of one flattened paragraph. Runs can be one-off, weekly after each contest, or on demand, and we repair the crawler when the problem layout changes.

What a LeetCode question scraper returns for each problem

Every row starts from the problem page, keyed by problem number and by the slug in its address. The same slug connects the problem to contests, study plans and discussions.

  • Problemnumber, title, slug, URL, track, difficulty (Easy, Medium or Hard) and topics.
  • Statementdescription text, examples with input, output and explanation, constraints, follow-up, figures. Database questions add the table definitions with column names and types, offered as SQL Schema or Pandas Schema.
  • Countersaccepted submissions, total submissions, acceptance rate, likes and the number of comments.
  • Helphints in their order and similar questions with their own difficulty.
  • Code stubthe starter code offered in the editor and the sample cases preloaded below it.
  • Community solutionspost title, date, language and approach tags, upvotes, views and comments, with author handles removed.
  • Run stampcollection date and time, so two snapshots of one problem can be subtracted.

Problems reserved for Premium come with what their library row shows: number, title, difficulty and acceptance rate. The acceptance rate printed by LeetCode is rounded. Because the accepted and submitted totals sit beside it, we carry all three and note where a total is abbreviated, such as a figure in millions. That makes the LeetCode data usable for ranking problems as well as for reading them.

What a LeetCode question scraper returns for each problem
Beyond the problem page: contests, study plans and LeetCode Discuss

Beyond the problem page: contests, study plans and LeetCode Discuss

Contests. The contest section announces the next Weekly Contest and Biweekly Contest with a start time and keeps the past ones page by page. A contest record holds its name, date and problem list with the points for each question; the ranking page adds the participant counter and finish times per question. Handles are dropped, and the distribution of scores and times remains.

Study plans. Curated lists such as LeetCode 75, Top Interview 150, SQL 50 and 30 Days of Pandas arrange problems under headings. We store plan, heading and position, which shows the order the editors chose to teach in.

Company pages. Each company page shows the number of questions tied to it, how many people saved the list and when it was refreshed. That open header is what we deliver; the lists themselves sit behind Premium and stay outside the dataset.

LeetCode Discuss. Threads are sorted into Career, Contest, Compensation, Feedback and Interview. Title, date, opening text, votes, views and replies can be collected for a section, without the people behind the posts.

About LeetCode and its problem library

Source
leetcode.com
Category
education sites
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

LeetCode is a practice site for programming interviews. A visitor reads the statement, writes code next to it and submits it to a judge; most statements are open to read, while running or submitting code asks for an account and some problems are reserved for Premium. Library, Project, Quest, Explore and Study Plan are the entries of one shared menu.

Problems are split into tracks: Algorithms, Database, Shell, Concurrency, JavaScript and pandas. Above the list stands a row of topics with a count beside each, from Array and String, the two largest, down to narrow ones like Reservoir Sampling or Biconnected Component. A problem can carry several topics, so the counts add up to more than the library, and a LeetCode questions dataset needs a separate problem-to-topic table.

The library keeps growing through contests. A weekly contest brings four questions with rising points, which then collect submissions like any other problem, so the acceptance rate of a recent one moves fast while a classic like Two Sum barely stirs.

Two things look like problem data and are not: the Solved counter and progress marks belong to the signed-in user. They never enter our tables, and neither do member pages or submission histories. The Discussion tab under a statement, on the other hand, is public, and its comment count is a fair measure of how much argument a question causes.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

LeetCode scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

Who needs a LeetCode problems dataset

Hiring and assessment teams check whether a planned interview task already sits in the library, and how well known it is: difficulty, accepted submissions and similar questions together show whether a candidate has probably met it.

Course and bootcamp authors map a syllabus onto topics and difficulty levels, find the subjects where few problems exist, and compare their order with the published study plans.

Teams evaluating code models want dated problem records. The contest date tells them which problems appeared after a training cutoff, and the acceptance rate gives a human baseline for how hard each one is.

Education researchers follow the counters over time. Dated snapshots show how fast submissions grow in the Database track against dynamic programming, or how the gap between Easy and Medium acceptance rates moves.

Labour market analysts read the Compensation and Interview sections as a signal of which employers people talk about and when, counted by thread and month with no poster attached. Company page counters complete that picture with the size of each question list.

About ScrapeIt

ScrapeIt builds and maintains crawlers for clients who need a dataset, not another tool to look after. Learning platforms suit that arrangement: the catalogue is public, the counters keep moving, and the people around it should stay out of the file. User names, handles and avatars are left out by default and personal data is handled under GDPR. The project assessment is free. Plans start from EUR 169 a month, or EUR 199 for a one-time extract.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a LeetCode API for problems and questions?

Yes. The ScrapeIt LeetCode API returns the problem number, title, difficulty, topics, acceptance rate and accepted count as JSON from an endpoint we host, refreshed on the schedule you set. If files suit you better, the same rows come as CSV, JSONLines or XLSX, or go straight into your database.

Is it legal to scrape LeetCode?

Yes. Most problem statements, difficulty labels and acceptance rates in the library, and past contests open without an account. We collect only publicly available data - everything a visitor can see on LeetCode - and we collect it legally.

Does the LeetCode dataset come with test cases?

It comes with the cases the page shows: the worked examples with input, output and explanation, plus the sample inputs preloaded under the editor. The judge's own test set is not displayed to visitors, so it is not part of the file. Constraints are delivered in their own column, which is often enough to generate further cases.

Can your LeetCode web scraper track acceptance rates and contests over time?

Yes, with a schedule instead of a single extract. Each run stores accepted and total submissions per problem, so a weekly crawl gives growth per problem, topic and difficulty. Contest rows are added once a Weekly Contest or Biweekly Contest has ended.

Can you scrape LeetCode solutions and Discuss threads?

Yes, the public part of both. A LeetCode solutions dataset holds the post title, date, tags, upvotes, views and comment count for each problem, and Discuss adds the section and the opening text. Our LeetCode crawler drops author handles by default.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in; the Google Privacy Policy and Terms of Service apply. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

LeetCode data from €169/month. Free project assessment, reply within 1 business day.