Skip to main content
POST
/
api
/
packagist
/
packages
/
popular
/packagist/packages/popular
curl --request POST \
  --url https://api.anysite.io/api/packagist/packages/popular \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300
}
'
[
  {
    "name": "<string>",
    "@type": "PackagistSearchResult",
    "description": "<string>",
    "repository_url": "<string>",
    "download_count": 0,
    "favorite_count": 0,
    "is_virtual": false,
    "is_abandoned": false,
    "abandoned_replacement": "<string>",
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of popular packages to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

name
string
required
@type
string
default:PackagistSearchResult
description
string | null
repository_url
string | null
download_count
integer
default:0
favorite_count
integer
default:0
is_virtual
boolean
default:false
is_abandoned
boolean
default:false
abandoned_replacement
string | null
web_url
string
default:""