技
CRAN API
6 endpointsDeveloper & TechGlobalsocial:read5 real examples
Returns CRAN R package metadata, release history, specific versions, name search results and Task View package lists.
View as Markdown| GET | /cran/package | The current CRAN release of an R package: version, title, license, maintainer and dependencies. |
| GET | /cran/releases | Every CRAN release of an R package, oldest first. |
| GET | /cran/version | One CRAN release of an R package, with the metadata that release shipped with. |
| GET | /cran/find | CRAN packages whose name contains the text, in index order, with their current version. Page with cursor. |
| GET | /cran/taskView | A CRAN Task View: its title and the packages it recommends for one topic. |
| GET | /cran/downloads | Downloads of one R package from CRAN over a period: its total and the count of each day. |
package
GET
/v1/cran/packageThe current CRAN release of an R package: version, title, license, maintainer and dependencies.
scope social:read1 unitcached 1 h
Parameters
namestring required | Package name, such as ggplot2. e.g. ggplot2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
depends | PackageRef[] |
name | string |
description | string |
imports | PackageRef[] |
name | string |
license | string |
maintainer | string |
name | string |
publishedAt | string |
title | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/cran/package?name=ggplot2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/package?name=ggplot2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/package?name=ggplot2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "depends": [ { "name": "R" } ], "description": "A system for 'declaratively' creating graphics, based on \"The\nGrammar of Graphics\". You provide the data, tell 'ggplot2' how to map\nvariable…", "imports": [ { "name": "cli" }, { "name": "grDevices" } ], "license": "MIT + file LICENSE", "maintainer": "Thomas Lin Pedersen <thomas.pedersen@posit.co>", "name": "ggplot2", "publishedAt": "2026-04-22T09:10:03Z", "title": "Create Elegant Data Visualisations Using the Grammar of Graphics", "url": "https://ggplot2.tidyverse.org,\nhttps://github.com/tidyverse/ggplot2", "version": "4.0.3" }, "meta": { "cached": false, "endpoint": "package", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }
releases
GET
/v1/cran/releasesEvery CRAN release of an R package, oldest first.
scope social:read1 unitcached 1 h
Parameters
namestring required | Package name, such as ggplot2. e.g. ggplot2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
items | Release[] |
date | string |
title | string |
version | string |
latest | string |
name | string |
curl "https://api.hoshime.com/v1/cran/releases?name=ggplot2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/releases?name=ggplot2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/releases?name=ggplot2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "date": "", "title": "An implementation of the Grammar of Graphics", "version": "0.8.2" }, { "date": "", "title": "An implementation of the Grammar of Graphics", "version": "0.8.3" } ], "latest": "4.0.3", "name": "ggplot2" }, "meta": { "cached": false, "endpoint": "releases", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }
version
GET
/v1/cran/versionOne CRAN release of an R package, with the metadata that release shipped with.
scope social:read1 unitcached 24 h
Parameters
namestring required | Package name, such as ggplot2. e.g. ggplot2 |
versionstring required | Version, such as 3.5.1. e.g. 3.5.1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
depends | PackageRef[] |
name | string |
description | string |
imports | PackageRef[] |
name | string |
license | string |
maintainer | string |
name | string |
publishedAt | string |
title | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/cran/version?name=ggplot2&version=3.5.1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/version?name=ggplot2&version=3.5.1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/version?name=ggplot2&version=3.5.1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "depends": [ { "name": "R" } ], "description": "A system for 'declaratively' creating graphics, based on \"The\nGrammar of Graphics\". You provide the data, tell 'ggplot2' how to map\nvariable…", "imports": [ { "name": "cli" }, { "name": "glue" } ], "license": "MIT + file LICENSE", "maintainer": "Thomas Lin Pedersen <thomas.pedersen@posit.co>", "name": "ggplot2", "publishedAt": "2024-04-23T08:00:08Z", "title": "Create Elegant Data Visualisations Using the Grammar of Graphics", "url": "https://ggplot2.tidyverse.org,\nhttps://github.com/tidyverse/ggplot2", "version": "3.5.1" }, "meta": { "cached": false, "endpoint": "version", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }
find
GET
/v1/cran/findCRAN packages whose name contains the text, in index order, with their current version. Page with cursor.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Text in the package name, such as ggplot. e.g. ggplot2 |
limitinteger | Items per page, 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
license | string |
name | string |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/cran/find?query=ggplot2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/find?query=ggplot2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/find?query=ggplot2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "license": "MIT + file LICENSE", "name": "ggplot2", "publishedAt": "2026-04-22T09:10:03Z", "version": "4.0.3" }, { "license": "Apache License 2.0", "name": "ggplot2.utils", "publishedAt": "2025-07-09T09:10:02Z", "version": "0.3.3" } ], "meta": { "cached": false, "endpoint": "find", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }
taskView
GET
/v1/cran/taskViewA CRAN Task View: its title and the packages it recommends for one topic.
scope social:read1 unitcached 6 h
Parameters
viewstring required | Task view name, such as Bayesian or TimeSeries. e.g. Bayesian |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
name | string |
packages | PackageRef[] |
name | string |
title | string |
curl "https://api.hoshime.com/v1/cran/taskView?view=Bayesian" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/taskView?view=Bayesian", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/taskView?view=Bayesian", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "Bayesian", "packages": [ { "name": "ctv" }, { "name": "arm" } ], "title": "CRAN Task View: Bayesian Inference" }, "meta": { "cached": false, "endpoint": "taskView", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }
downloads
GET
/v1/cran/downloadsDownloads of one R package from CRAN over a period: its total and the count of each day.
scope social:read1 unitcached 1 h
Parameters
namestring required | Package name, such as ggplot2. e.g. ggplot2 |
periodstring | last-day, last-week or last-month. Default last-week.last-daylast-weeklast-monthdefault last-weeke.g. last-month |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
daily | DailyCount[] |
day | string |
downloads | integer (int64) |
end | string |
package | string |
start | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/cran/downloads?name=ggplot2&period=last-month" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/cran/downloads?name=ggplot2&period=last-month", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/cran/downloads?name=ggplot2&period=last-month", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "day": "…", "downloads": 0 } ], "end": "…", "package": "…", "start": "…", "total": 0 }, "meta": { "cached": false, "endpoint": "downloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "cran", "requestId": "req_2Xb9kQ…", "units": 1 } }