{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"4b76f752-caea-4350-9397-a79e86181219","catalogType":"api","categories":["developer","data"],"dataPlatform":"leetcode","dataPlatformLogoUrl":"https://api.sh/logos/leetcode.png","dataPlatformTranslations":{},"dataProduct":"coding-problems","description":"Search LeetCode Problem via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as difficulty, limit, output, and retrieve structured data including displayed problem identifier, problem slug, problem title, difficulty label, and reported acceptance rate to build topic practice lists, and resolve metadata, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"ابحث عن بيانات مسائل LeetCode عبر OpenAny REST لبناء قوائم التدريب حسب الموضوع والصعوبة والرقم. اجمع الكلمات والفئة وpremium والوسوم والترتيب والصفحات لاستلام المعرفات والعناوين ونسب القبول وعلامات توفر الحل بصيغة JSON دون تنفيذ كود أو تقديم النص الكامل.","ja":"OpenAny REST で LeetCode 問題メタデータを検索し、主題や難易度別の練習一覧を作成できます。語句、カテゴリ、premium、タグ、ソート、ページから ID、slug、題名、正答率、解説フラグを JSON で取得します。","zh":"通过 OpenAny REST 搜索 LeetCode 题目元数据，按主题、难度或题号组织练习。可组合关键词、类别、premium 和标签条件，排序分页获取题号、slug、标题、通过率及题解可用标记 JSON；不执行代码或返回完整题面。"},"effectContentHtml":"","executionMode":"sync","id":"0b52ec7c-0327-4c3f-851b-5a8af43b5898","includedContentHtml":"","inputs":[{"description":"Search words in the title or the problem number.","location":"query","name":"q","nullable":false,"required":false,"type":"string"},{"description":"Difficulty.","enum_values":["easy","medium","hard"],"location":"query","name":"difficulty","nullable":false,"required":false,"type":"string"},{"description":"Topic tag slugs, comma-separated (all must match), e.g. `dynamic-programming,tree`.","location":"query","name":"tags","nullable":false,"required":false,"type":"string"},{"description":"Problem category.","enum_values":["algorithms","database","shell","concurrency","javascript","pandas"],"location":"query","name":"category","nullable":false,"required":false,"type":"string"},{"description":"`true`: premium problems only; `false`: free only.","enum_values":["true","false"],"location":"query","name":"premium","nullable":false,"required":false,"type":"string"},{"description":"Sort field (default: problem number).","enum_values":["id","ac_rate","difficulty","frequency"],"location":"query","name":"order_by","nullable":false,"required":false,"type":"string"},{"description":"`asc` (default) or `desc` (with order_by).","enum_values":["asc","desc"],"location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"Page number (default 1).","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"description":"Results per page (default 50, max 100).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/leetcode.png","method":"GET","name":"LeetCode problem list API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eLeetCode Problem Search API\u003c/h2\u003e\n\u003cp\u003etags uses comma-separated topic slugs that must all match. page defaults to 1; limit defaults to 50 and is capped at 100.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eNo mandatory inputs. Optional: q, difficulty, tags, category, premium, order_by, sort, page, limit. JSON only; fresh=1 bypasses cache and raw=0 trims raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · LeetCode problem list API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBuild topic practice lists\u003c/strong\u003e: Combine tags and difficulty.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eResolve metadata\u003c/strong\u003e: Pass a returned slug to Problem Metadata.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDisplayed problem identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].slug\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProblem slug\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProblem title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].difficulty\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDifficulty label\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].acceptance_rate\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported acceptance rate\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].premium\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePremium classification\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eContinuation page\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/leetcode/v1/problems \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode difficulty=hard \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0 \\\n  --data-urlencode tags=dynamic-programming\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/0b52ec7c-0327-4c3f-851b-5a8af43b5898\"\u003ePublished LeetCode Problem Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eDo several topic tags use OR matching?\u003c/h3\u003e\n\u003cp\u003eNo. The contract specifies that all comma-separated tags must match.\u003c/p\u003e\n\u003ch3\u003eHow do premium filters work?\u003c/h3\u003e\n\u003cp\u003epremium=true selects premium problems; false selects free problems. This does not grant access to restricted content.\u003c/p\u003e\n\u003ch3\u003eWhat pagination defaults apply?\u003c/h3\u003e\n\u003cp\u003epage defaults to 1 and limit to 50, capped at 100.\u003c/p\u003e\n\u003ch3\u003eCan I search a problem number?\u003c/h3\u003e\n\u003cp\u003eYes. q supports title words or a problem number.\u003c/p\u003e\n\u003ch3\u003eDoes this return full statements or executable solutions?\u003c/h3\u003e\n\u003cp\u003eNo. It lists metadata and availability flags.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or use output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/leetcode/leetcode-contest-api\"\u003eLeetCode contest API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/leetcode/leetcode-contest-ranking-api\"\u003eLeetCode contest ranking API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/leetcode/leetcode-contests-api\"\u003eLeetCode contests API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/leetcode/leetcode-problem-list-api?offering=0b52ec7c-0327-4c3f-851b-5a8af43b5898","providerId":"apish","publicPath":"/v1/agent-apis/apish/leetcode/v1/problems","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"difficulty":"hard","limit":"1","output":"json","raw":"0","tags":"dynamic-programming"}},"response_body":{"cached":false,"count":1,"credits_used":1,"difficulty":"hard","fetched_at":"2026-11-19T12:29:42.065Z","items":[{"acceptance_rate":32.13,"difficulty":"Hard","has_solution":true,"has_video_solution":false,"id":"10","premium":false,"slug":"regular-expression-matching","title":"Regular Expression Matching","topics":["string","dynamic-programming","recursion"],"url":"https://leetcode.com/problems/regular-expression-matching/"}],"next_page":2,"page":1,"query":null,"tags":["dynamic-programming"],"total":340}}],"seoDescription":"Search LeetCode Problem via REST or MCP powered by Apish. Pay per call, no subscription. Ready for developers and AI agents with one API key.","updatedAt":"2026-12-03T02:44:06.296Z","usageInstructionsHtml":""}}