Skip to content

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/packageThe current CRAN release of an R package: version, title, license, maintainer and dependencies.
GET/cran/releasesEvery CRAN release of an R package, oldest first.
GET/cran/versionOne CRAN release of an R package, with the metadata that release shipped with.
GET/cran/findCRAN packages whose name contains the text, in index order, with their current version. Page with cursor.
GET/cran/taskViewA CRAN Task View: its title and the packages it recommends for one topic.
GET/cran/downloadsDownloads of one R package from CRAN over a period: its total and the count of each day.

package

GET/v1/cran/package

The current CRAN release of an R package: version, title, license, maintainer and dependencies.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as ggplot2.
e.g. ggplot2
tunnel
string
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.
proxy
string
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.
profileId
string
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
dependsPackageRef[]
namestring
descriptionstring
importsPackageRef[]
namestring
licensestring
maintainerstring
namestring
publishedAtstring
titlestring
urlstring
versionstring
curl "https://api.hoshime.com/v1/cran/package?name=ggplot2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/releases

Every CRAN release of an R package, oldest first.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as ggplot2.
e.g. ggplot2
tunnel
string
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.
proxy
string
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.
profileId
string
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
itemsRelease[]
datestring
titlestring
versionstring
lateststring
namestring
curl "https://api.hoshime.com/v1/cran/releases?name=ggplot2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/version

One CRAN release of an R package, with the metadata that release shipped with.

scope social:read1 unitcached 24 h

Parameters

name
string
required
Package name, such as ggplot2.
e.g. ggplot2
version
string
required
Version, such as 3.5.1.
e.g. 3.5.1
tunnel
string
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.
proxy
string
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.
profileId
string
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
dependsPackageRef[]
namestring
descriptionstring
importsPackageRef[]
namestring
licensestring
maintainerstring
namestring
publishedAtstring
titlestring
urlstring
versionstring
curl "https://api.hoshime.com/v1/cran/version?name=ggplot2&version=3.5.1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/find

CRAN packages whose name contains the text, in index order, with their current version. Page with cursor.

scope social:read1 unitcached 1 hpaginated

Parameters

query
string
required
Text in the package name, such as ggplot.
e.g. ggplot2
limit
integer
Items per page, 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
licensestring
namestring
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/cran/find?query=ggplot2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/taskView

A CRAN Task View: its title and the packages it recommends for one topic.

scope social:read1 unitcached 6 h

Parameters

view
string
required
Task view name, such as Bayesian or TimeSeries.
e.g. Bayesian
tunnel
string
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.
proxy
string
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.
profileId
string
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
namestring
packagesPackageRef[]
namestring
titlestring
curl "https://api.hoshime.com/v1/cran/taskView?view=Bayesian" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/downloads

Downloads of one R package from CRAN over a period: its total and the count of each day.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as ggplot2.
e.g. ggplot2
period
string
last-day, last-week or last-month. Default last-week.
last-daylast-weeklast-month
default last-weeke.g. last-month
tunnel
string
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.
proxy
string
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.
profileId
string
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
dailyDailyCount[]
daystring
downloadsinteger (int64)
endstring
packagestring
startstring
totalinteger (int64)
curl "https://api.hoshime.com/v1/cran/downloads?name=ggplot2&period=last-month" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open