LeetCode

App · 18 actions

Follow LeetCode's daily challenge, look up and search its coding problems, and track anyone's public progress, recent solves, badges and contest results. No account or API key needed.

Actions

ActionWhat it does
Get contestGet one LeetCode contest: when it starts, how long it lasts and, once it has started, its problems and their points.
Get contest historyList the contests a LeetCode user took part in, newest first, with their rank, problems solved, finish time and how each contest moved their rating.
Get contest ratingGet a LeetCode user's contest rating, global rank, top percentage, contests attended and badge (Knight or Guardian).
Get daily challengeGet today's LeetCode daily coding challenge: the problem's number, title, difficulty, topics, statement as plain text, hints and link.
Get problemGet one problem in full: its statement as plain text and HTML, difficulty, topics, hints, acceptance rate, likes and similar problems.
Get random problemPick a random problem, optionally of one difficulty and set of topics, and get it in full.
Get submission calendarGet the days a LeetCode user submitted solutions, with how many each day, for one year or the past 12 months, plus their active days and longest streak.
Get user profileGet a LeetCode user's public profile: name, ranking, reputation, country, company, school, skills, links and the badge they show.
Get user progressGet how many problems a LeetCode user has solved, in all and by difficulty, out of how many there are; the share of users they beat at each difficulty; their acceptance rate; and problems solved per language.
Get user topic statsGet how many problems a LeetCode user has solved in each topic, most first, grouped by LeetCode as fundamental, intermediate or advanced.
List daily challengesList every daily challenge of one month, oldest first, with each problem's number, title, difficulty and topics.
List past contestsList LeetCode contests that have finished, newest first.
List recent solvesList a LeetCode user's most recent accepted solutions, newest first: the problem, the language and when.
List recent submissionsList a LeetCode user's most recent submissions, newest first, accepted or not, with LeetCode's verdict on each (Accepted, Wrong Answer and so on).
List topicsList every topic LeetCode files its problems under, such as Array, Dynamic Programming and Graph, A to Z.
List upcoming contestsList LeetCode's next weekly and biweekly contests, soonest first, with when each starts and how long it lasts.
List user badgesList the badges a LeetCode user has earned, newest first, with the badges they can earn next.
Search problemsSearch LeetCode's problems by words in the title or number, difficulty and topics, sorted the way you choose.

Get contest

Get one LeetCode contest: when it starts, how long it lasts and, once it has started, its problems and their points.

Inputs

ContestcontesttextRequired
The contest. Pick a recent one, or type its name (such as Weekly Contest 400) or the address of its page.

Outputs

duration_minutesnumber
How long the contest lasts, in minutes.
has_startedtrue/false
True once the contest has started. Its problems are hidden until then.
problem_countnumber
How many problems are listed.
problemslist
The contest's problems, in order.
slugtext
The contest's slug, e.g. 'weekly-contest-400'.
starts_attext
When the contest starts, in ISO 8601 UTC.
titletext
The contest's name, e.g. 'Weekly Contest 400'.
urltext
The address of the contest's page.
Example output
{
  "duration_minutes": 90,
  "has_started": true,
  "problem_count": 1,
  "problems": [
    {
      "points": 3,
      "slug": "minimum-number-of-chairs-in-a-waiting-room",
      "title": "Minimum Number of Chairs in a Waiting Room",
      "url": "https://leetcode.com/problems/minimum-number-of-chairs-in-a-waiting-room/"
    }
  ],
  "slug": "weekly-contest-400",
  "starts_at": "2024-06-02T02:30:00Z",
  "title": "Weekly Contest 400",
  "url": "https://leetcode.com/contest/weekly-contest-400/"
}

Get contest history

List the contests a LeetCode user took part in, newest first, with their rank, problems solved, finish time and how each contest moved their rating.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.
How manylimitnumber
How many contests to return, 1 to 1000. Defaults to 20.From 1 to 1000.

Outputs

