# Speedrun.com on Onekey > 12 endpoints for Speedrun.com (12 stable, 0 beta), 1 to 5 credits each. Category: Gaming. 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/speedrun Reference (Markdown): https://onekey.dev/docs/api/speedrun.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 12 mapped Speedrun.com endpoints return each: - `content.createdAt` (ISO 8601 date): 7 - `author.id` (string): 6 - `content.id` (string): 5 - `content.url` (URL): 5 - `entity.id` (string): 5 - `entity.name` (string): 5 - `entity.url` (URL): 5 - `media.durationSeconds` (number): 5 - `entity.category` (string): 4 - `content.text` (string): 3 - `entity.slug` (string): 3 - `entity.year` (integer): 3 - `author.url` (URL): 2 - `author.username` (string): 2 - `media.thumbnailUrl` (URL): 2 - `media.url` (URL): 2 - `entity.country` (string): 1 - `entity.status` (string): 1 - `entity.type` (string): 1 - plus 6 platform-specific fields under `ext.` ## Endpoints ### speedrun.game Fetch a speedrun.com game. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/speedrun/game?game=smb1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `game` (string, required): Game id or abbreviation, e.g. smb1 - Fields returned: `entity.id`, `entity.name`, `entity.slug`, `entity.url`, `entity.year`, `content.createdAt`, `media.thumbnailUrl`, `ext.boosts` - Reference: https://onekey.dev/docs/api/speedrun/game.md ### speedrun.game_categories List the run categories of a speedrun.com game. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/game_categories?game=smb1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `game` (string, required): Game id or abbreviation, e.g. smb1 - Fields returned: `entity.id`, `entity.name`, `entity.url`, `entity.type`, `content.text`, `ext.players` - Reference: https://onekey.dev/docs/api/speedrun/game_categories.md ### speedrun.game_records World records of a speedrun.com game, per category. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/game_records?game=smb1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `game` (string, required): Game id or abbreviation, e.g. smb1 - Fields returned: `entity.url`, `entity.category`, `content.id`, `content.url`, `media.durationSeconds`, `content.createdAt`, `author.id` - Reference: https://onekey.dev/docs/api/speedrun/game_records.md ### speedrun.games_search Search speedrun.com games by name. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/games_search?q=mario` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Game name - Fields returned: `entity.id`, `entity.name`, `entity.slug`, `entity.url`, `entity.year`, `media.thumbnailUrl` - Reference: https://onekey.dev/docs/api/speedrun/games_search.md ### speedrun.latest_runs Most recently verified speedrun.com runs. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/latest_runs` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.url`, `entity.category`, `content.createdAt`, `media.durationSeconds`, `content.text`, `media.url`, `author.id`, `ext.gameId` - Reference: https://onekey.dev/docs/api/speedrun/latest_runs.md ### speedrun.leaderboard Top runs of a speedrun.com game category. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/leaderboard?game=smb1&category=any` with header `x-api-key: YOUR_API_KEY` - Parameters: - `game` (string, required): Game id or abbreviation, e.g. smb1 - `category` (string, required): Category id or slug, e.g. any - Fields returned: `content.id`, `content.url`, `media.durationSeconds`, `content.createdAt`, `author.id`, `media.url`, `ext.place` - Reference: https://onekey.dev/docs/api/speedrun/leaderboard.md ### speedrun.platforms List speedrun.com platforms. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/platforms` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `entity.year` - Reference: https://onekey.dev/docs/api/speedrun/platforms.md ### speedrun.run Fetch a single speedrun.com run. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/speedrun/run?id=me5ggo2m` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Run id - Fields returned: `content.id`, `content.url`, `entity.category`, `content.createdAt`, `media.durationSeconds`, `content.text`, `entity.status`, `author.id`, `ext.gameId` - Reference: https://onekey.dev/docs/api/speedrun/run.md ### speedrun.series Fetch a speedrun.com series. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/speedrun/series?series=mario` with header `x-api-key: YOUR_API_KEY` - Parameters: - `series` (string, required): Series id or abbreviation, e.g. mario - Fields returned: `entity.id`, `entity.name`, `entity.slug`, `entity.url` - Reference: https://onekey.dev/docs/api/speedrun/series.md ### speedrun.user Fetch a speedrun.com user profile. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/speedrun/user?user=zoton2` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): speedrun.com user name or id, e.g. zoton2 - Fields returned: `author.id`, `author.username`, `author.url`, `content.createdAt`, `entity.country`, `ext.role`, `ext.pronouns` - Reference: https://onekey.dev/docs/api/speedrun/user.md ### speedrun.user_personal_bests A speedrun.com user's personal-best runs. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/user_personal_bests?user=zoton2` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): speedrun.com user name or id, e.g. zoton2 - Fields returned: `content.id`, `content.url`, `entity.category`, `media.durationSeconds`, `content.createdAt`, `ext.place`, `ext.gameId` - Reference: https://onekey.dev/docs/api/speedrun/user_personal_bests.md ### speedrun.users_search Search speedrun.com users by name. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/speedrun/users_search?q=zoton` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): User name - Fields returned: `author.id`, `author.username`, `author.url`, `ext.role` - Reference: https://onekey.dev/docs/api/speedrun/users_search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/speedrun/game?game=smb1" \ -H "x-api-key: YOUR_API_KEY" ```