# Debian Sources Package Search (`bigibyte/debian-sources-package-search`) Actor

Search Debian source packages via sources-debian-org. Pass queries or URLs, cap items, and export clean JSON, CSV, or Excel datasets for dependency research and tooling.

- **URL**: https://apify.com/bigibyte/debian-sources-package-search.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Debian Sources Package Search

![Debian Sources Package Search cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/debian-sources-package-search-cover.png)

The **Debian Sources Package Search** helps developers, Linux enthusiasts, and researchers discover Debian source packages using keyword-based searches. Find exact and related package matches, collect package names and source links, and export organized results as JSON, CSV, or Excel for development workflows, dependency research, and package analysis.

### What This Actor Does

This actor searches the Debian Sources package catalog using one or more search queries or supplied search URLs.

It retrieves matching package names, identifies whether each result is an exact or fuzzy match, and generates a direct Debian Sources page URL for each package.

### Input Configuration

You can search for Debian source packages by providing one or more query fragments.

#### Input Example

```json
{
  "mode": "list",
  "queries": ["python"],
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

#### Using Custom Search URLs

You can also provide search URLs through `startUrls` instead of generating search URLs from the `queries` array.

```json
{
  "mode": "list",
  "queries": "python",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

#### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode. Currently supports `list`. |
| `queries` | Array | Search terms or package name fragments. |
| `startUrls` | Array | Optional search URLs to process instead of building URLs from `queries`. |
| `maxItems` | Integer | Maximum number of output records per run. Hard maximum: 1,000. |
| `requestDelayMs` | Integer | Delay between requests in milliseconds. |

### What Data Does This Actor Extract?

Each successful result contains package identification and source information.

#### Extracted Data Fields

| Field | Type | Description |
|---|---|---|
| `url` | String | Direct Debian Sources page URL for the package. |
| `packageName` | String | Name of the matching Debian source package. |
| `matchKind` | String | Indicates whether the result is an `exact` or fuzzy match. |
| `scrapedAt` | String | Collection timestamp in ISO 8601 format. |

#### Output Example

```json
{
  "url": "https://sources.debian.org/src/python/",
  "packageName": "python",
  "matchKind": "exact",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Package Discovery:** Find Debian source packages matching a keyword without manually browsing the package catalog.
- **Dependency Research:** Discover related package names for software audits, migrations, and development research.
- **Package Catalog Monitoring:** Schedule recurring searches and maintain updated snapshots of selected package results.
- **Development Workflows:** Collect package names and source links for build, documentation, and software maintenance workflows.
- **Research Datasets:** Export package search results into spreadsheets for further analysis.
- **Linux Package Research:** Explore available Debian source packages when investigating software compatibility and package availability.

### Usage and Limits

- The actor currently supports the `list` collection mode.
- Searches can be provided through the `queries` array or optional `startUrls`.
- Each query or supplied search URL generates an individual search request.
- Exact and fuzzy package matches are included in the collected results.
- Duplicate package names are skipped within a run.
- The maximum collection limit is 1,000 records per run.
- Processing stops when `maxItems` is reached.
- Requests are paced to reduce unnecessary load on the source.
- Debian Sources is a public read-only service. Keep request volumes reasonable and respect its usage guidelines.

### Frequently Asked Questions

**1. What is the Debian Sources Package Search used for?**

It helps developers and researchers find Debian source packages using keyword searches and collect their names and corresponding source page links.

**2. Can I search for multiple package names at once?**

Yes. Provide multiple search fragments in the `queries` array. The actor processes each query and collects matching package results.

**3. What is the difference between exact and fuzzy matches?**

An exact match identifies a package matching the search term directly. A fuzzy match identifies a related result returned by the search. The `matchKind` field distinguishes between these result types.

**4. Can I provide my own search URLs?**

Yes. You can use `startUrls` to supply Debian Sources search URLs instead of generating them from the `queries` array.

**5. What information is included in the output?**

Each successful record includes the package name, match type, direct package page URL, source search URL, and collection timestamp.

**6. How many packages can I collect per run?**

You can collect up to 1,000 records per run. Use `maxItems` to control the number of results you want.

**7. Can I export the results?**

Yes. You can export the collected dataset in JSON, CSV, Excel, and other formats supported by Apify.

**8. Can I schedule recurring searches?**

Yes. Use Apify Schedules to run the actor periodically and maintain updated package search datasets.

### Related Tools

Explore other BigiByte tools for discovering software resources and technical information:

- **Bitbucket Repositories Scraper** – Collect public repository information from Bitbucket workspaces.
- **GNOME Shell Extensions Scraper** – Discover public GNOME Shell extensions and their available metadata.
- **Microsoft Store Apps Scraper** – Collect application listings and details from the Microsoft Store.
- **Activepieces Integrations (Pieces) Scraper** – Explore integrations, actions, and triggers from the Activepieces catalog.

BigiByte builds custom web scrapers, data extraction tools, and automation solutions tailored to your development and business requirements.

Visit [BigiByte](https://bigibyte.com) to explore our services or discuss your next project.

### Trademark Notice

Debian and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the source of the collected package information and does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

This actor is an independent data collection tool and is not affiliated with, endorsed by, or sponsored by Debian or its owners. It retrieves publicly available package information for research and development purposes. Users are responsible for complying with applicable laws, source usage guidelines, and relevant licensing or attribution requirements when using the collected data.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal data:** If collected information contains personal data, privacy laws such as GDPR and CCPA may apply. Use an appropriate lawful basis and avoid collecting unnecessary information.
- **Copyrighted content:** Package descriptions, documentation, and other creative materials may be protected by copyright. Respect applicable licences and attribution requirements.
- **Platform terms and rate limits:** Follow Debian Sources' usage guidelines and reasonable request limits. Avoid excessive requests that could disrupt the service.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to fetch. List searches Debian source packages via the public sources.debian.org API.

## `queries` (type: `array`):

One or more package name fragments. Each query becomes one API request. Ignored when startUrls is set. Leave empty to use the default query python.

## `startUrls` (type: `array`):

Optional Debian Sources API search URLs to parse instead of building ones from queries. Example: https://sources.debian.org/api/search/python/

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait before each request. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "list",
  "queries": [
    "python"
  ],
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Package search rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "queries": [
        "python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/debian-sources-package-search").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 = { "queries": ["python"] }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/debian-sources-package-search").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "queries": [
    "python"
  ]
}' |
apify call bigibyte/debian-sources-package-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/debian-sources-package-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZYPywbw7X7pbSGyyZ/builds/9uNOZez1Vns5EzJG0/openapi.json
