Some categories are on the allow-list for CIM, and we can verify they work for other endpoints, but no data is returned for /pageviews-per-category-monthly/
Example:
- Media_contributed_by_Abilene_Christian_University_Library
- Is in allow-list
- This works: https://wikimedia.org/api/rest_v1/metrics/commons-analytics/category-metrics-snapshot/Media_contributed_by_Abilene_Christian_University_Library/00000101/99991231
- This is a 404 Not Found: https://wikimedia.org/api/rest_v1/metrics/commons-analytics/pageviews-per-category-monthly/Media_contributed_by_Abilene_Christian_University_Library/deep/all-wikis/00000101/99991231
In this case, perhaps the cause is 0 page views are being recorded (based on the fact that the snapshot shows no media in use). If that is the case, I would consider this a bug, since 0 views is a valid data point, and the user needs to be able to distinguish a result of 0 from an HTTP error (especially since there is other data in the API response worth accessing even with a 0 page view result, such as knowing which month timestamps were measured).