Leetcode Problems Scraper
Pricing
from $2.99 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Security
Limited permissionsShare
LeetCode Problems Scraper — Coding Challenges, Difficulty, and Topic Tags

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
| Parameter | Type | Description |
|---|---|---|
mode | String | Collection mode. Use problems. |
difficulty | String | Optional difficulty filter: EASY, MEDIUM, or HARD. |
maxItems | Integer | Maximum number of problems to collect. |
requestDelaySecs | Number | Delay between requests, in seconds. |
userAgent | String | Optional client identification string. |
timeoutSecs | Number | Maximum overall actor runtime, in seconds. |
requestTimeoutSecs | Number | Maximum 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:
| Field | Description |
|---|---|
frontendQuestionId | Problem's displayed question number. |
problemTitle | Problem title. |
titleSlug | URL-friendly problem identifier. |
difficulty | Problem difficulty, such as Easy, Medium, or Hard. |
acRate | Reported acceptance rate. |
paidOnly | Indicates whether the problem is marked as paid-only. |
topicTags | List of associated topics and tags. |
scrapedAt | Timestamp 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.
Is Web Scraping Legal?
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?.