Closed
Description
Describe the bug
The projects_random endpoint on the Modrinth API is not returning the expected number of projects requested. When requesting a certain number of random projects through the endpoint, the number of projects returned is almost always lower than the requested count.
For instance, when requesting a single project with the count
parameter set to 1, the endpoint sometimes returns no projects. For example: https://api.modrinth.com/v2/projects_random?count=1
The docs specify the count
as "The number of random projects to return"
Steps to reproduce
- Make a GET request to the projects_random endpoint with a count parameter set to a specific number.
- See the number of returned projects in the response.
- Repeat the request several times to confirm that the number of projects returned is consistently lower than the requested count.
Expected behavior
The endpoint should return a list of random projects, where the number of projects returned should always match the specified count.