# AtCoder on Onekey > 4 endpoints for AtCoder (4 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/atcoder Reference (Markdown): https://onekey.dev/docs/api/atcoder.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 4 mapped AtCoder endpoints return each: - `content.createdAt` (ISO 8601 date): 2 - `content.title` (string): 2 - `entity.id` (string): 2 - `entity.stats.rank` (integer): 2 - `media.durationSeconds` (number): 1 - plus 8 platform-specific fields under `ext.` ## Endpoints ### atcoder.ac_rank An AtCoder user's accepted-problem count and rank (kenkoooo). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/atcoder/ac_rank?user=chokudai` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): AtCoder user id, e.g. chokudai - Fields returned: `entity.stats.rank`, `ext.solved` - Reference: https://onekey.dev/docs/api/atcoder/ac_rank.md ### atcoder.contest_history An AtCoder user's rated contest history. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/atcoder/contest_history?user=chokudai` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): AtCoder user id, e.g. chokudai - Fields returned: `content.title`, `entity.id`, `content.createdAt`, `ext.newRating`, `ext.oldRating`, `ext.place`, `ext.performance`, `ext.rated` - Reference: https://onekey.dev/docs/api/atcoder/contest_history.md ### atcoder.contests All AtCoder contests (kenkoooo problem archive). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/atcoder/contests` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `content.title`, `content.createdAt`, `media.durationSeconds`, `ext.rateChange` - Reference: https://onekey.dev/docs/api/atcoder/contests.md ### atcoder.rated_point_sum An AtCoder user's rated-point-sum and rank (kenkoooo). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/atcoder/rated_point_sum?user=chokudai` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): AtCoder user id, e.g. chokudai - Fields returned: `entity.stats.rank`, `ext.ratedPointSum` - Reference: https://onekey.dev/docs/api/atcoder/rated_point_sum.md ## Sample request ```bash curl "https://api.onekey.dev/v1/atcoder/ac_rank?user=chokudai" \ -H "x-api-key: YOUR_API_KEY" ```