# Advice Slip on Onekey > 3 endpoints for Advice Slip (3 stable, 0 beta), 1 to 5 credits each. Category: Fun & utilities. 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/adviceslip Reference (Markdown): https://onekey.dev/docs/api/adviceslip.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 3 mapped Advice Slip endpoints return each: - `content.id` (string): 3 - `content.text` (string): 3 ## Endpoints ### adviceslip.by_id Advice slip by id. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/adviceslip/by_id?id=42` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Slip id - Fields returned: `content.id`, `content.text` - Reference: https://onekey.dev/docs/api/adviceslip/by_id.md ### adviceslip.random A random piece of advice. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/adviceslip/random` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.text` - Reference: https://onekey.dev/docs/api/adviceslip/random.md ### adviceslip.search Search advice slips. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/adviceslip/search?q=love` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Word or short phrase - Fields returned: `content.id`, `content.text` - Reference: https://onekey.dev/docs/api/adviceslip/search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/adviceslip/by_id?id=42" \ -H "x-api-key: YOUR_API_KEY" ```