contestslist
Contests taken part in, newest first.
contests_attendednumber
How many contests the user took part in.
countnumber
How many are in this result.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "contests": [
    {
      "contest": "Weekly Contest 416",
      "contest_slug": "weekly-contest-416",
      "contest_url": "https://leetcode.com/contest/weekly-contest-416/",
      "finish_time_seconds": 4883,
      "problems_solved": 4,
      "rank": 2663,
      "rating": 2204,
      "rating_change": -18,
      "started_at": "2024-09-22T02:30:00Z",
      "total_problems": 4
    }
  ],
  "contests_attended": 27,
  "count": 1,
  "username": "lee215"
}

Get contest rating

Get a LeetCode user's contest rating, global rank, top percentage, contests attended and badge (Knight or Guardian).

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.

Outputs

badgetext
The user's contest badge: Knight or Guardian. Empty for none.
contests_attendednumber
How many contests the user has taken part in.
global_rankingnumber
The user's place in the global ranking.
has_competedtrue/false
False when the user has never taken part in a rated contest; the other numbers are then empty.
ratingnumber
The user's contest rating, e.g. 1850.
top_percentagenumber
The user's place as a percentage from the top, e.g. 4.5.
total_participantsnumber
How many people are in the global ranking.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "badge": "Guardian",
  "contests_attended": 27,
  "global_ranking": 7579,
  "has_competed": true,
  "rating": 2204,
  "top_percentage": 0.9,
  "total_participants": 888637,
  "username": "lee215"
}

Get daily challenge

Get today's LeetCode daily coding challenge: the problem's number, title, difficulty, topics, statement as plain text, hints and link. A new one is posted every day at midnight UTC.

Inputs

None.

Outputs

acceptance_ratenumber
The percentage of submissions that are accepted, e.g. 58.0.
categorytext
The problem set it belongs to, e.g. 'Algorithms' or 'Database'.
datetext
The day of the challenge, as YYYY-MM-DD in UTC.
descriptiontext
The problem statement as plain text, with its examples and constraints. Empty for a premium problem.
description_htmltext
The problem statement as LeetCode's HTML. Empty for a premium problem.
difficultytext
Easy, Medium or Hard.
dislikesnumber
How many people disliked it.
example_testcasestext
The example inputs LeetCode runs, one per line.
hintslist
LeetCode's hints, as plain text, in order.
is_premiumtrue/false
True when only LeetCode Premium members can open it.
likesnumber
How many people liked it.
numbertext
The problem's number on LeetCode, e.g. '1' for Two Sum.
similar_problemslist
Problems LeetCode lists as similar.
slugtext
The problem's slug, the last part of its address, e.g. 'two-sum'.
titletext
The problem's title, e.g. 'Two Sum'.
topicslist
The topics LeetCode files it under, e.g. 'Array', 'Hash Table'.
total_acceptednumber
How many accepted submissions it has had.
total_submissionsnumber
How many submissions it has had.
urltext
The address of the problem's page on leetcode.com.
Example output
{
  "acceptance_rate": 58.0,
  "category": "Algorithms",
  "date": "2026-10-19",
  "description": "Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\n\nConstraints:\n- 2 <= nums.length <= 10^4",
  "description_html": "<p>Given an array of integers <code>nums</code> and an integer <code>target</code>, return <em>indices of the two numbers such that they add up to <code>target</code></em>.</p>",
  "difficulty": "Easy",
  "dislikes": 2647,
  "example_testcases": "[2,7,11,15]\n9\n[3,2,4]\n6",
  "hints": [
    "A really brute force way would be to search for all possible pairs of numbers but that would be too slow."
  ],
  "is_premium": false,
  "likes": 70816,
  "number": "1",
  "similar_problems": [
    {
      "difficulty": "Medium",
      "slug": "3sum",
      "title": "3Sum",
      "url": "https://leetcode.com/problems/3sum/"
    }
  ],
  "slug": "two-sum",
  "title": "Two Sum",
  "topics": [
    "Array",
    "Hash Table"
  ],
  "total_accepted": 23912345,
  "total_submissions": 41204567,
  "url": "https://leetcode.com/problems/two-sum/"
}

Get problem

Get one problem in full: its statement as plain text and HTML, difficulty, topics, hints, acceptance rate, likes and similar problems. Premium problems come without a statement.

Inputs

ProblemproblemtextRequired
The problem's number, title or the address of its page, such as 1, Two Sum or https://leetcode.com/problems/two-sum/.

