public class ModrinthAPI extends Object
| Constructor and Description |
|---|
ModrinthAPI() |
| Modifier and Type | Method and Description |
|---|---|
ProjectEndpoints |
projects()
Returns the project endpoints.
|
static ModrinthAPI |
rateLimited(UserAgent agent,
String apiKey)
Returns a client which will send requests and adjust speed based on rate
limits
|
static ModrinthAPI |
rateLimited(UserAgent agent,
String url,
String apiKey)
Returns a client which will send requests and adjust speed based on rate
limits
|
static ModrinthAPI |
rateLimited(UserAgent agent,
String url,
String apiKey,
long timeout)
Returns a client which will send requests and adjust speed based on rate
limits
|
CompletableFuture<SearchEndpoint.SearchResponse> |
search(SearchEndpoint.SearchRequest request)
Executes a search request.
|
TagsEndpoints |
tags()
Returns the tag endpoints.
|
TeamsEndpoints |
teams()
Returns the team endpoints.
|
static ModrinthAPI |
unlimited(UserAgent agent,
String apiKey)
Deprecated.
- Use
rateLimited(UserAgent, String) instead. |
static ModrinthAPI |
unlimited(UserAgent agent,
String url,
String apiKey)
Deprecated.
- Use
rateLimited(UserAgent, String, String) instead. |
static ModrinthAPI |
unlimited(UserAgent agent,
String url,
String apiKey,
long timeout)
Deprecated.
- Use
rateLimited(UserAgent, String, String, long)
instead. |
UserEndpoints |
users()
Returns the user endpoints.
|
VersionEndpoints |
versions()
Returns the version endpoints.
|
@Deprecated public static ModrinthAPI unlimited(UserAgent agent, String apiKey)
rateLimited(UserAgent, String) instead.agent - - The user agent to useapiKey - - The API key to use@Deprecated public static ModrinthAPI unlimited(UserAgent agent, String url, String apiKey)
rateLimited(UserAgent, String, String) instead.agent - - The user agent to useurl - - The URL to useapiKey - - The API key to use@Deprecated public static ModrinthAPI unlimited(UserAgent agent, String url, String apiKey, long timeout)
rateLimited(UserAgent, String, String, long)
instead.agent - - The user agent to useurl - - The URL to useapiKey - - The API key to usetimeout - - The timeout to use in millisecondspublic static ModrinthAPI rateLimited(UserAgent agent, String apiKey)
agent - - The user agent to useapiKey - - The API key to usepublic static ModrinthAPI rateLimited(UserAgent agent, String url, String apiKey)
agent - - The user agent to useurl - - The base URL to useapiKey - - The API key to usepublic static ModrinthAPI rateLimited(UserAgent agent, String url, String apiKey, long timeout)
agent - - The user agent to useurl - - The base URL to useapiKey - - The API key to usetimeout - - The timeout to use in millisecondspublic CompletableFuture<SearchEndpoint.SearchResponse> search(SearchEndpoint.SearchRequest request)
request - - The request to executepublic ProjectEndpoints projects()
public VersionEndpoints versions()
public UserEndpoints users()
public TeamsEndpoints teams()
public TagsEndpoints tags()
Copyright © 2026. All rights reserved.