# GamerPower on Onekey > 2 endpoints for GamerPower (2 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/gamerpower Reference (Markdown): https://onekey.dev/docs/api/gamerpower.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped GamerPower endpoints return each: - `content.createdAt` (ISO 8601 date): 2 - `content.id` (string): 2 - `content.text` (string): 2 - `content.title` (string): 2 - `content.url` (URL): 2 - `entity.type` (string): 2 - `media.thumbnailUrl` (URL): 2 - plus 4 platform-specific fields under `ext.` ## Endpoints ### gamerpower.giveaway One GamerPower giveaway by id. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/gamerpower/giveaway?id=525` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Giveaway id - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.createdAt`, `entity.type`, `media.thumbnailUrl`, `ext.worth`, `ext.platforms`, `ext.endsAt`, `ext.claims` - Reference: https://onekey.dev/docs/api/gamerpower/giveaway.md ### gamerpower.giveaways Current free-game and loot giveaways, optionally filtered by platform and type (GamerPower). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/gamerpower/giveaways?platform=pc&type=game` with header `x-api-key: YOUR_API_KEY` - Parameters: - `platform` (string, optional, default pc): Platform filter (pc, steam, epic-games-store, gog, ps5, xbox-one, android, ios, ...) - `type` (string, optional, default game): Giveaway type (game, loot, beta) - Fields returned: `content.id`, `content.title`, `content.text`, `content.url`, `content.createdAt`, `entity.type`, `media.thumbnailUrl`, `ext.worth`, `ext.platforms`, `ext.endsAt`, `ext.claims` - Reference: https://onekey.dev/docs/api/gamerpower/giveaways.md ## Sample request ```bash curl "https://api.onekey.dev/v1/gamerpower/giveaway?id=525" \ -H "x-api-key: YOUR_API_KEY" ```