Outputs

acceptance_ratenumber
The percentage of submissions that are accepted, e.g. 58.0.
categorytext
The problem set it belongs to, e.g. 'Algorithms' or 'Database'.
descriptiontext
The problem statement as plain text, with its examples and constraints. Empty for a premium problem.
description_htmltext
The problem statement as LeetCode's HTML. Empty for a premium problem.
difficultytext
Easy, Medium or Hard.
dislikesnumber
How many people disliked it.
example_testcasestext
The example inputs LeetCode runs, one per line.
hintslist
LeetCode's hints, as plain text, in order.
is_premiumtrue/false
True when only LeetCode Premium members can open it.
likesnumber
How many people liked it.
numbertext
The problem's number on LeetCode, e.g. '1' for Two Sum.
similar_problemslist
Problems LeetCode lists as similar.
slugtext
The problem's slug, the last part of its address, e.g. 'two-sum'.
titletext
The problem's title, e.g. 'Two Sum'.
topicslist
The topics LeetCode files it under, e.g. 'Array', 'Hash Table'.
total_acceptednumber
How many accepted submissions it has had.
total_submissionsnumber
How many submissions it has had.
urltext
The address of the problem's page on leetcode.com.
Example output
{
  "acceptance_rate": 58.0,
  "category": "Algorithms",
  "description": "Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\n\nConstraints:\n- 2 <= nums.length <= 10^4",
  "description_html": "<p>Given an array of integers <code>nums</code> and an integer <code>target</code>, return <em>indices of the two numbers such that they add up to <code>target</code></em>.</p>",
  "difficulty": "Easy",
  "dislikes": 2647,
  "example_testcases": "[2,7,11,15]\n9\n[3,2,4]\n6",
  "hints": [
    "A really brute force way would be to search for all possible pairs of numbers but that would be too slow."
  ],
  "is_premium": false,
  "likes": 70816,
  "number": "1",
  "similar_problems": [
    {
      "difficulty": "Medium",
      "slug": "3sum",
      "title": "3Sum",
      "url": "https://leetcode.com/problems/3sum/"
    }
  ],
  "slug": "two-sum",
  "title": "Two Sum",
  "topics": [
    "Array",
    "Hash Table"
  ],
  "total_accepted": 23912345,
  "total_submissions": 41204567,
  "url": "https://leetcode.com/problems/two-sum/"
}

Get random problem

Pick a random problem, optionally of one difficulty and set of topics, and get it in full. Free problems only, unless you include premium ones.

Inputs

Difficultydifficultytext
Only problems of this difficulty. Leave empty for any.One of: EASY, MEDIUM, HARD.
Topicstopicslist
Only problems filed under every one of these topics. Leave empty for any topic.
Include premium problemsinclude_premiumtrue/false
Also pick from problems only LeetCode Premium members can open.Default: false.

Outputs

acceptance_ratenumber
The percentage of submissions that are accepted, e.g. 58.0.
categorytext
The problem set it belongs to, e.g. 'Algorithms' or 'Database'.
descriptiontext
The problem statement as plain text, with its examples and constraints. Empty for a premium problem.
description_htmltext
The problem statement as LeetCode's HTML. Empty for a premium problem.
difficultytext
Easy, Medium or Hard.
dislikesnumber
How many people disliked it.
example_testcasestext
The example inputs LeetCode runs, one per line.
hintslist
LeetCode's hints, as plain text, in order.
is_premiumtrue/false
True when only LeetCode Premium members can open it.
likesnumber
How many people liked it.
numbertext
The problem's number on LeetCode, e.g. '1' for Two Sum.
similar_problemslist
Problems LeetCode lists as similar.
slugtext
The problem's slug, the last part of its address, e.g. 'two-sum'.
titletext
The problem's title, e.g. 'Two Sum'.
topicslist
The topics LeetCode files it under, e.g. 'Array', 'Hash Table'.
total_acceptednumber
How many accepted submissions it has had.
total_submissionsnumber
How many submissions it has had.
urltext
The address of the problem's page on leetcode.com.
Example output
{
  "acceptance_rate": 58.0,
  "category": "Algorithms",
  "description": "Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\n\nConstraints:\n- 2 <= nums.length <= 10^4",
  "description_html": "<p>Given an array of integers <code>nums</code> and an integer <code>target</code>, return <em>indices of the two numbers such that they add up to <code>target</code></em>.</p>",
  "difficulty": "Easy",
  "dislikes": 2647,
  "example_testcases": "[2,7,11,15]\n9\n[3,2,4]\n6",
  "hints": [
    "A really brute force way would be to search for all possible pairs of numbers but that would be too slow."
  ],
  "is_premium": false,
  "likes": 70816,
  "number": "1",
  "similar_problems": [
    {
      "difficulty": "Medium",
      "slug": "3sum",
      "title": "3Sum",
      "url": "https://leetcode.com/problems/3sum/"
    }
  ],
  "slug": "two-sum",
  "title": "Two Sum",
  "topics": [
    "Array",
    "Hash Table"
  ],
  "total_accepted": 23912345,
  "total_submissions": 41204567,
  "url": "https://leetcode.com/problems/two-sum/"
}

