{
  "openapi": "3.0.1",
  "info": {
    "title": "Modrinth Scraper: Minecraft Mods, Plugins & Versions",
    "description": "Scrape Modrinth: Minecraft mods, plugins, shaders, resource packs and modpacks with downloads, followers, categories, licenses and per-version file links. Filter by game version and loader. Searches 161,000+ projects. Export CSV, Excel, JSON. No login or API key.",
    "version": "0.1",
    "x-build-id": "8CN02N2z1UWx1Ajbj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~modrinth-minecraft-mods-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-modrinth-minecraft-mods-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/recordsdata~modrinth-minecraft-mods-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-modrinth-minecraft-mods-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/recordsdata~modrinth-minecraft-mods-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-modrinth-minecraft-mods-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "includeSearch": {
            "title": "Search the catalog",
            "type": "boolean",
            "description": "On (default): search or browse the Modrinth catalog using the fields below. Off: skip the search and only fetch the project slugs you list in \"Look up specific projects\".",
            "default": true
          },
          "projectType": {
            "title": "What kind of project?",
            "enum": [
              "mod",
              "plugin",
              "datapack",
              "resourcepack",
              "shader",
              "modpack",
              "minecraft_java_server"
            ],
            "type": "string",
            "description": "Mods (default), plugins, data packs, resource packs, shaders, modpacks or Minecraft Java server listings. Example: Shaders.",
            "default": "mod"
          },
          "searchQuery": {
            "title": "Search words (optional)",
            "type": "string",
            "description": "Keyword matched against project names and descriptions, for example sodium, shaders or magic. Leave empty to browse everything of the selected type, ordered by the sort option.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "downloads",
              "follows",
              "newest",
              "updated",
              "relevance"
            ],
            "type": "string",
            "description": "Most downloaded (default), most followed, newest, recently updated, or keyword relevance. Example: Newest to follow new releases.",
            "default": "downloads"
          },
          "gameVersions": {
            "title": "Minecraft versions (optional)",
            "type": "array",
            "description": "Only projects compatible with at least one of these Minecraft versions, one per line. Example: 1.21.4 and 1.20.1. Snapshots are accepted. Merged with the single version field below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "gameVersion": {
            "title": "Minecraft version, single (older field)",
            "type": "string",
            "description": "Older single-value field kept so saved inputs keep working. Prefer the list above; both are merged. Example: 1.21.4.",
            "default": ""
          },
          "loaders": {
            "title": "Mod loaders (optional)",
            "type": "array",
            "description": "Only projects that support at least one of these loaders, one per line. Example: fabric and neoforge. Also accepts paper, spigot, quilt, iris and more; an unknown name stops the run before any charge and lists valid ones. Merged with the single loader field below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "loader": {
            "title": "Loader, single (older field)",
            "enum": [
              "",
              "fabric",
              "forge",
              "neoforge",
              "quilt",
              "paper",
              "spigot",
              "babric",
              "bta-babric",
              "bukkit",
              "bungeecord",
              "canvas",
              "datapack",
              "folia",
              "geyser",
              "iris",
              "java-agent",
              "legacy-fabric",
              "liteloader",
              "minecraft",
              "modloader",
              "nilloader",
              "optifine",
              "ornithe",
              "purpur",
              "rift",
              "sponge",
              "vanilla",
              "velocity",
              "waterfall"
            ],
            "type": "string",
            "description": "Older single-value field kept so saved inputs keep working. Prefer the list above; both are merged. Leave on Any for no filter.",
            "default": ""
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Only projects with these categories, one per line. Example: optimization, technology, worldgen. Resource packs: 16x, gui. Shaders: realistic, cartoon. An unknown category stops the run before any charge and lists valid names.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoriesMatch": {
            "title": "Categories: match all or any",
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "All = a project needs every category above. Any = one is enough. Only used when Categories is not empty.",
            "default": "all"
          },
          "clientSide": {
            "title": "Works on the client (optional)",
            "enum": [
              "",
              "required",
              "optional",
              "unsupported",
              "unknown"
            ],
            "type": "string",
            "description": "Filter by how the project behaves on the player's client: required, optional, unsupported or unknown. Leave on Any for no filter.",
            "default": ""
          },
          "serverSide": {
            "title": "Works on a server (optional)",
            "enum": [
              "",
              "required",
              "optional",
              "unsupported",
              "unknown"
            ],
            "type": "string",
            "description": "Filter by how the project behaves on a dedicated server: required, optional, unsupported or unknown. Client side required plus server side unsupported finds client-only mods such as Sodium. Leave on Any for no filter.",
            "default": ""
          },
          "author": {
            "title": "Author username (optional)",
            "type": "string",
            "description": "Only projects owned by this Modrinth username, for example modmuss50. Matched ignoring case. Leave empty for all authors.",
            "default": ""
          },
          "license": {
            "title": "License (optional)",
            "type": "string",
            "description": "Only projects under this license. Example: MIT, Apache-2.0, GPL-3.0-only. Matched ignoring case. Leave empty for any license.",
            "default": ""
          },
          "openSourceOnly": {
            "title": "Open source projects only",
            "type": "boolean",
            "description": "Only projects that publish their source code. Off by default.",
            "default": false
          },
          "minDownloads": {
            "title": "Minimum downloads (count)",
            "minimum": 0,
            "type": "integer",
            "description": "Only projects with at least this many downloads. Example: 100000. 0 = no minimum.",
            "default": 0
          },
          "minFollowers": {
            "title": "Minimum followers (count)",
            "minimum": 0,
            "type": "integer",
            "description": "Only projects with at least this many followers. Example: 1000. 0 = no minimum.",
            "default": 0
          },
          "updatedSince": {
            "title": "Updated since (optional)",
            "type": "string",
            "description": "Only projects updated on or after this date. Use YYYY-MM-DD (UTC), today, yesterday, or a relative value such as 7d, 4w, 3m or 1y. Example: 4w.",
            "default": ""
          },
          "createdSince": {
            "title": "Published since (optional)",
            "type": "string",
            "description": "Only projects first published on or after this date. Same formats as Updated since. Example: 2026-01-01. Combine with the Newest sort to follow new releases.",
            "default": ""
          },
          "projectSlugs": {
            "title": "Project slugs or URLs",
            "type": "array",
            "description": "Modrinth slugs or project URLs to fetch as full records (latest game versions, loaders, links, gallery, long description). Example: sodium, fabric-api. Unknown slugs return an uncharged error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeTeam": {
            "title": "Add team and author",
            "type": "boolean",
            "description": "Adds author, organization and team members with roles to each project record. Costs one or two extra requests per slug, no extra charge.",
            "default": false
          },
          "includeVersions": {
            "title": "Add version history",
            "type": "boolean",
            "description": "Adds one row per released version (game versions, loaders, downloads, changelog, files, dependencies) for each slug above. Each version row counts toward Max items.",
            "default": false
          },
          "maxVersionsPerProject": {
            "title": "Max versions per project (rows)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on version rows per project. Example: 50. Only used when version history is on.",
            "default": 50
          },
          "versionGameVersions": {
            "title": "Version rows: Minecraft versions (optional)",
            "type": "array",
            "description": "Only version rows built for at least one of these Minecraft versions, for example 1.21.4. Applies to the version history of the slugs above and nothing else. Leave empty for all versions.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "versionLoaders": {
            "title": "Version rows: loaders (optional)",
            "type": "array",
            "description": "Only version rows built for at least one of these loaders, for example fabric. Applies to the version history of the slugs above and nothing else. Leave empty for all loaders.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "versionTypes": {
            "title": "Version rows: release channels (optional)",
            "type": "array",
            "description": "Only version rows of these channels: release, beta, alpha. One per line. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items (billable rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows returned across search results, project records and version rows. Free plan: 10 items (preview). Paid: up to 1,000,000. Example: 10 for a test, 500 for a full pull.",
            "default": 10
          },
          "includeServerInfo": {
            "title": "Add server details (server listings only)",
            "type": "boolean",
            "description": "For Minecraft Java server listings, adds join address, region, languages, players online and max, game version and verified plays. One extra request per server, no extra charge.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}