Packagist Php Scraper
Pricing
from $10.00 / 1,000 results
Packagist Php Scraper
Searches Packagist for PHP packages matching a query and extracts metadata including name, description, download count, favorites, and repository URL.
Packagist PHP Package Scraper
What it does
Searches Packagist for PHP packages matching a query and extracts metadata including name, description, download count, favorites, and repository URL.
This Apify actor automates the collection of data from a public API, extracting structured information and saving it directly into an Apify dataset. It handles pagination automatically, supports configurable result limits, and includes robust error handling with timeouts on all HTTP requests. The actor is designed for reliability: it validates inputs, applies sensible defaults, and produces a fallback record when no results are found, so your downstream workflows never receive an empty dataset.
Why use it
Manually collecting data from web APIs is tedious and error-prone. This actor eliminates that burden by running in the cloud on the Apify platform, where it can be scheduled, integrated with webhooks, or chained with other actors. Whether you are conducting market research, building a knowledge base, monitoring package ecosystems, or feeding data into an analytics pipeline, this actor gives you structured, ready-to-use JSON output with zero browser overhead. It uses lightweight HTTP requests instead of a full browser, which makes it fast and cost-effective.
Input parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
searchQuery | string | Yes | "http client" | The search term to use when querying the API. |
maxResults | integer | No | 100 | Maximum number of results to return (1 to 1000). |
Output data
Each item in the output dataset contains the following fields:
- name - Composer package name (vendor/package).
- description - Short package description.
- url - Packagist page URL.
- repository - Source repository URL.
- downloads - Total download count.
- favers - Number of users who favorited the package.
- packageUrl - Direct Packagist URL for the package.
All string fields are null-checked; missing values are stored as null rather than undefined.
Example output
{"name": "guzzlehttp/guzzle","description": "Guzzle is a PHP HTTP client library","url": "https://packagist.org/packages/guzzlehttp/guzzle","repository": "https://github.com/guzzle/guzzle","downloads": 500000000,"favers": 23000,"packageUrl": "https://packagist.org/packages/guzzlehttp/guzzle"}
Pricing
This actor is priced on a usage basis:
- $0.01 per result returned in the dataset.
- $0.005 per actor start (fixed platform fee).
For example, scraping 500 results would cost approximately $5.005. Apify provides free monthly credits for new users, so you can try the actor at no charge.
More scrapers from brave_paradise
Check out other useful scrapers built by brave_paradise:
Visit the brave_paradise profile on Apify to see the full catalogue of actors.
