Search projects
GET /search
Parameters
Query Parameters
gravestonesThe query to search for
Facets are an essential concept for understanding how to filter out results.
These are the most commonly used facet types:
project_typeall_project_types(matches against every project type across all of the project’s versions, not just the primary/version-specific type)categories(loaders are lumped in with categories in search)versionsopen_sourceenvironment(one of the following values)client_and_serverclient_onlyclient_only_server_optionalsingleplayer_onlyserver_onlyserver_only_client_optionaldedicated_server_onlyclient_or_serverclient_or_server_prefers_bothunknown
disclosure_types(list of any of the following values)ai_contentai_content_codeai_content_assetsai_content_textai_content_functionalityadvertisementsepilepsy_triggerssystem_interactionstelemetrytelemetry_opt_intelemetry_opt_outtelemetry_always_activederivative_workpaid_featuresarchived
client_side(deprecated - useenvironmentinstead)server_side(deprecated - useenvironmentinstead)
Several others are also available for use, though these should not be used outside very specific use cases.
titleauthorfollowsproject_idlicensedownloadscreated_timestamp(uses Unix timestamp)modified_timestamp(uses Unix timestamp)
In order to then use these facets, you need a value to filter by, as well as an operation to perform on this value.
The most common operation is : (same as =), though you can also use !=, >=, >, <=, and <.
Join together the type, operation, and value, and you’ve got your string.
{type} {operation} {value}
Examples:
categories = adventure
versions != 1.20.1
downloads <= 100
You then join these strings together in arrays to signal AND and OR operators.
OR
All elements in a single array are considered to be joined by OR statements.
For example, the search [["versions:1.16.5", "versions:1.17.1"]] translates to Projects that support 1.16.5 OR 1.17.1.
AND
Separate arrays are considered to be joined by AND statements.
For example, the search [["versions:1.16.5"], ["project_type:modpack"]] translates to Projects that support 1.16.5 AND are modpacks.
Example
[["categories:forge"],["versions:1.17.1"],["project_type:mod"],["license:mit"]]downloadsThe sorting method used for sorting search results
20The offset into the search. Skips this number of results
20The number of results returned by the search
Responses
200
Expected response to a valid request
object
The list of results
object
The ID of the project, encoded as a base62 string
AABBCCDDThe project type of the project
modAll project types across every version of the project, unlike project_type which only reflects a version-specific type
[ "mod", "plugin", "datapack"]The title or name of the project
A short sentence summarizing the project, no more than a sentence or two.
The username of the project’s author
my_userA list of the featured categories that the project has.
[ "technology", "adventure", "fabric"]A list of the featured categories that the project has. Equivalent to categories on the project itself.
[ "technology", "fabric"]A list of the minecraft versions supported by the project
[ "1.8", "1.8.9"]The total number of downloads of the project
The total number of users following the project
The URL of the project’s icon
https://cdn.modrinth.com/data/AABBCCDD/b46513nd83hb4792a9a0e1fn28fgi6090c1842639.pngThe date the project was created
The date the latest version of the project was created
The ID of the latest version of the project
IIJJKKLLThe SPDX license ID of a project
MITAll the environments that versions of this project support. Not in any particular order, we recommend using the environment information on a version instead. For an explanation of each environment, see the blog post here: https://modrinth.com/news/article/new-environments/#new-system
[ "client_and_server"]Disclosures listed on the project.
[ "ai_content", "ai_content_code", "advertisements"]A list of images that have been uploaded to the project’s gallery
[ "https://cdn.modrinth.com/data/AABBCCDD/images/009b7d8d6e8bf04968a29421117c59b3efe2351a.png", "https://cdn.modrinth.com/data/AABBCCDD/images/c21776867afb6046fdc3c21dbcf5cc50ae27a236.png"]The slug of a project, used for vanity URLs. Regex: ^[\w!@$()`.+,"\-']{3,64}$
my_projectThe ID of the project’s author
EEFFGGHHThe name of the organization that owns this project
my_orgThe ID of the organization that owns this project
AABBCCDDThe featured gallery image of the project
The RGB color of the project, automatically generated from the project icon
8703084Deprecated - use environment instead. The client side support of the project
requiredDeprecated - use environment instead. The server side support of the project
optionalThe number of results that were skipped by the query
The number of results that were returned by the query
10The total number of results that match the query
10400
Request was invalid, see given error
object
The name of the error
invalid_inputThe contents of the error
Error while parsing multipart payload