---
title: "Packagist API: Popular packages | Perceptlayer"
description: "The most downloaded PHP packages on Packagist, with total downloads and favourites."
url: https://perceptlayer.com/apis/packagist/popular
---

[APIs](https://perceptlayer.com/apis) / [Packagist](https://perceptlayer.com/apis/packagist) / Popular packages

# Packagist: Popular packages

The most downloaded PHP packages on Packagist, with total downloads and favourites.

GET `/v1/packagist/popular`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `page` | integer | Optional | Any Results page, from 1. |
| `per_page` | integer | Optional | Any Results per page, 1 to 100. Default 15. |

## Example request

Packagist

GET /v1/packagist/popular?per\_page=10 

```
{
  "success": true,
  "data": {
    "total": 484763,
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "name": "symfony/deprecation-contracts",
        "description": "A generic function and convention to trigger deprecation notices",
        "downloads": 1037084657,
        "favers": 2104,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/deprecation-contracts"
      },
      {
        "name": "symfony/polyfill-mbstring",
        "description": "Symfony polyfill for the Mbstring extension",
        "downloads": 1373542332,
        "favers": 7830,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/polyfill-mbstring"
      },
      {
        "name": "symfony/console",
        "description": "Eases the creation of beautiful and testable command line interfaces",
        "downloads": 1289416503,
        "favers": 9990,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/console"
      }
    ]
  },
  "meta": {
    "request_id": "req_47a808b038604642973e36e18cfe5af9",
    "credits_charged": 1,
    "credits_remaining": 1969
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/packagist?try=popular#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 6 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `name` | string |
| `description` | string |
| `downloads` | integer |
| `favers` | integer |
| `abandoned` | boolean |
| `url` | url |
