Leetcode Problems Scraper avatar

Leetcode Problems Scraper

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Leetcode Problems Scraper

Leetcode Problems Scraper

LeetCode Problems Scraper is a Python tool designed to extract problem titles, difficulty levels, acceptance rates, tags, and problem descriptions from the LeetCode platform. It exports structured coding challenge datasets into clean CSV or JSON format

Pricing

from $2.99 / 1,000 results

Rating

0.0

(0)

Developer

real-estate-api

real-estate-api

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Security

Limited permissions

Share

LeetCode Problems Scraper — Coding Challenges, Difficulty, and Topic Tags

LeetCode Problems Scraper cover

Collect LeetCode problem information in a structured dataset. Retrieve problem titles, difficulty levels, acceptance rates, paid-only indicators, and topic tags to build searchable coding challenge catalogs and support interview preparation.

Overview

LeetCode Problems Scraper helps developers and analysts organize coding problems by difficulty, topic, and acceptance rate. Configure the maximum number of records and optionally filter problems by difficulty to create a dataset suited to your needs.

Features

  • Problem Collection: Collect available coding problem records.
  • Difficulty Filtering: Focus on Easy, Medium, or Hard problems.
  • Acceptance Rates: Capture reported acceptance rates when available.
  • Topic Tags: Organize problems by subjects such as Arrays, Hash Tables, Dynamic Programming, and Graphs.
  • Paid-Only Indicators: Identify problems marked as requiring a paid subscription.
  • Structured Exports: Export collected data in JSON, CSV, Excel, and other supported formats.
  • Configurable Collection: Set a maximum item count and request timing options.

Use Cases

  • Interview Preparation: Build a spreadsheet of coding problems organized by difficulty.
  • Topic Coverage: Find problems associated with specific data structures and algorithms.
  • Acceptance Rate Analysis: Compare reported acceptance rates across problem categories.
  • Study Planning: Create custom problem lists for learning and practice.
  • Problem Cataloging: Maintain a structured collection for personal research and analysis.

Input Parameters

ParameterTypeDescription
modeStringCollection mode. Use problems.
difficultyStringOptional difficulty filter: EASY, MEDIUM, or HARD.
maxItemsIntegerMaximum number of problems to collect.
requestDelaySecsNumberDelay between requests, in seconds.
userAgentStringOptional client identification string.
timeoutSecsNumberMaximum overall actor runtime, in seconds.
requestTimeoutSecsNumberMaximum wait time for an individual request, in seconds.

Example Input

{
"mode": "problems",
"difficulty": "EASY",
"maxItems": 50,
"requestDelaySecs": 2,
"userAgent": "ActorResearch/1.0",
"timeoutSecs": 300,
"requestTimeoutSecs": 30
}

What Data Does This Actor Extract?

The actor collects available problem information, including the following fields:

FieldDescription
frontendQuestionIdProblem's displayed question number.
problemTitleProblem title.
titleSlugURL-friendly problem identifier.
difficultyProblem difficulty, such as Easy, Medium, or Hard.
acRateReported acceptance rate.
paidOnlyIndicates whether the problem is marked as paid-only.
topicTagsList of associated topics and tags.
scrapedAtTimestamp when the record was collected.

Example Output

{
"frontendQuestionId": "1",
"problemTitle": "Two Sum",
"titleSlug": "two-sum",
"difficulty": "Easy",
"acRate": 58.002514942627904,
"paidOnly": false,
"topicTags": [
{
"name": "Array"
},
{
"name": "Hash Table"
}
],
"scrapedAt": "2026-10-26T00:00:00+00:00"
}

This is an illustrative record. Actual values and available fields depend on the collected data.

Working with Your Dataset

Once the actor finishes, open the dataset to review and export the collected problem records.

You can:

  • Export the results as JSON, CSV, Excel, or another supported format.
  • Sort problems by difficulty or acceptance rate.
  • Filter records by topic tags.
  • Create study lists for interview preparation.
  • Analyze problem distributions with Python, Pandas, or spreadsheet tools.

FAQ

Who is this actor for?

It is designed for developers, students, interview candidates, and analysts who want structured LeetCode problem information.

Can I collect only Easy, Medium, or Hard problems?

Yes. Set difficulty to EASY, MEDIUM, or HARD to filter the collection.

What export formats are available?

You can export the dataset in JSON, CSV, Excel, and other formats supported by Apify.

Can I run the actor on a schedule?

Yes. Configure an Apify schedule to refresh your dataset periodically.

Can every problem be accessed without a subscription?

Not necessarily. Some problems may be marked as paid-only, as indicated by the paidOnly field.

Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with LeetCode or its owners. Users are responsible for complying with applicable terms of use and laws when collecting and using data.

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article Is web scraping legal?.