# Alpine Linux Packages Scraper (`parseforge/alpine-linux-packages-scraper`) Actor

Pull the Alpine Linux package index by name, branch, repository, and architecture from pkgs.alpinelinux.org. Each record carries version, license, maintainer, project link, build date, commit hash, and full dependency lists. Handy for SBOM tracking, security audits, and mirror tooling.

- **URL**: https://apify.com/parseforge/alpine-linux-packages-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 96.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 🏔️ Alpine Linux Packages Scraper

> 🚀 **Turn the Alpine Linux package index into clean, structured records.** Query pkgs.alpinelinux.org by name, branch, repository, and architecture and get version, license, maintainer, and dependency data per package.

Pull the official Alpine Linux package database straight from pkgs.alpinelinux.org and drop it into a spreadsheet, a database, or your own tooling. Filter with a glob on the package name, pick a release branch, narrow to a repository and architecture, and get one clean record per package with the metadata that matters: version, license, maintainer, project link, and build date.

Coverage is the live Alpine package index as the site publishes it: the rolling `edge` branch plus the stable `v3.x` releases, across `main`, `community`, and `testing` repositories and every supported CPU architecture. Turn on dependency enrichment and each package also carries its description, install size, origin, commit hash, build time, and full depends, provides, and sub package lists.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Security and DevSecOps teams | Audit versions and licenses, track CVEs |
| Platform and container engineers | Pin base image packages, build SBOMs |
| Distro maintainers and packagers | Watch versions across branches |
| Mirror and tooling operators | Snapshot the index for offline use |

### 📋 What the Alpine Linux Packages Scraper does

This Actor reads the public Alpine Linux package index at pkgs.alpinelinux.org and returns one clean record per package:

- **Listing fields** (always) — name, version, branch, repository, architecture, description, license, project URL, maintainer, build date, and the package page URL.
- **Dependency enrichment** (optional) — turn on `includeDependencies` and each package is enriched from its detail page with install size, origin, commit hash, commit URL, build time, and full `depends`, `provides`, and `subPackages` lists.

You control the package name glob, the branch, the repository, the architecture, and how many records come back. Every record carries a `scrapedAt` timestamp.

### 📊 Data fields

Each record includes: `arch`, `branch`, `buildDate`, `description`, `license`, `maintainer`, `name`, `projectUrl`, `repo`, `scrapedAt`, `url`, `version`. All 12 field names come from a real production run, so what you see here is what lands in your dataset.

### 🚀 How to use

1. Create a free Apify account using [this sign-up link](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the Alpine Linux Packages Scraper.
3. Set the `name` glob, then pick a `branch`, `repo`, and `arch`.
4. Toggle `includeDependencies` if you want commit and dependency data, and set `maxItems`.
5. Click **Start** and grab your results when the run finishes.

### 🔗 Recommended Actors

- [Have I Been Pwned Breaches Catalog Scraper](https://apify.com/parseforge)
- More developer and reference data Actors in the [ParseForge collection](https://apify.com/parseforge)

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge).

> **⚠️ Disclaimer:** independent tool, not affiliated with Alpine Linux. Only publicly available data is collected.

### 🆘 Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our [contact form](https://tally.so/r/BzdKgA) or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our [Discord](https://parseforge.co/discord). It's the best place to get support and suggest new actors.

# Actor input Schema

## `name` (type: `string`):

Glob filter for the package name. Use \* and ? as wildcards, for example 'apk\*', 'python3\*', or '*ssl*'. Use '\*' alone to match every package.

## `branch` (type: `string`):

Alpine release branch to query. 'edge' is the rolling development branch; the v3.x branches are stable releases.

## `repo` (type: `string`):

Repository to query. 'All' searches every repository. 'main' is the core supported set, 'community' is community-maintained, 'testing' is edge-only staging.

## `arch` (type: `string`):

CPU architecture to query. 'All' searches every architecture.

## `includeDependencies` (type: `boolean`):

When enabled, each package is enriched from its detail page with description, install size, origin, commit hash, build time, and full depends and provides lists. This visits one extra page per package, so runs are slower.

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## Actor input object example

```json
{
  "name": "apk*",
  "branch": "edge",
  "repo": "",
  "arch": "x86_64",
  "includeDependencies": false,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "name": "apk*",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/alpine-linux-packages-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "name": "apk*",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/alpine-linux-packages-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "name": "apk*",
  "maxItems": 10
}' |
apify call parseforge/alpine-linux-packages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/alpine-linux-packages-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oJ1tE9v3vW3SwDbJF/builds/3M7qNil8dYfj9N0n3/openapi.json
