首页 状态 接口 查询 接入 赞助MCIM 首页 状态 接口 查询 接入 赞助
主题
跟随系统 亮色 暗色
语言
中文English
关闭

接口参考

所有接口的 Base URL 是 https://mod.mcimirror.top · 字段结构与在线试用请看上游的 Swagger 页面

CurseForge

GET/curseforge/ Root endpoint for the Curseforge API

参数

无参数

响应

状态码说明结构
200Curseforge Message

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/'

在 Swagger 中查看

GET/curseforge/v1/categories Curseforge Get Categories by GameId and ClassId

参数

名称位置类型必填说明值
gameId查询integer是ID of the game to filter categories by
classId查询integer否ID of the class to filter categories by (optional)
classesOnly查询boolean否Whether to return only classes (optional)

响应

状态码说明结构
200Categories foundCategoriesResponse
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/categories?gameId=432'

在 Swagger 中查看

POST/curseforge/v1/fingerprints Curseforge Get Fingerprints by Fingerprints

参数

无参数

请求体

FingerprintsBody

响应

状态码说明结构
200Fingerprints foundFingerprintResult
400Bad request
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/curseforge/v1/fingerprints' \
  -H 'Content-Type: application/json' \
  -d '{"fingerprints":[510490952]}'

在 Swagger 中查看

POST/curseforge/v1/fingerprints/{game_id} Curseforge Get Fingerprints by GameId and Fingerprints

参数

名称位置类型必填说明值
game_id路径integer是ID of the game to filter fingerprints by

请求体

FingerprintsBody

响应

状态码说明结构
200Fingerprints foundFingerprintResult
400Bad request
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/curseforge/v1/fingerprints/432' \
  -H 'Content-Type: application/json' \
  -d '{"fingerprints":[510490952]}'

在 Swagger 中查看

POST/curseforge/v1/mods Curseforge Get Mods by ModIds

参数

无参数

请求体

ModsBody

响应

状态码说明结构
200Mods foundModResponse[]
400Bad request
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/curseforge/v1/mods' \
  -H 'Content-Type: application/json' \
  -d '{"modIds":[238222]}'

在 Swagger 中查看

POST/curseforge/v1/mods/files Curseforge Get Files by FileIds

参数

无参数

请求体

FileIdsBody

响应

状态码说明结构
200Files foundFileResponse[]
400Bad request
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/curseforge/v1/mods/files' \
  -H 'Content-Type: application/json' \
  -d '{"fileIds":[6614392]}'

在 Swagger 中查看

GET/curseforge/v1/mods/search Curseforge Search

参数

名称位置类型必填说明值
gameId查询integer是ID of the game to filter mods by (optional)
classId查询integer否ID of the class to filter mods by (optional)
categoryId查询integer否ID of the category to filter mods by (optional)
categoryIds查询string否Comma-separated list of category IDs to filter mods by (optional)
gameVersion查询string否Game version filter (optional)
gameVersions查询string否Comma-separated list of game versions to filter mods by (optional)
searchFilter查询string否Search filter for mod names (optional)
sortField查询string否Field to sort results by (optional)
sortOrder查询string否Order to sort results in (asc/desc) (optional)
modLoaderType查询string否Mod loader type filter (optional)
modLoaderTypes查询string否Comma-separated list of mod loader types to filter mods by (optional)
gameVersionTypeId查询integer否Game version type ID filter (optional)
authorId查询integer否ID of the author to filter mods by (optional)
primaryAuthorId查询integer否ID of the primary author to filter mods by (optional)
slug查询string否Slug of the mod to retrieve (optional)
index查询integer否Zero-based index of the first item to include in the response. The limit is: (index + pageSize <= 10,000).
pageSize查询integer否Number of items to include in the response. The default/maximum value is 50.

响应

状态码说明结构
200Search Result foundSearchResponse
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/mods/search?gameId=432&index=0&pageSize=50'

在 Swagger 中查看