Get submission calendar

Get the days a LeetCode user submitted solutions, with how many each day, for one year or the past 12 months, plus their active days and longest streak.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.
Yearyearnumber
The year to show. Leave empty for the past 12 months.From 2011 to 2100.

Outputs

active_daysnumber
How many days had a submission.
active_yearslist
Every year the user submitted in.
dayslist
Each day with a submission, oldest first.
longest_streaknumber
The most days in a row with a submission, in the period shown.
submissionsnumber
How many submissions in the period.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
yearnumber
The year shown; empty for the past 12 months.
Example output
{
  "active_days": 1,
  "active_years": [
    2025,
    2026
  ],
  "days": [
    {
      "date": "2026-10-04",
      "submissions": 3
    }
  ],
  "longest_streak": 3,
  "submissions": 3,
  "username": "lee215",
  "year": null
}

Get user profile

Get a LeetCode user's public profile: name, ranking, reputation, country, company, school, skills, links and the badge they show.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.

Outputs

abouttext
The 'About me' text on the user's profile.
active_badgetext
The badge the user shows on their profile.
avatar_urltext
The address of the user's profile picture.
companytext
The company on the user's profile.
countrytext
The country on the user's profile.
github_urltext
The user's GitHub address, when they give one.
linkedin_urltext
The user's LinkedIn address, when they give one.
profile_urltext
The address of the user's profile page.
rankingnumber
The user's overall ranking on LeetCode, by problems solved.
real_nametext
The name the user gives on their profile.
reputationnumber
The user's reputation from the community.
schooltext
The school on the user's profile.
skillslist
The skills on the user's profile.
solution_viewsnumber
How many times the user's posts have been viewed.
solutions_sharednumber
How many solutions the user has posted.
twitter_urltext
The user's X (Twitter) address, when they give one.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
websiteslist
The websites on the user's profile.
Example output
{
  "about": "Lee codes for fun :)",
  "active_badge": "365 Days Badge",
  "avatar_url": "https://assets.leetcode.com/users/lee215/avatar_1551541889.png",
  "company": "",
  "country": "China",
  "github_url": "",
  "linkedin_url": "",
  "profile_url": "https://leetcode.com/u/lee215/",
  "ranking": 104509,
  "real_name": "lee",
  "reputation": 231212,
  "school": "",
  "skills": [
    "python",
    "java",
    "c++"
  ],
  "solution_views": 20768883,
  "solutions_shared": 1372,
  "twitter_url": "",
  "username": "lee215",
  "websites": []
}

Get user progress

Get how many problems a LeetCode user has solved, in all and by difficulty, out of how many there are; the share of users they beat at each difficulty; their acceptance rate; and problems solved per language.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.

Outputs

