# Clojars Clojure Packages Scraper (`parseforge/clojars-packages-scraper`) Actor

Scrapes Clojure packages from Clojars by search term or exact artifact coordinates. Returns each package as a flat row with group ID, artifact ID, version, description, and dependency coordinates.

- **URL**: https://apify.com/parseforge/clojars-packages-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% 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/actors/running/actors-in-store.md#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](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Clojars Clojure Packages Scraper

**Scrape Clojure packages from Clojars by search term or exact artifact coordinates, up to a million per run.** Every package comes with its group ID, artifact ID, latest version, description, and dependency coordinates. No API key required. Export to JSON, CSV, Excel, or XML.

Clojars is the community repository for Clojure and JVM libraries, but browsing it manually or wiring up its API for bulk data collection slows down dependency research. This Actor reads the public package feeds directly, letting you search by keyword or fetch exact artifacts by their coordinates, and returns each match in one fixed schema.

| Who uses it | What they scrape Clojars for |
|---|---|
| Clojure developers | Audit dependencies across their projects for outdated or vulnerable libraries. |
| Software architects | Discover which Clojure libraries exist for a given problem domain before starting a new service. |
| DevOps engineers | Build an internal registry of approved Clojure artifacts with their latest versions. |
| Security researchers | Monitor newly published packages for supply-chain risks. |

### What it does

This Actor collects Clojure packages from Clojars by search term or exact artifact coordinates and returns each one as a flat row.

- 🔍 **Search mode:** Provide a keyword like http, ring, or json to browse matching libraries.
- 📦 **Exact artifact mode:** List precise coordinates such as ring or clj-http to fetch full detail for each.
- 📊 **Flat row output:** Every package returns with group ID, artifact ID, version, description, and dependency coordinates in a consistent schema.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Clojars data

**📋 Audit project dependencies.**

A Clojure developer feeds a list of artifact coordinates from their project.clj or deps.edn file and gets back the latest version and metadata for each to spot outdated libraries.

**🔎 Discover libraries by keyword.**

A software architect searches for "http" or "json" to find all relevant Clojure packages on Clojars before choosing one for a new microservice.

**🏗️ Build an internal package registry.**

A DevOps engineer runs the Actor weekly with a curated list of approved artifacts and exports the results to a CSV that feeds the company's internal tooling.

**🛡️ Monitor new package releases.**

A security researcher runs a broad search regularly and filters the output for newly published packages to review for potential supply-chain threats.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Reads public Clojars feeds directly, no registration or authentication needed. |
| **Flexible input** | Search broadly by keyword or target specific artifacts by their exact coordinates. |
| **Scalable collection** | Collect up to a million packages in a single run for large-scale dependency analysis. |
| **Fixed schema** | Every package arrives in the same flat structure, ready for analysis or a database. |

### How it compares

This Actor focuses on flexible input modes and high-volume collection, while the alternatives listed below offer complementary features like version history or download counts.

| Feature | ParseForge | Clojars Scraper - Clojure & JVM Package Metadata and Versions | Clojars Packages Scraper - Clojure Library Data |
|---|---|---|---|
| Search by keyword | Yes | Not listed | Yes |
| Fetch by exact artifact coordinates | Yes | Not listed | Not listed |
| Collect up to 1,000,000 packages per run | Yes | Not listed | Not listed |
| Version history for each package | Not listed | Yes | Not listed |
| Download counts | Not listed | Yes | Not listed |
| No API key required | Yes | Yes | Not listed |

### Configure the run

Drive the Actor from a search term or a list of exact artifact coordinates, and set a maximum number of packages to collect per run. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "searchTerm": "http",
 "artifacts": [],
 "maxItems": 10
}
```

A larger pull:

```json
{
 "searchTerm": "http",
 "artifacts": [],
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Clojars Clojure Packages Scraper](https://apify.com/parseforge/clojars-packages-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Clojars through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/clojars-packages-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results for my search term?**

Check that your search term matches package names or descriptions on Clojars. Try a broader or more common keyword like "http" or "json". Also verify that maxItems is set to a number greater than zero.

**Why does the Actor ignore my search term when I list exact artifacts?**

When you provide exact artifact coordinates in the artifacts field, the Actor fetches only those and ignores the search term. Clear the artifacts list if you want to use search mode.

**Why are some of my exact artifacts not returning data?**

Verify that the artifact coordinates are spelled correctly and exist on Clojars. Use the format "group/artifact" like "ring-clojure/ring" or "artifact" like "ring" if the group matches the artifact name.

**The Actor stopped before collecting all packages I expected.**

Check the maxItems setting. The Actor stops when it reaches that number. Increase it up to 1,000,000 if you need more packages.

**Can I get historical version data for a package?**

This Actor returns the latest version and metadata for each package. For full version history, you would need a different Actor that crawls individual package pages.

### FAQ

| Question | Answer |
|---|---|
| Do I need a Clojars account or API key to use this Actor? | No. This Actor reads the public Clojars feeds directly, so no registration, API key, or authentication is required. |
| What is the difference between search mode and exact artifact mode? | Search mode lets you provide a keyword like "http" and returns all matching packages. Exact artifact mode takes specific coordinates such as "ring" or "clj-http" and fetches full detail for only those artifacts. |
| What data fields does each package row include? | Each row includes the group ID, artifact ID, latest version, description, and dependency coordinates. The exact fields are shown in the sample output on this page. |
| How many packages can I collect in one run? | You can set the maximum up to 1,000,000 packages per run. The Actor will stop when it reaches that limit or when there are no more matching packages. |
| Can I scrape all packages from Clojars? | You can run a broad search with a common term or leave the search term empty to browse, and set a high maxItems value to collect a large portion of the repository. |
| What export formats are supported? | You can export your dataset in JSON, CSV, Excel, or XML formats from the Apify platform. |
| Does this Actor handle Clojure and JVM packages? | Yes. Clojars hosts both Clojure libraries and JVM artifacts, and this Actor collects metadata for any package available on the repository. |
| Can I schedule this Actor to run automatically? | Yes. You can set up a scheduled run in Apify to execute the Actor daily, weekly, or on any custom interval to keep your package data up to date. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Clojars. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `searchTerm` (type: `string`):

Search Clojars for libraries matching this term (for example http, ring, json). Used when no exact artifacts are listed below.

## `artifacts` (type: `array`):

Optional. Exact Clojars coordinates to fetch full detail for, e.g. ring or ring-clojure/ring or clj-http. When set, this overrides the search term.

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

How many packages to collect per run.

## Actor input object example

```json
{
  "searchTerm": "http",
  "artifacts": [],
  "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 = {
    "searchTerm": "http",
    "artifacts": [],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/clojars-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 = {
    "searchTerm": "http",
    "artifacts": [],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/clojars-packages-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 '{
  "searchTerm": "http",
  "artifacts": [],
  "maxItems": 10
}' |
apify call parseforge/clojars-packages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/clojars-packages-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/zEFPMaRLNadOwgLTb/builds/0iSEWo4lUVdgRYDic/openapi.json
