Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

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 userscertain 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?

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?

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?

replaced http://stackapps.com/ with https://stackapps.com/
Source Link

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 requestlimit 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?

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?

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?

Source Link
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?