Skip to main content
1 of 3
Dan Dyer
  • 606
  • 5
  • 8

Retrieving comments received by a user

I want to retrieve all comments directed to a particular user (rather than comments posted by that user) within a particular time period (e.g. last 24 hours). I don't want just "mentions", which are easy enough, but also comments posted on their questions and answers. This is technically possible - by retrieving a list of all posts and then fetching comments for each of those posts. However, when certain users have posted ~12.5k answers on one site, it becomes very inefficient (~125 requests if the limit is 100 IDs per request) to retrieve what might be only one or two comments.

Is there some better solution that I have missed or this the only option we have at the moment?

Dan Dyer
  • 606
  • 5
  • 8