This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The API result_count
is no more than 240 for unauthenticated requests
#4474
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟧 priority: high
Stalls work on the project or its dependents
🧱 stack: api
Related to the Django API
🔒 staff only
Restricted to staff members
🧹 status: ticket work required
Needs more details before it can be worked on
Description
The maximum result count returned by the API is 240 instead of 10 000 as it was previously.
Reproduction
Additional context
@sarayourfriend, this was added in your PR, #4372:
openverse/api/api/serializers/media_serializers.py
Line 98 in 0094a1d
I think this was unintentional because we never discussed reducing the shown
result_count
for the API results. It is tricky since both 240 and 10000 are confusing: an unauthenticated user will only get at max 240 results. However, I think we wanted to always show that we do have the results, but we are not showing all of them due to the restrictions related to the API performance (to prevent scraping).The text was updated successfully, but these errors were encountered: