LeetCode API
leetcode.com
LeetCode problem catalog - topics, problemset search, problems, and daily challenges.
- Actions
- 8
- Category
- Developer Tools
- Login
- Not required
- Output
- JSON
Call the LeetCode API
Submit a task, then poll the job until it settles. This example runs act_leetcode_daily_challenge_calendar.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_leetcode_daily_challenge_calendar",
"params": {
"year": 2026,
"month": 6
}
}'8 actions on leetcode.com
Read
Problemset Category Tree
act_leetcode_problemset_category_treeread1 credit / callReturns problemset category and curated favorites taxonomy for browse filters.
Write
Write actions change state on leetcode.com and run as the account you connect.
Daily Challenge Calendar
act_leetcode_daily_challenge_calendarwrite2 credits / callReturns daily coding challenge records for a year and month with links and question metadata.
- year
- integer · required
- month
- integer · required
Daily Challenge Today
act_leetcode_daily_challenge_todaywrite2 credits / callReturns today's active daily coding challenge with difficulty, acceptance, and metadata.
Problem Challenge History
act_leetcode_problem_challenge_historywrite2 credits / callReturns daily-challenge participation history records for a problem title slug.
- title_slug
- string · required
Problem List Navigation
act_leetcode_problem_list_navigationwrite2 credits / callReturns previous and next problem links within the current topic list context.
- title_slug
- string · required
- topic_slug
- string · required
Problem Open Metadata
act_leetcode_problem_open_metadatawrite2 credits / callReturns core metadata for opening a problem: title slug, difficulty, and frontend question ID.
- topic_slug
- string · required
- search_keyword
- string
Topic List Metadata
act_leetcode_topic_list_metadatawrite2 credits / callReturns metadata for a topic or company list: name, slug, question counts, and cover details.
- topic_slug
- string · required
Topic Problem List
act_leetcode_topic_problem_listwrite2 credits / callReturns problems in a topic or company list with slugs, difficulty, acceptance, and pagination.
- topic_slug
- string · required
- skip
- integer
- limit
- integer
- search_keyword
- string
LeetCode API questions
- Is there an API for LeetCode?
- LeetCode does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for leetcode.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape LeetCode data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when leetcode.com changes its markup, Anakin updates the action.
- Do I need a LeetCode account?
- No. Every LeetCode action listed here runs anonymously — no account and no credentials required.
- What does the LeetCode API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Developer Tools APIs
AlienVault
AlienVault OTX threat intelligence - indicator lookup, pulses, and related IOC data.
AlternativeTo
AlternativeTo - software search, details, and crowd-ranked alternatives by platform/license.
AnyAPI
API directory - search, API specifications, and documentation.
APIList
Public API directory - category search, API details, and descriptions.
Appbrain
Android app stats - Play rankings by category/country, ad network share, and trends.
Badgen
Badge generation service - badge creation, badge types, and usage docs.