Skip to main content
POST
/
api
/
packagist
/
packages
/
list
/packagist/packages/list
curl --request POST \
  --url https://api.anysite.io/api/packagist/packages/list \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "vendor": "monolog",
  "package_type": "library"
}
'
[
  {
    "name": "<string>",
    "@type": "PackagistPackageName",
    "package_type": "",
    "repository_url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of package names to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
vendor
string | null

Filter package names by vendor

Example:

"monolog"

package_type
string | null

Filter package names by Composer package type (free-form; any composer.json type is accepted)

Example:

"library"

Response

Successful Response

name
string
required
@type
string
default:PackagistPackageName
package_type
string
default:""
repository_url
string | null