# Leetcode

11 endpoints on Leetcode. Every one returns the same response shape and has a flat, published price in credits.

Category: [Developer platforms](https://onekey.dev/docs/categories/developer.md) · [Overview page](https://onekey.dev/platforms/leetcode)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`badges`](https://onekey.dev/docs/api/leetcode/badges.md) | Badges earned by a LeetCode user. | 5 credits | stable |
| [`contest_history`](https://onekey.dev/docs/api/leetcode/contest_history.md) | A LeetCode user's contest participation history. | 5 credits | stable |
| [`contest_rating`](https://onekey.dev/docs/api/leetcode/contest_rating.md) | A LeetCode user's contest rating and ranking. | 1 credit | stable |
| [`contests`](https://onekey.dev/docs/api/leetcode/contests.md) | All LeetCode contests. | 5 credits | stable |
| [`daily_challenge`](https://onekey.dev/docs/api/leetcode/daily_challenge.md) | LeetCode's daily coding challenge. | 1 credit | stable |
| [`language_stats`](https://onekey.dev/docs/api/leetcode/language_stats.md) | Problems solved per language by a LeetCode user. | 5 credits | stable |
| [`problem`](https://onekey.dev/docs/api/leetcode/problem.md) | Fetch a LeetCode problem's public metadata. | 1 credit | stable |
| [`problem_search`](https://onekey.dev/docs/api/leetcode/problem_search.md) | Search LeetCode problems by keyword. | 5 credits | stable |
| [`profile`](https://onekey.dev/docs/api/leetcode/profile.md) | Fetch a LeetCode user's public profile and solved counts. | 1 credit | stable |
| [`recent_solved`](https://onekey.dev/docs/api/leetcode/recent_solved.md) | A LeetCode user's recently accepted submissions. | 5 credits | stable |
| [`skill_stats`](https://onekey.dev/docs/api/leetcode/skill_stats.md) | Advanced-topic problems solved by a LeetCode user. | 5 credits | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
