{"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":"118b6a1c-fae1-4ae4-9a8a-010ae3606c21","catalogType":"api","categories":["developer","data"],"dataPlatform":"leetcode","dataPlatformLogoUrl":"https://api.sh/logos/leetcode.png","dataPlatformTranslations":{},"dataProduct":"coding-problems","description":"Get LeetCode Global Contest Rankings data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, page, raw, and retrieve structured data including global contest rank, leetCode username, published contest rating, public profile URL, and returned page-size metadata to display global rating tables, and link public profiles.","descriptionTranslations":{"ar":"تصفح ترتيب مسابقات LeetCode العالمي عبر OpenAny REST لعرض الدرجات وربط المشاركين بملفاتهم العامة. استخدم page للحصول على الرتب والأسماء والتقييمات والدولة والروابط بصيغة JSON مع قراءة per_page وبيانات المتابعة.","ja":"OpenAny REST で LeetCode グローバル順位を取得し、公開レーティングとプロフィールを表示できます。page から順位、ユーザー名、レート、国、リンクを JSON で取得し、per_page と続き情報を確認します。","zh":"通过 OpenAny REST 浏览 LeetCode 全球竞赛评分榜，展示公开排名并关联主页。可指定 page，获取名次、用户名、评分、国家和链接 JSON，并读取 per_page 和续页信息，不从样例推定固定页长。"},"effectContentHtml":"","executionMode":"sync","id":"69d3368b-7624-45b4-8d0a-aaf17ff43174","includedContentHtml":"","inputs":[{"description":"Page number.","location":"query","name":"page","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 global contest ranking API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eLeetCode Global Contest Rankings API\u003c/h2\u003e\n\u003cp\u003epage selects a ranking page. Read per_page, total_users and next_page to interpret the returned slice.\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: page. 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 global contest ranking 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\u003eDisplay global rating tables\u003c/strong\u003e: Keep rank and rating together.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eLink public profiles\u003c/strong\u003e: Follow profile_url or username.\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[].rank\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eGlobal contest rank\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].username\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eLeetCode username\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].rating\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePublished contest rating\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].profile_url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePublic profile URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eper_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned page-size metadata\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/global-ranking \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode page=1 \\\n  --data-urlencode raw=0\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/69d3368b-7624-45b4-8d0a-aaf17ff43174\"\u003ePublished LeetCode Global Contest Rankings 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\u003eWhat request controls are supported?\u003c/h3\u003e\n\u003cp\u003eThe optional page parameter.\u003c/p\u003e\n\u003ch3\u003eCan I set limit?\u003c/h3\u003e\n\u003cp\u003eNo limit parameter is exposed.\u003c/p\u003e\n\u003ch3\u003eHow do I continue?\u003c/h3\u003e\n\u003cp\u003ePass next_page as page.\u003c/p\u003e\n\u003ch3\u003eIs this one contest’s standings?\u003c/h3\u003e\n\u003cp\u003eNo. Use Contest Rankings for one event.\u003c/p\u003e\n\u003ch3\u003eCan I assume every page has the same number of returned rows?\u003c/h3\u003e\n\u003cp\u003eRead count and per_page, especially for the final page.\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-global-contest-ranking-api?offering=69d3368b-7624-45b4-8d0a-aaf17ff43174","providerId":"apish","publicPath":"/v1/agent-apis/apish/leetcode/v1/global-ranking","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","page":"1","raw":"0"}},"response_body":{"cached":false,"count":25,"credits_used":1,"fetched_at":"2026-11-19T12:29:39.919Z","items":[{"avatar":"https://assets.leetcode.com/users/fjzzq2002/avatar_1735951462.png","country":null,"country_code":null,"name":"Miruu","profile_url":"https://leetcode.com/u/fjzzq2002/","rank":1,"rating":3702.8,"region":"US","username":"fjzzq2002"},{"avatar":"https://assets.leetcode.com/users/neal_wu/avatar_1737814509.png","country":"United States","country_code":"US","name":"Neal Wu","profile_url":"https://leetcode.com/u/neal_wu/","rank":2,"rating":3686.2,"region":"US","username":"neal_wu"},{"avatar":"https://assets.leetcode.com/users/1900015431/avatar_1633874346.png","country":null,"country_code":null,"name":"Yawn_Sean","profile_url":"https://leetcode.com/u/Yawn_Sean/","rank":3,"rating":3644.8,"region":"US","username":"Yawn_Sean"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/yawn_sean/avatar_1654149069.png","country":"中国","country_code":null,"name":"小羊肖恩","profile_url":"https://leetcode.cn/u/ahmed007boss/","rank":4,"rating":3611.5,"region":"CN","username":"ahmed007boss"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/heltion/avatar_1587213058.png","country":"中国","country_code":null,"name":"何逊","profile_url":"https://leetcode.cn/u/liming-v/","rank":5,"rating":3599.5,"region":"CN","username":"liming-v"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":"Australia","country_code":"AU","name":"Joshua Chen","profile_url":"https://leetcode.com/u/numb3r5/","rank":6,"rating":3589.3,"region":"US","username":"numb3r5"},{"avatar":"https://assets.leetcode.com/users/rohingarg123/avatar_1584377597.png","country":null,"country_code":null,"name":"Rohin Garg","profile_url":"https://leetcode.com/u/PurpleCrayon/","rank":7,"rating":3506.4,"region":"US","username":"PurpleCrayon"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/sserxhs/avatar_1622949152.png","country":"中国","country_code":null,"name":"SSerxhs","profile_url":"https://leetcode.cn/u/hankray/","rank":8,"rating":3499.5,"region":"CN","username":"hankray"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/young_sean/avatar_1677902710.png","country":null,"country_code":null,"name":"小咩肖恩","profile_url":"https://leetcode.cn/u/HazemAllaham/","rank":9,"rating":3490.5,"region":"CN","username":"HazemAllaham"},{"avatar":"https://assets.leetcode.com/users/lev_mark/avatar_1788260844.png","country":"Russia","country_code":"RU","name":"Rengoku","profile_url":"https://leetcode.com/u/lev_mark/","rank":10,"rating":3471.7,"region":"US","username":"lev_mark"},{"avatar":"https://assets.leetcode.com/users/fmota973/avatar_1586010134.png","country":"Brazil","country_code":"BR","name":"fmota","profile_url":"https://leetcode.com/u/fmota/","rank":11,"rating":3453.2,"region":"US","username":"fmota"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":null,"country_code":null,"name":"pandaforever","profile_url":"https://leetcode.com/u/pandaforever/","rank":12,"rating":3443.2,"region":"US","username":"pandaforever"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":"United States","country_code":"US","name":"xiaowuc1","profile_url":"https://leetcode.com/u/xiaowuc1/","rank":13,"rating":3426,"region":"US","username":"xiaowuc1"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/johnkram/avatar_1593402741.png","country":"中国","country_code":null,"name":"汪乐平","profile_url":"https://leetcode.cn/u/zhoupeiyun/","rank":14,"rating":3424.1,"region":"CN","username":"zhoupeiyun"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":"中国","country_code":null,"name":"int65536","profile_url":"https://leetcode.cn/u/Nahin_Imtiaz/","rank":15,"rating":3406.4,"region":"CN","username":"Nahin_Imtiaz"},{"avatar":"https://assets.leetcode.com/users/rainingpeace/avatar_1617292193.png","country":"United States","country_code":"US","name":"Sam Lee","profile_url":"https://leetcode.com/u/qeetcode/","rank":16,"rating":3401.8,"region":"US","username":"qeetcode"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/moransky/avatar_1706518829.png","country":"中国","country_code":null,"name":"白天","profile_url":"https://leetcode.cn/u/Shandse40/","rank":17,"rating":3388.9,"region":"CN","username":"Shandse40"},{"avatar":"https://assets.leetcode.cn/aliyun-lc-upload/users/endlesscheng/avatar_1690721039.png","country":null,"country_code":null,"name":"灵茶山艾府","profile_url":"https://leetcode.cn/u/Carefreejs/","rank":18,"rating":3379.8,"region":"CN","username":"Carefreejs"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":"Singapore","country_code":"SG","name":"jonathanirvings","profile_url":"https://leetcode.com/u/jonathanirvings/","rank":19,"rating":3365.7,"region":"US","username":"jonathanirvings"},{"avatar":"https://assets.leetcode.com/users/avatars/avatar_1655637961.png","country":"Hong Kong","country_code":"HK","name":"wwwwodddd","profile_url":"https://leetcode.com/u/wwwwodddd/","rank":20,"rating":3365.1,"region":"US","username":"wwwwodddd"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":null,"country_code":null,"name":"wifiii","profile_url":"https://leetcode.cn/u/TheWander/","rank":21,"rating":3357.5,"region":"CN","username":"TheWander"},{"avatar":"https://assets.leetcode.com/users/_kevinyang/avatar_1721046496.png","country":"Canada","country_code":"CA","name":"Kai Wen Yang","profile_url":"https://leetcode.com/u/_kevinyang/","rank":22,"rating":3353.9,"region":"US","username":"_kevinyang"},{"avatar":"https://assets.leetcode.com/users/user4169qw/avatar_1586634158.png","country":"Japan","country_code":"JP","name":"emthrm","profile_url":"https://leetcode.com/u/emthrm/","rank":23,"rating":3344,"region":"US","username":"emthrm"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":null,"country_code":null,"name":"arignote","profile_url":"https://leetcode.cn/u/MisterSoandSo/","rank":24,"rating":3343.4,"region":"CN","username":"MisterSoandSo"},{"avatar":"https://assets.leetcode.com/users/default_avatar.jpg","country":null,"country_code":null,"name":"Dong Liu","profile_url":"https://leetcode.com/u/dong_liu/","rank":25,"rating":3324.1,"region":"US","username":"dong_liu"}],"next_page":2,"page":1,"per_page":25,"total_users":903741}}],"seoDescription":"Get LeetCode Global Contest Rankings data via REST or MCP powered by Apish. Pay per call, no subscription. Built to display global rating tables.","updatedAt":"2026-12-03T02:44:06.175Z","usageInstructionsHtml":""}}