# JSR on Onekey > 4 endpoints for JSR (4 stable, 0 beta), 1 to 5 credits each. Category: Developer platforms. 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/jsr Reference (Markdown): https://onekey.dev/docs/api/jsr.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 JSR endpoints return each: - `entity.createdAt` (ISO 8601 date): 3 - `package.version` (string): 3 - `entity.description` (string): 2 - `entity.name` (string): 2 - `entity.updatedAt` (ISO 8601 date): 2 - `author.createdAt` (ISO 8601 date): 1 - `author.displayName` (string): 1 - `author.username` (string): 1 - `content.text` (string): 1 - `content.updatedAt` (ISO 8601 date): 1 - `package.yanked` (boolean): 1 - plus 3 platform-specific fields under `ext.` ## Endpoints ### jsr.package Metadata of a JSR package. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/jsr/package?scope=std&name=path` with header `x-api-key: YOUR_API_KEY` - Parameters: - `scope` (string, required): JSR scope (without @) - `name` (string, required): JSR package name - Fields returned: `entity.name`, `entity.description`, `package.version`, `entity.updatedAt`, `entity.createdAt`, `ext.scope`, `ext.repository`, `ext.runtimeCompat` - Reference: https://onekey.dev/docs/api/jsr/package.md ### jsr.scope Metadata of a JSR scope. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/jsr/scope?scope=std` with header `x-api-key: YOUR_API_KEY` - Parameters: - `scope` (string, required): JSR scope (without @) - Fields returned: `author.username`, `content.text`, `author.createdAt`, `content.updatedAt` - Reference: https://onekey.dev/docs/api/jsr/scope.md ### jsr.search Search JSR packages. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/jsr/search?q=path` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `entity.name`, `entity.description`, `package.version`, `entity.updatedAt`, `entity.createdAt`, `ext.scope`, `ext.repository`, `ext.runtimeCompat` - Reference: https://onekey.dev/docs/api/jsr/search.md ### jsr.versions Published versions of a JSR package. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/jsr/versions?scope=std&name=path` with header `x-api-key: YOUR_API_KEY` - Parameters: - `scope` (string, required): JSR scope (without @) - `name` (string, required): JSR package name - Fields returned: `package.version`, `entity.createdAt`, `package.yanked`, `author.displayName` - Reference: https://onekey.dev/docs/api/jsr/versions.md ## Sample request ```bash curl "https://api.onekey.dev/v1/jsr/package?scope=std&name=path" \ -H "x-api-key: YOUR_API_KEY" ```