# Codeforces on Onekey > 8 endpoints for Codeforces (8 stable, 0 beta), 1 to 5 credits each. Category: Developer platforms. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/codeforces Reference (Markdown): https://onekey.dev/docs/api/codeforces.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 8 mapped Codeforces endpoints return each: - `content.createdAt` (ISO 8601 date): 7 - `content.title` (string): 7 - `author.username` (string): 4 - `content.id` (string): 4 - `content.language` (string): 2 - `content.text` (string): 2 - `engagement.likes` (integer): 2 - `entity.id` (string): 2 - `entity.stats.rating` (number): 2 - `entity.status` (string): 2 - `entity.type` (string): 2 - `author.avatarUrl` (URL): 1 - `author.followers` (integer): 1 - `author.id` (string): 1 - `entity.country` (string): 1 - `entity.language` (string): 1 - `entity.stats.rank` (integer): 1 - `listing.company` (string): 1 - `media.durationSeconds` (number): 1 - plus 11 platform-specific fields under `ext.` ## Endpoints ### codeforces.blog_entry Fetch a Codeforces blog entry. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/codeforces/blog_entry?id=79` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Blog entry id, e.g. 79 - Fields returned: `content.id`, `content.title`, `content.text`, `author.username`, `engagement.likes`, `content.createdAt`, `content.language` - Reference: https://onekey.dev/docs/api/codeforces/blog_entry.md ### codeforces.contests All Codeforces contests (upcoming, running, finished). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/contests` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `content.title`, `entity.type`, `entity.status`, `media.durationSeconds`, `content.createdAt` - Reference: https://onekey.dev/docs/api/codeforces/contests.md ### codeforces.problemset Codeforces problems filtered by a tag. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/problemset?tags=dp` with header `x-api-key: YOUR_API_KEY` - Parameters: - `tags` (string, required): Problem tag, e.g. dp - Fields returned: `content.title`, `entity.stats.rating`, `entity.type`, `ext.contestId`, `ext.index` - Reference: https://onekey.dev/docs/api/codeforces/problemset.md ### codeforces.recent_actions Recent Codeforces blog and comment activity. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/recent_actions` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.title`, `author.username`, `content.createdAt`, `content.text`, `ext.commentator` - Reference: https://onekey.dev/docs/api/codeforces/recent_actions.md ### codeforces.user Fetch a Codeforces user's public profile and rating. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/codeforces/user?handle=tourist` with header `x-api-key: YOUR_API_KEY` - Parameters: - `handle` (string, required): Codeforces handle, e.g. tourist - Fields returned: `author.id`, `author.username`, `author.followers`, `author.avatarUrl`, `content.createdAt`, `entity.stats.rating`, `entity.country`, `listing.company`, `ext.maxRating`, `ext.contribution`, `ext.title` - Reference: https://onekey.dev/docs/api/codeforces/user.md ### codeforces.user_blogs Blog entries written by a Codeforces user. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/user_blogs?handle=tourist` with header `x-api-key: YOUR_API_KEY` - Parameters: - `handle` (string, required): Codeforces handle, e.g. tourist - Fields returned: `content.id`, `content.title`, `author.username`, `engagement.likes`, `content.createdAt`, `content.language` - Reference: https://onekey.dev/docs/api/codeforces/user_blogs.md ### codeforces.user_rating A Codeforces user's rating history (per contest). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/user_rating?handle=tourist` with header `x-api-key: YOUR_API_KEY` - Parameters: - `handle` (string, required): Codeforces handle, e.g. tourist - Fields returned: `entity.id`, `content.title`, `entity.stats.rank`, `content.createdAt`, `ext.oldRating`, `ext.newRating` - Reference: https://onekey.dev/docs/api/codeforces/user_rating.md ### codeforces.user_submissions A Codeforces user's most recent submissions. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/codeforces/user_submissions?handle=tourist` with header `x-api-key: YOUR_API_KEY` - Parameters: - `handle` (string, required): Codeforces handle, e.g. tourist - Fields returned: `content.id`, `content.title`, `entity.status`, `entity.language`, `content.createdAt`, `ext.problemRating`, `ext.timeMs`, `ext.memoryBytes`, `ext.contestId` - Reference: https://onekey.dev/docs/api/codeforces/user_submissions.md ## Sample request ```bash curl "https://api.onekey.dev/v1/codeforces/blog_entry?id=79" \ -H "x-api-key: YOUR_API_KEY" ```