# Minecraft Mods Modrinth Scraper (`kawsar/minecraft-mods-modrinth-scraper`) Actor

Collect Minecraft mods, modpacks, authors, download counts, and version details from Modrinth. Search by keyword, filter by game version, or look up specific project slugs, then export your results directly into clean JSON, CSV, or Excel files

- **URL**: https://apify.com/kawsar/minecraft-mods-modrinth-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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?

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

## Minecraft Mods (Modrinth) Scraper

![Minecraft Mods (Modrinth) Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/minecraft-mods-modrinth-scraper-cover.png)

Discover Minecraft mods and modpacks from Modrinth with structured data exports. Search projects, explore project categories, retrieve individual project details, or collect project versions. Export useful information such as titles, authors, downloads, supported game versions, categories, and icon URLs in JSON, CSV, or Excel formats.

### What This Actor Does

This actor collects publicly available Minecraft project information from Modrinth. Choose from four modes: search, facets, project, and versions.

Search and facets help discover projects, project mode retrieves details for selected projects, and versions mode collects available versions for specified project slugs. Results include project information and collection timestamps.

### Input Example

```json
{
  "mode": "search",
  "query": "sodium",
  "maxItems": 50,
  "requestDelayMs": 500
}
```

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | Collection mode: `search`, `facets`, `project`, or `versions`. |
| `query` | string | `sodium` | Search text used in search and facets modes. |
| `projectType` | string | `mod` | Project type filter for facets mode, such as `mod` or `modpack`. |
| `gameVersion` | string | `1.20.1` | Minecraft version filter for facets mode. |
| `index` | string | `relevance` | Sorting option for search and facets modes. |
| `projectSlugs` | array | `["sodium"]` | Project slugs used in project and versions modes. |
| `maxItems` | integer | `100` | Maximum number of successful results per run. |
| `requestDelayMs` | integer | `500` | Delay between requests in milliseconds. |
| `userAgent` | string | `ActorResearch/1.0` | User-Agent value used for requests. |
| `timeoutSecs` | integer | `300` | Overall actor run timeout in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout for individual requests in seconds. |
| `proxyConfiguration` | object | Proxy disabled | Optional proxy configuration. |

### Collection Modes

- **Search:** Find projects using a search query.
- **Facets:** Explore projects using project type and Minecraft version filters.
- **Project:** Retrieve project information using project slugs.
- **Versions:** Collect available versions for specified projects.

### Output Example

