# Clojars Clojure & Enterprise JVM Artifact Scraper (`bifrost-data/clojars-jvm-registry-scraper`) Actor

Extract official Clojars Clojure, ClojureScript & JVM artifacts — including download counts, stable vs pre-release SemVer versions, Maven POM licenses, SCM commit tags, direct dependencies, and ready-to-paste deps.edn/Leiningen coordinates with zero API keys.

- **URL**: https://apify.com/bifrost-data/clojars-jvm-registry-scraper.md
- **Developed by:** [SEOK HOON HONG](https://apify.com/bifrost-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 verified clojars jvm artifact records

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/actors/running/actors-in-store.md#pay-per-event

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

## Clojars Clojure & Enterprise JVM Artifact Scraper

> **10-Second Summary**: Generate complete **SBOM license, latest stable version, download count, and Maven POM dependency tables** across **30,000+ Clojars & Enterprise JVM libraries** in **Excel, CSV, or JSON**—merging 4 Clojars & Maven endpoints into one clean row per artifact.
>
> - **Built for FinTech Compliance & Dependency Bots**: Separates stable releases from `-SNAPSHOT` / `-alpha` pre-releases automatically.
> - **Predictable Pay-Per-Event (`$1.60 / 1,000`)**: Snapshot-only test artifacts and filtered rows cost **$0.00**.

Extract structured, schema-verified **Clojure, ClojureScript, Babashka, and Enterprise JVM artifact intelligence** directly from the official **[Clojars](https://clojars.org)** registry APIs and **`repo.clojars.org`** Maven POM manifests — with **zero API keys, zero HTML scraping, and zero proxy overhead**.

Built for **FinTech & JVM Supply-Chain SBOM Teams**, **Clojure Platform Engineers**, **Open-Source License Compliance Auditors**, and **AI Coding / Dependency Upgrade Agents** (inspired by [`babashka/neil`](https://github.com/babashka/neil)).

### Why Use This Clojars Registry & Maven POM Scraper?

Clojars hosts **30,000+ open-source Clojure and JVM libraries** powering global fintech, banking, data-streaming, and cloud-native stacks (`metosin`, `ring`, `babashka`, `http-kit`, `com.taoensso`, `integrant`, `clj-kondo`). However, Clojars's raw search endpoint omits license metadata, source commit SHAs, and dependency trees, while raw Maven `.pom` files lack download telemetry and version release histories.

This Actor unifies **four official keyless Clojars endpoints** in a single fast run:

1. **Clojars Search Index (`/search?format=json`)**: Supports keyword queries and Lucene syntax (`group-id:metosin`, `"openapi"`, `kafka`, `jdbc`).
2. **Clojars Group Namespace API (`/api/groups/{group}`)**: Audits every artifact published under an organization or verified GitHub/domain namespace.
3. **Clojars Artifact Telemetry API (`/api/artifacts/{group}/{jar}`)**: Resolves cumulative downloads, per-version download histories (`recent_versions`), and separates **stable SemVer releases** (`latest_stable_version`) from `-alpha`, `-beta`, `-RC`, and `-SNAPSHOT` pre-releases.
4. **Official Maven POM XML Enrichment (`repo.clojars.org/.../*.pom`)**: Interpolates Maven `${properties}` to extract **declared SPDX/POM licenses**, **Git `<scm>` URLs & immutable commit tags**, and **direct runtime/compile `<dependencies>`** for automated SBOM generation.

### Key Output Fields

Each verified dataset item conforms strictly to JSON Schema Draft-07 and includes:

| Field | Type | Description |
| :--- | :--- | :--- |
| `canonical_coordinate` | `string` | Canonical `group/jar` symbol (e.g., `metosin/reitit`, `babashka/fs`) |
| `resolved_version` | `string` | Preferred stable SemVer version (falls back to latest non-SNAPSHOT release) |
| `latest_version` | `string` | Newest published version on Clojars (including pre-releases) |
| `latest_stable_version` | `string \| null` | Newest version excluding `-SNAPSHOT`, `-alpha`, `-beta`, `-RC`, `-milestone` |
| `total_downloads` | `integer \| null` | Cumulative downloads across all versions on Clojars |
| `latest_version_downloads` | `integer \| null` | Downloads for `resolved_version` |
| `group_namespace_type` | `string` | `github_verified` (`io.github.*`/`com.github.*`), `clojars_verified`, `custom_reverse_domain`, or `legacy_unqualified` |
| `licenses` | `string[]` | License names/URLs extracted from Maven POM `<licenses>` |
| `scm_url` & `scm_tag` | `string \| null` | Normalized HTTPS Git repository URL and POM `<scm><tag>` commit SHA/tag |
| `direct_dependencies` | `object[]` | Direct compile/runtime JVM dependencies (`group_id`, `artifact_id`, `version`, `scope`) |
| `deps_edn_coordinate` | `string` | Ready-to-paste Clojure CLI `deps.edn` coordinate |
| `leiningen_coordinate` | `string` | Ready-to-paste Leiningen `project.clj` vector |
| `maven_coordinate` | `string` | Standard `groupId:artifactId:version` GAV coordinate |
| `cljdoc_url` & `pom_url` | `string` | Direct links to [`cljdoc.org`](https://cljdoc.org) API docs and `.pom` / `.jar` artifacts |

### Transparent Pay-Per-Event Pricing & `$0` Fair-Billing Guarantee

- **Verified Clojars JVM Artifact (`verified-clojars-artifact`)**: **$0.0016 per record** ($1.60 per 1,000 verified artifacts).
- **Zero Charge (`$0`) Skips**:
  - Ephemeral `-SNAPSHOT`-only test uploads (`exclude_snapshot_only: true` by default) are skipped at **$0**.
  - Duplicate coordinates across overlapping queries/groups are deduplicated prior to enrichment at **$0**.
  - Artifacts filtered out by `min_downloads`, `license_filter`, `group_namespace_types`, or `require_scm_url` cost **$0**.

### Example Input: Enterprise Clojure Stack & SBOM License Audit

```json
{
  "groups": ["metosin", "ring", "babashka"],
  "exact_artifacts": ["http-kit/http-kit", "clj-kondo/clj-kondo"],
  "min_downloads": 10000,
  "exclude_snapshot_only": true,
  "deep_enrich_artifact": true,
  "deep_enrich_pom": true,
  "sort_by": "downloads_desc",
  "max_items": 50
}
```

### Non-PII & Commercial Licensing Compliance

- **Data Source**: Public package registry metadata from [Clojars (`clojars-web`, Eclipse Public License)](https://github.com/clojars/clojars-web/blob/main/COPYING) and public Maven POM manifests on `repo.clojars.org`.
- **Privacy by Design**: Personal email addresses in artifact descriptions are automatically redacted, and Maven POM `<developers>` personal names/emails are never stored (`pom_developer_count` integer only).

### More Zero-Maintenance B2B Finance, Procurement & Security Tools by `bifrost-data`

| Actor | Business Use Case | Pricing |
| :--- | :--- | :--- |
| [ISO 20022 pain.001, pacs.008 & camt.053 JSON Bridge](https://apify.com/bifrost-data/iso20022-payment-statement-bridge) | Audit 2026 SEPA/Swiss SPS structured addresses, IBAN Mod-97 & convert MT940 to camt.053 | `$8.00 / 1k` |
| [BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge](https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge) | Reconcile US corporate BAI2 lockbox files (01-99) & OFX/QFX bank or card downloads | `$8.00 / 1k` |
| [cXML SAP Ariba & Coupa Order, ASN & Invoice JSON Bridge](https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge) | Convert SAP Ariba & Coupa cXML Purchase Orders, ASNs & Invoices to JSON or cXML XML | `$8.00 / 1k` |
| [SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge](https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge) | Decode MT103 wire proofs, screen fake MT103 red flags, audit 32A/33B fees & emit pacs.008 | `$8.00 / 1k` |
| [Palo Alto PAN-OS, GlobalProtect & Cortex CVE Scraper](https://apify.com/bifrost-data/paloalto-panos-security-advisories-scraper) | Track PAN-OS CVSS v4/v3 scores, fixed hotfix releases, CISA KEV & Threat IDs | `$2.20 / 1k` |

# Actor input Schema

## `search_queries` (type: `array`):

Search across the Clojars artifact index using keywords or Lucene field syntax (e.g., 'ring', 'openapi', 'kafka', 'jdbc', 'mcp', 'group-id:metosin', '"json schema"'). Leave empty if auditing specific groups or exact artifacts.

## `groups` (type: `array`):

Fetch all artifacts published under specific Clojars groups via /api/groups/{group}: e.g., 'metosin', 'ring', 'babashka', 'com.taoensso', 'integrant', 'http-kit', 'clj-kondo', 'com.github.seancorfield'.

## `exact_artifacts` (type: `array`):

Fetch specific libraries directly by 'group/jar' coordinate, unqualified 'jar' name, Maven 'group:jar', or full https://clojars.org/... URLs (e.g., 'metosin/reitit', 'http-kit/http-kit', 'ring/ring-core', 'https://clojars.org/babashka/fs').

## `min_downloads` (type: `integer`):

Only emit artifacts with at least this many cumulative downloads on Clojars (rows below threshold are skipped at $0).

## `group_namespace_types` (type: `array`):

Filter by Clojars namespace convention: 'github_verified' (io.github.*, com.github.*), 'clojars_verified' (org.clojars.*, net.clojars.*), 'custom_reverse_domain' (com.*, org.*, io.*, dev.*), or 'legacy_unqualified' (single-segment group like ring, metosin).

## `license_filter` (type: `string`):

Case-insensitive filter against POM license names/URLs (e.g., 'Eclipse', 'EPL', 'MIT', 'Apache'). Requires Deep Enrich POM Metadata enabled.

## `require_scm_url` (type: `boolean`):

Supply-chain provenance filter: only emit artifacts that declare a verifiable source repository URL in Clojars homepage or Maven POM <scm>.

## `exclude_snapshot_only` (type: `boolean`):

Automatically skip ephemeral '-SNAPSHOT'-only uploads that have zero non-SNAPSHOT releases ($0 charge).

## `deep_enrich_artifact` (type: `boolean`):

Fetch /api/artifacts/{group}/{jar} concurrently to resolve total downloads, latest stable vs pre-release versions, and per-version download counts.

## `deep_enrich_pom` (type: `boolean`):

Fetch the official Maven .pom XML from repo.clojars.org to extract SPDX/POM license declarations, <scm> Git URL & commit tag, and direct compile/runtime dependencies for SBOM audits.

## `include_test_dependencies` (type: `boolean`):

When enabled, include Maven dependencies with scope 'test' or 'provided' alongside compile/runtime dependencies.

## `max_search_pages_per_query` (type: `integer`):

Maximum number of Clojars search result pages (/search?format=json\&page=N) to traverse per search query.

## `sort_by` (type: `string`):

Order verified Clojars artifacts by total downloads (highest adoption first), newest release timestamp, or canonical coordinate (A-Z).

## `max_items` (type: `integer`):

Maximum number of verified Clojars JVM artifact records to emit in this run.

## Actor input object example

```json
{
  "search_queries": [],
  "groups": [
    "metosin",
    "ring",
    "babashka"
  ],
  "exact_artifacts": [],
  "min_downloads": 0,
  "group_namespace_types": [],
  "license_filter": "",
  "require_scm_url": false,
  "exclude_snapshot_only": true,
  "deep_enrich_artifact": true,
  "deep_enrich_pom": true,
  "include_test_dependencies": false,
  "max_search_pages_per_query": 3,
  "sort_by": "downloads_desc",
  "max_items": 25
}
```

# Actor output Schema

## `artifacts` (type: `string`):

Schema-verified Clojars artifacts enriched with total & per-version download telemetry, POM SPDX licenses, SCM provenance, direct JVM dependencies, and deps.edn / Leiningen / Maven coordinates.

## `runMetrics` (type: `string`):

Execution telemetry including inspected candidates, SNAPSHOT-only free skips, filtered free rows, and Draft-07 validation rate.

# 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 = {
    "groups": [
        "metosin",
        "ring",
        "babashka"
    ],
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("bifrost-data/clojars-jvm-registry-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 = {
    "groups": [
        "metosin",
        "ring",
        "babashka",
    ],
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("bifrost-data/clojars-jvm-registry-scraper").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 '{
  "groups": [
    "metosin",
    "ring",
    "babashka"
  ],
  "max_items": 25
}' |
apify call bifrost-data/clojars-jvm-registry-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bifrost-data/clojars-jvm-registry-scraper"
        }
    }
}
```

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/oRPEWklyibdphbNNT/builds/oOYVhifAFn1OtgjaX/openapi.json
