# TimeAPI on Onekey > 3 endpoints for TimeAPI (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/timeapi Reference (Markdown): https://onekey.dev/docs/api/timeapi.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 TimeAPI endpoints return each: - `entity.category` (string): 2 - `entity.date` (ISO 8601 date): 2 - `entity.id` (string): 2 - `entity.name` (string): 1 - plus 1 platform-specific field under `ext.` ## Endpoints ### timeapi.coordinate_time Current local time at a coordinate. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/timeapi/coordinate_time?lat=38.9&lon=-77.03` with header `x-api-key: YOUR_API_KEY` - Parameters: - `lat` (string, required): Latitude in decimal degrees (-90..90) - `lon` (string, required): Longitude in decimal degrees (-180..180) - Fields returned: `entity.id`, `entity.date`, `entity.category`, `ext.dstActive` - Reference: https://onekey.dev/docs/api/timeapi/coordinate_time.md ### timeapi.zone_time Current local time in an IANA time zone (e.g. Europe/Berlin). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/timeapi/zone_time?zone=Europe%2FBerlin` with header `x-api-key: YOUR_API_KEY` - Parameters: - `zone` (string, required): IANA time zone - Fields returned: `entity.id`, `entity.date`, `entity.category`, `ext.dstActive` - Reference: https://onekey.dev/docs/api/timeapi/zone_time.md ### timeapi.zones All IANA time zones known to TimeAPI. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/timeapi/zones` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.name` - Reference: https://onekey.dev/docs/api/timeapi/zones.md ## Sample request ```bash curl "https://api.onekey.dev/v1/timeapi/coordinate_time?lat=38.9&lon=-77.03" \ -H "x-api-key: YOUR_API_KEY" ```