```json
{
  "project_id": "AANobbMI",
  "project_type": "mod",
  "all_project_types": ["mod"],
  "slug": "sodium",
  "author": "jellysquid3",
  "author_id": "TEZXhE2U",
  "organization": "CaffeineMC",
  "organization_id": "LjcZDkRW",
  "projectTitle": "Sodium",
  "projectDescription": "A high-performance rendering engine replacement for Minecraft, which greatly improves frame rates and reduces micro-stutter.",
  "categories": ["fabric", "neoforge"],
  "display_categories": ["fabric", "neoforge"],
  "versions": ["1.16.3", "1.16.4"],
  "downloads": 242793522,
  "follows": 41673,
  "icon_url": "https://cdn.modrinth.com/data/AANobbMI/295862f4724dc3f78df3447ad6072b2dcd3ef0c9_96.webp",
  "date_created": "2021-01-03T00:53:34.185936+00:00",
  "date_modified": "2026-09-20T21:27:06.329936+00:00",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `project_id` | Unique project identifier. |
| `project_type` | Project type, such as a mod or modpack. |
| `all_project_types` | Project types associated with the project. |
| `slug` | Project URL slug. |
| `author` | Project author's username. |
| `author_id` | Author identifier. |
| `organization` | Associated organization name, when available. |
| `organization_id` | Organization identifier, when available. |
| `projectTitle` | Project title. |
| `projectDescription` | Project description. |
| `categories` | Project category identifiers. |
| `display_categories` | Categories displayed for the project. |
| `versions` | Supported Minecraft versions. |
| `downloads` | Total project downloads. |
| `follows` | Number of project followers. |
| `icon_url` | Project icon URL. |
| `date_created` | Project creation timestamp. |
| `date_modified` | Project modification timestamp. |
| `scrapedAt` | Timestamp when the result was collected. |

### Use Cases

- **Mod Research:** Search Minecraft mods and export structured project information for analysis.
- **Modpack Building:** Discover projects, authors, categories, and supported game versions.
- **Version Tracking:** Collect project version information for selected projects.
- **Catalog Building:** Create searchable catalogs containing project details, download counts, and icons.
- **Dataset Exports:** Save Modrinth project data to JSON, CSV, or Excel for dashboards and research.

### Frequently Asked Questions

**What types of Modrinth projects can I collect?**

You can explore projects such as Minecraft mods and modpacks, depending on the selected collection mode and filters.

**What collection modes are available?**

The actor supports `search`, `facets`, `project`, and `versions` modes.

**Can I collect information about a specific project?**

Yes. Use `project` mode with the relevant project slug in `projectSlugs`.

**Can I collect project versions?**

Yes. Select `versions` mode and provide the project slugs you want to inspect.

**What information does the actor return?**

Project results can include titles, descriptions, authors, organizations, categories, supported game versions, download counts, follower counts, and icon URLs.

**Can I export the results?**

Yes. Export your dataset in JSON, CSV, Excel, and other supported Apify formats.

**Can I schedule recurring collections?**

Yes. Use Apify schedules to run the actor automatically at your preferred intervals.

### Trademark Notice

Minecraft and Modrinth names, logos, and trademarks belong to their respective owners. This actor is an independent data collection tool and does not imply affiliation, sponsorship, or endorsement by Modrinth, Mojang, or Microsoft.

### Is Web Scraping Legal?

This actor collects publicly accessible Modrinth project information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Author usernames, organization details, and other identifying information may be subject to privacy laws such as GDPR and CCPA. Use this information responsibly and only when you have an appropriate lawful basis.
- **Copyright and Licensing:** Project descriptions, icons, images, and other creator materials may be protected by copyright or individual project licences. Review the applicable licence and obtain permission before reproducing or redistributing protected content.
- **Platform Terms and Rate Limits:** Respect Modrinth's terms, content policies, licensing conditions, and reasonable request limits.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your specific use case.

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 collect from the Modrinth public API.

## `query` (type: `string`):

Search text for search and facets modes.

## `projectType` (type: `string`):

Facet project type for facets mode: mod, modpack, resourcepack, shader, plugin, datapack.

## `gameVersion` (type: `string`):

Minecraft version facet for facets mode, for example 1.20.1.

## `index` (type: `string`):

Search sort index: relevance, downloads, follows, newest, updated.

## `projectSlugs` (type: `array`):

Project slugs for project and versions modes.

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

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

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

Milliseconds to wait between requests. Raise if you see HTTP 429.

## `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": "search",
  "query": "sodium",
  "projectType": "mod",
  "gameVersion": "1.20.1",
  "index": "relevance",
  "projectSlugs": [
    "sodium"
  ],
  "maxItems": 100,
  "requestDelayMs": 500,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset 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 = {
    "query": "sodium",
    "projectType": "mod",
    "gameVersion": "1.20.1",
    "projectSlugs": [
        "sodium"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/minecraft-mods-modrinth-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 = {
    "query": "sodium",
    "projectType": "mod",
    "gameVersion": "1.20.1",
    "projectSlugs": ["sodium"],
}

# Run the Actor and wait for it to finish
run = client.actor("kawsar/minecraft-mods-modrinth-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 '{
  "query": "sodium",
  "projectType": "mod",
  "gameVersion": "1.20.1",
  "projectSlugs": [
    "sodium"
  ]
}' |
apify call kawsar/minecraft-mods-modrinth-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/minecraft-mods-modrinth-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/tmhRHKLXk9WfgYbpK/builds/dsgB21c2iwvQwBhTJ/openapi.json
