# Rick and Morty API on Onekey > 4 endpoints for Rick and Morty API (4 stable, 0 beta), 1 to 5 credits each. Category: Entertainment, art & culture. 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/rickandmorty Reference (Markdown): https://onekey.dev/docs/api/rickandmorty.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 Rick and Morty API endpoints return each: - `entity.id` (string): 3 - `entity.name` (string): 3 - `entity.url` (URL): 3 - `entity.status` (string): 2 - `media.thumbnailUrl` (URL): 2 - `content.id` (string): 1 - `content.title` (string): 1 - `content.url` (URL): 1 - `entity.type` (string): 1 - plus 5 platform-specific fields under `ext.` ## Endpoints ### rickandmorty.character Rick and Morty character by id. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/rickandmorty/character?id=1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Character id - Fields returned: `entity.id`, `entity.name`, `entity.status`, `entity.url`, `media.thumbnailUrl`, `ext.species`, `ext.origin` - Reference: https://onekey.dev/docs/api/rickandmorty/character.md ### rickandmorty.characters Search Rick and Morty characters. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/rickandmorty/characters?q=rick` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Character name - Fields returned: `entity.id`, `entity.name`, `entity.status`, `entity.url`, `media.thumbnailUrl`, `ext.species`, `ext.origin` - Reference: https://onekey.dev/docs/api/rickandmorty/characters.md ### rickandmorty.episodes Search Rick and Morty episodes. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/rickandmorty/episodes?q=pilot` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Episode name - Fields returned: `content.id`, `content.title`, `content.url`, `ext.airDate`, `ext.code` - Reference: https://onekey.dev/docs/api/rickandmorty/episodes.md ### rickandmorty.locations Search Rick and Morty locations. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/rickandmorty/locations?q=earth` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Location name - Fields returned: `entity.id`, `entity.name`, `entity.type`, `entity.url`, `ext.dimension` - Reference: https://onekey.dev/docs/api/rickandmorty/locations.md ## Sample request ```bash curl "https://api.onekey.dev/v1/rickandmorty/character?id=1" \ -H "x-api-key: YOUR_API_KEY" ```