GET/curseforge/v1/mods/{mod_id} Curseforge Get Mod by ModId

参数

名称位置类型必填说明值
mod_id路径integer是ID of the mod to retrieve

响应

状态码说明结构
200Mod foundModResponse
404Mod not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/mods/238222'

在 Swagger 中查看

GET/curseforge/v1/mods/{mod_id}/files Curseforge Get Mod Files by ModId

参数

名称位置类型必填说明值
mod_id路径integer是ID of the mod to retrieve files for
gameVersion查询string否Game version filter (optional)
modLoaderType查询string否Mod loader type filter (optional)
index查询integer否Index for pagination (optional)
pageSize查询integer否Page size for pagination (optional)

响应

状态码说明结构
200Files foundFileResponse[]
404Mod not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/mods/238222/files?index=0&pageSize=50'

在 Swagger 中查看

GET/curseforge/v1/mods/{mod_id}/files/{file_id} Curseforge Get File by ModId and FileId

参数

名称位置类型必填说明值
mod_id路径integer是ID of the mod to which the file belongs
file_id路径integer是ID of the file to retrieve

响应

状态码说明结构
200File foundFileResponse
404File not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/mods/238222/files/8937628'

在 Swagger 中查看

GET/curseforge/v1/mods/{mod_id}/files/{file_id}/download-url Curseforge Get File Download URL by ModId and FileId

参数

名称位置类型必填说明值
mod_id路径integer是ID of the mod
file_id路径integer是ID of the file to retrieve download URL for

响应

状态码说明结构
200Download URL foundDownloadUrlResponse
404File not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/curseforge/v1/mods/238222/files/8937628/download-url'

在 Swagger 中查看

Modrinth

GET/modrinth/ Root endpoint for the Modrinth API

参数

无参数

响应

状态码说明结构
200Modrinth Message

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/'

在 Swagger 中查看

GET/modrinth/v2/project/{project_id} Get a project by its project_id or slug

参数

名称位置类型必填说明值
project_id路径string是ID of the game to filter project

响应

状态码说明结构
200Project foundProject

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/project/sodium'

在 Swagger 中查看

GET/modrinth/v2/project/{project_id}/version Get all versions of a project by its project_id or slug

参数

名称位置类型必填说明值
project_id路径string是ID or slug of the project

响应