acceptance_ratenumber
The percentage of the user's submissions that were accepted.
easy_beats_percentnumber
The percentage of users who have solved fewer Easy problems.
easy_solvednumber
How many Easy problems the user has solved.
easy_totalnumber
How many Easy problems LeetCode has.
hard_beats_percentnumber
The percentage of users who have solved fewer Hard problems.
hard_solvednumber
How many Hard problems the user has solved.
hard_totalnumber
How many Hard problems LeetCode has.
languageslist
Problems solved per language, most first.
medium_beats_percentnumber
The percentage of users who have solved fewer Medium problems.
medium_solvednumber
How many Medium problems the user has solved.
medium_totalnumber
How many Medium problems LeetCode has.
profile_urltext
The address of the user's profile page.
solvednumber
How many problems the user has solved.
submissionsnumber
How many solutions the user has submitted in all.
total_problemsnumber
How many problems LeetCode has.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "acceptance_rate": 42.8,
  "easy_beats_percent": 93.0,
  "easy_solved": 126,
  "easy_total": 972,
  "hard_beats_percent": 98.7,
  "hard_solved": 149,
  "hard_total": 984,
  "languages": [
    {
      "language": "Python",
      "problems_solved": 445
    }
  ],
  "medium_beats_percent": 98.5,
  "medium_solved": 411,
  "medium_total": 2130,
  "profile_url": "https://leetcode.com/u/lee215/",
  "solved": 686,
  "submissions": 4936,
  "total_problems": 4086,
  "username": "lee215"
}

Get user topic stats

Get how many problems a LeetCode user has solved in each topic, most first, grouped by LeetCode as fundamental, intermediate or advanced.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.

Outputs

countnumber
How many are in this result.
topicslist
Problems solved per topic, most first.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "count": 1,
  "topics": [
    {
      "level": "fundamental",
      "problems_solved": 385,
      "slug": "array",
      "topic": "Array"
    }
  ],
  "username": "lee215"
}

List daily challenges

List every daily challenge of one month, oldest first, with each problem's number, title, difficulty and topics.

Inputs

Monthmonthdate
Any day in the month to list. Leave empty for this month.

Outputs

challengeslist
The month's challenges, oldest first.
countnumber
How many are in this result.
monthtext
The month listed, as YYYY-MM.
Example output
{
  "challenges": [
    {
      "acceptance_rate": 58.0,
      "date": "2026-10-01",
      "difficulty": "Easy",
      "is_premium": false,
      "number": "1",
      "slug": "two-sum",
      "title": "Two Sum",
      "topics": [
        "Array",
        "Hash Table"
      ],
      "url": "https://leetcode.com/problems/two-sum/"
    }
  ],
  "count": 1,
  "month": "2026-10"
}

List past contests

List LeetCode contests that have finished, newest first.

Inputs

How manylimitnumber
How many contests to return, 1 to 100. Defaults to 20.From 1 to 100.
Skipoffsetnumber
How many to skip, to get the next page. Use a multiple of How many: with 20, skip 20 for the second page. Defaults to 0.At least 0.

Outputs

contestslist
Finished contests, newest first.
countnumber
How many contests are in this page.
has_moretrue/false
True when there are more to fetch with a larger offset.
offsetnumber
How many contests were skipped before this page.
totalnumber
How many contests match in all.
Example output
{
  "contests": [
    {
      "duration_minutes": 90,
      "slug": "weekly-contest-400",
      "starts_at": "2024-06-02T02:30:00Z",
      "title": "Weekly Contest 400",
      "url": "https://leetcode.com/contest/weekly-contest-400/"
    }
  ],
  "count": 1,
  "has_more": true,
  "offset": 0,
  "total": 723
}

List recent solves

List a LeetCode user's most recent accepted solutions, newest first: the problem, the language and when. LeetCode shows up to 20.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.
How manylimitnumber
How many to return, 1 to 20. LeetCode shows at most 20.From 1 to 20.

Outputs

countnumber
How many are in this result.
solveslist
Accepted solutions, newest first.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "count": 1,
  "solves": [
    {
      "language": "java",
      "slug": "count-good-strings",
      "submission_id": "2161701956",
      "submitted_at": "2026-10-04T04:03:25Z",
      "title": "Count Good Strings",
      "url": "https://leetcode.com/problems/count-good-strings/"
    }
  ],
  "username": "lee215"
}

List recent submissions

List a LeetCode user's most recent submissions, newest first, accepted or not, with LeetCode's verdict on each (Accepted, Wrong Answer and so on). LeetCode shows up to 20.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.
How manylimitnumber
How many to return, 1 to 20. LeetCode shows at most 20.From 1 to 20.

