Skip to main content
POST
/
api
/
cran
/
packages
/cran/packages
curl --request POST \
  --url https://api.anysite.io/api/cran/packages \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "package": "<string>",
  "timeout": 300
}
'
[
  {
    "name": "<string>",
    "alias": "<string>",
    "@type": "CranPackage",
    "package_title": "<string>",
    "version": "",
    "description": "<string>",
    "depends": {},
    "imports": {},
    "suggests": {},
    "enhances": {},
    "linking_to": {},
    "license": "<string>",
    "homepage": "<string>",
    "bugreports_url": "<string>",
    "maintainer": "<string>",
    "maintainer_email": "<string>",
    "author": "<string>",
    "needs_compilation": false,
    "repository": "<string>",
    "published_at": "",
    "md5sum": "<string>",
    "system_requirements": "<string>",
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
package
string
required

Package name (e.g. 'ggplot2', 'data.table') or CRAN package URL

Minimum string length: 1
Examples:

"ggplot2"

"data.table"

"https://cran.r-project.org/web/packages/Rcpp/index.html"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

name
string
required
alias
string
required
@type
string
default:CranPackage
package_title
string | null
version
string
default:""
description
string | null
depends
object
imports
object
suggests
object
enhances
object
linking_to
object
license
string | null
homepage
string | null
bugreports_url
string | null
maintainer
string | null
maintainer_email
string | null
author
string | null
needs_compilation
boolean
default:false
repository
string | null
published_at
string
default:""
md5sum
string | null
system_requirements
string | null
web_url
string
default:""