状态码说明结构
200Project versions foundVersion[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/project/sodium/version'

在 Swagger 中查看

GET/modrinth/v2/projects Get multiple projects by their project_ids or slugs

参数

名称位置类型必填说明值
ids查询string是The IDs and/or slugs of the projects

响应

状态码说明结构
200Projects FoundProject[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/projects?ids=%5B%22sodium%22%2C%20%22fabric-api%22%5D'

在 Swagger 中查看

GET/modrinth/v2/search Modrinth Search for projects

参数

名称位置类型必填说明值
query查询string否Search query
facets查询string否Facets to filter results
offset查询integer否Offset for pagination
limit查询integer否Limit for pagination
index查询string否Index to sort

响应

状态码说明结构
200Search results foundSearchResponse

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/search?query=sodium&facets=%5B%5B%22categories%3Aforge%22%5D%2C%5B%22versions%3A1.17.1%22%5D%2C%5B%22project_type%3Amod%22%5D%2C%5B%22license%3Amit%22%5D%5D&offset=0&limit=10&index=relevance'

在 Swagger 中查看

GET/modrinth/v2/tag/category Get all categories

参数

无参数

响应

状态码说明结构
200Categories foundCategory[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/tag/category'

在 Swagger 中查看

GET/modrinth/v2/tag/game_version Get all game versions

参数

无参数

响应

状态码说明结构
200Game versions foundGameVersion[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/tag/game_version'

在 Swagger 中查看

GET/modrinth/v2/tag/loader Get all loaders

参数

无参数

响应

状态码说明结构
200Loaders foundLoader[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/tag/loader'

在 Swagger 中查看

GET/modrinth/v2/version/{version_id} Get a specific version by version_id

参数

名称位置类型必填说明值
version_id路径string是ID of the version

响应

状态码说明结构
200Version foundVersion

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/version/ygf8cVZg'

在 Swagger 中查看

GET/modrinth/v2/version_file/{hash} Get a version file by its hash

参数

名称位置类型必填说明值
hash路径string是Hash of the file, sha1 or sha512
algorithm查询string是Hash algorithm used, sha1 or sha512

响应

状态码说明结构
200File foundVersion

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/version_file/d67e66ea4bb2409997b636dae4203d33764cdcc8?algorithm=sha1'

在 Swagger 中查看

POST/modrinth/v2/version_file/{hash}/update Update a version file by its hash with new loaders and game versions

参数

名称位置类型必填说明值
hash路径string是Hash of the file, sha1 or sha512
algorithm查询string是Hash algorithm used, sha1 or sha512

请求体

UpdateItems

响应

状态码说明结构
200File updatedVersion

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/modrinth/v2/version_file/d67e66ea4bb2409997b636dae4203d33764cdcc8/update?algorithm=sha1' \
  -H 'Content-Type: application/json' \
  -d '{"loaders":["fabric"],"game_versions":["1.16.5"]}'

在 Swagger 中查看

POST/modrinth/v2/version_files Get multiple version files by their hashes

参数

无参数

请求体

HashesQuery

响应

状态码说明结构
200Files found{string: Version}

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/modrinth/v2/version_files' \
  -H 'Content-Type: application/json' \
  -d '{"hashes":["d67e66ea4bb2409997b636dae4203d33764cdcc8"],"algorithm":"sha1"}'

在 Swagger 中查看

POST/modrinth/v2/version_files/update Update multiple version files by their hashes with new loaders and game versions

参数

无参数

请求体

MultiUpdateItems

响应

状态码说明结构
200Versions FoundVersion[]

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/modrinth/v2/version_files/update' \
  -H 'Content-Type: application/json' \
  -d '{"hashes":["d67e66ea4bb2409997b636dae4203d33764cdcc8"],"algorithm":"sha1","loaders":["fabric"],"game_versions":["1.16.5"]}'

在 Swagger 中查看

GET/modrinth/v2/versions Get multiple versions by their version_ids

参数

名称位置类型必填说明值
ids查询string是The IDs of the versions

响应

状态码说明结构
200Versions foundVersion[]

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/modrinth/v2/versions?ids=%5B%22RncWhTxD%22%2C%20%22ygf8cVZg%22%5D'

在 Swagger 中查看

Translate

GET/translate/curseforge已废弃 Get CurseForge translation by mod ID

参数

名称位置类型必填说明值
modId查询integer是Mod ID of the CurseForge mod

响应

状态码说明结构
200Translation foundCurseForgeTranslationResponse
404Translation not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/translate/curseforge?modId=238222'

在 Swagger 中查看

POST/translate/curseforge Get CurseForge translations in batch by mod IDs

参数

无参数

请求体

CurseForgeTranslationRequest

响应

状态码说明结构
200Translations foundCurseForgeTranslationResponse[]
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/translate/curseforge' \
  -H 'Content-Type: application/json' \
  -d '{"modids":[238222]}'

在 Swagger 中查看

GET/translate/curseforge/{mod_id} Get CurseForge translation by mod ID

参数

名称位置类型必填说明值
mod_id路径integer是Mod ID of the CurseForge mod

响应

状态码说明结构
200Translation foundCurseForgeTranslationResponse
404Translation not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/translate/curseforge/238222'

在 Swagger 中查看

GET/translate/modrinth已废弃 Get Modrinth translation by project ID

参数

名称位置类型必填说明值
project_id查询string是Project ID of the Modrinth project

响应

状态码说明结构
200Translation foundModrinthTranslationResponse
404Translation not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/translate/modrinth?project_id=P7dR8mSH'

在 Swagger 中查看

POST/translate/modrinth Get Modrinth translations in batch by project IDs

参数

无参数

请求体

ModrinthTranslationRequest

响应

状态码说明结构
200Translations foundModrinthTranslationResponse[]
500Internal server error

示例请求

改上面的值,命令会跟着变

curl -X POST 'https://mod.mcimirror.top/translate/modrinth' \
  -H 'Content-Type: application/json' \
  -d '{"project_ids":["P7dR8mSH"]}'

在 Swagger 中查看

GET/translate/modrinth/{project_id} Get Modrinth translation by project ID

参数

名称位置类型必填说明值
project_id路径string是Project ID of the Modrinth project

响应

状态码说明结构
200Translation foundModrinthTranslationResponse
404Translation not found
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/translate/modrinth/P7dR8mSH'

在 Swagger 中查看

File CDN

GET/avatars/thumbnails/{modid1}/{modid2}/{w}/{h}/{file_name} Curseforge Avatar CDN endpoint (thumbnails)

参数

名称位置类型必填说明值
modid1路径string是ModId segment 1
modid2路径string是ModId segment 2
w路径string是Thumbnail width
h路径string是Thumbnail height
file_name路径string是Thumbnail file name

响应

状态码说明结构
302Curseforge Avatar Thumbnail Redirect
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/avatars/thumbnails/29/69/256/256/635838945588716414.jpeg'

在 Swagger 中查看

GET/avatars/{modid1}/{modid2}/{file_name} Curseforge Avatar CDN endpoint (flat)

参数

名称位置类型必填说明值
modid1路径string是ModId segment 1 of avatar path
modid2路径string是ModId segment 2 of avatar path
file_name路径string是Avatar file name

响应

状态码说明结构
302Curseforge Avatar Redirect
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/avatars/29/69/635838945588716414.jpeg'

在 Swagger 中查看

GET/data/{project_id}/versions/{version_id}/{file_name} Modrinth File CDN endpoint

参数

名称位置类型必填说明值
project_id路径string是Project ID of the Modrinth project
version_id路径string是Version ID of the Modrinth project
file_name路径string是Name of the file to be downloaded

响应

状态码说明结构
302Modrinth File Redirect
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/data/AANobbMI/versions/ygf8cVZg/sodium-fabric-0.5.11+mc1.20.1.jar'

在 Swagger 中查看

GET/data/{project_id}/{file_name} Modrinth Icon CDN

参数

名称位置类型必填说明值
project_id路径string是Project ID of the Modrinth project
file_name路径string是Icon file name

响应

状态码说明结构
302Modrinth Icon Redirect
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/data/AANobbMI/295862f4724dc3f78df3447ad6072b2dcd3ef0c9_96.webp'

在 Swagger 中查看

GET/files/{file_id1}/{file_id2}/{file_name} Curseforge File CDN endpoint

参数

名称位置类型必填说明值
file_id1路径integer是First part of the Curseforge file ID
file_id2路径integer是Second part of the Curseforge file ID
file_name路径string是Name of the file to be downloaded

响应

状态码说明结构
302Curseforge File Redirect
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/files/8937/628/jei-26.1.2-neoforge-29.40.0.101.jar'

在 Swagger 中查看

Common

GET/healthz Health check endpoint for the MCIM API

参数

无参数

响应

状态码说明结构
200Health check message

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/healthz'

在 Swagger 中查看

GET/statistics Get statistics for CurseForge and Modrinth

参数

名称位置类型必填说明值
curseforge查询boolean否Include CurseForge statistics
modrinth查询boolean否Include Modrinth statistics
translate查询boolean否Include translation statistics

响应

状态码说明结构
200Statistics retrieved successfullyStatisticsResponse
500Internal server error

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/statistics'

在 Swagger 中查看

Root

GET/ Root endpoint for the MCIM API

参数

无参数

响应

状态码说明结构
200Welcome message

示例请求

改上面的值,命令会跟着变

curl 'https://mod.mcimirror.top/'

在 Swagger 中查看