Outputs

countnumber
How many are in this result.
submissionslist
Submissions, newest first.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "count": 1,
  "submissions": [
    {
      "language": "java",
      "slug": "count-good-strings",
      "status": "Accepted",
      "submission_id": "2161701956",
      "submitted_at": "2026-10-04T04:03:25Z",
      "title": "Count Good Strings",
      "url": "https://leetcode.com/problems/count-good-strings/"
    }
  ],
  "username": "lee215"
}

List topics

List every topic LeetCode files its problems under, such as Array, Dynamic Programming and Graph, A to Z.

Inputs

None.

Outputs

countnumber
How many are in this result.
topicslist
The topics, A to Z.
Example output
{
  "count": 1,
  "topics": [
    {
      "name": "Array",
      "slug": "array",
      "url": "https://leetcode.com/tag/array/"
    }
  ]
}

List upcoming contests

List LeetCode's next weekly and biweekly contests, soonest first, with when each starts and how long it lasts.

Inputs

None.

Outputs

contestslist
Upcoming contests, soonest first.
countnumber
How many are in this result.
Example output
{
  "contests": [
    {
      "duration_minutes": 90,
      "slug": "weekly-contest-525",
      "starts_at": "2026-10-25T02:30:00Z",
      "title": "Weekly Contest 525",
      "url": "https://leetcode.com/contest/weekly-contest-525/"
    }
  ],
  "count": 1
}

List user badges

List the badges a LeetCode user has earned, newest first, with the badges they can earn next.

Inputs

UsernameusernametextRequired
The person's LeetCode username, or the address of their profile page.

Outputs

active_badgetext
The badge the user shows on their profile.
badgeslist
Badges earned, newest first.
countnumber
How many are in this result.
upcoming_badgeslist
Badges the user can earn next.
usernametext
The user's LeetCode username, spelled as LeetCode spells it.
Example output
{
  "active_badge": "365 Days Badge",
  "badges": [
    {
      "badge_id": "10260542",
      "category": "Competition",
      "earned_on": "2026-05-06",
      "icon_url": "https://leetcode.com/static/images/badges/guardian.png",
      "name": "Guardian"
    }
  ],
  "count": 1,
  "upcoming_badges": [
    {
      "icon_url": "https://leetcode.com/static/images/badges/dcc-2026-10.png",
      "name": "Oct LeetCoding Challenge"
    }
  ],
  "username": "lee215"
}

Search problems

Search LeetCode's problems by words in the title or number, difficulty and topics, sorted the way you choose. Returns one page of problems and how many match in all.

Inputs

Search forkeywordstext
Words in the title, or a problem number. Leave empty for every problem.
Difficultydifficultytext
Only problems of this difficulty. Leave empty for any.One of: EASY, MEDIUM, HARD.
Topicstopicslist
Only problems filed under every one of these topics. Leave empty for any topic.
Sort byordertext
The order to list them in. Defaults to problem number.One of: number (Problem number), newest (Newest first), acceptance_high (Highest acceptance rate), acceptance_low (Lowest acceptance rate), easiest (Easiest first), hardest (Hardest first).
How manylimitnumber
How many problems to return, 1 to 100. Defaults to 20.From 1 to 100.
Skipoffsetnumber
How many to skip, to get the next page: 20 skips the first 20. Defaults to 0.At least 0.

Outputs

countnumber
How many problems are in this page.
has_moretrue/false
True when there are more to fetch with a larger offset.
offsetnumber
How many problems were skipped before this page.
problemslist
This page of matching problems.
totalnumber
How many problems match in all.
Example output
{
  "count": 1,
  "has_more": true,
  "offset": 0,
  "problems": [
    {
      "acceptance_rate": 58.0,
      "difficulty": "Easy",
      "is_premium": false,
      "number": "1",
      "slug": "two-sum",
      "title": "Two Sum",
      "topics": [
        "Array",
        "Hash Table"
      ],
      "url": "https://leetcode.com/problems/two-sum/"
    }
  ],
  "total": 434
}

On this page