Closed stevenlis closed 5 years ago
It seems like the email_count
in the results object from GET /emailed/{period}.json
also has the same problem. Am I missing something?
The num_results
object returns a single integer, but the results
object contains 20 different articles. Do this mean the num_results
represent how many times those 20 articles got shared in total?
num_results returns the total number of articles on the most emailed list. The API returns 20 at a time. So if you want to see them all, you'll need to paginate thru the results, using offset query parameter (offset=0, offset=20, offset=40, ...). The list starts becoming pretty unmeaningful after about 20 because of the number of times shared gets pretty low.
The email_count was originally there to show total number of times the article was emailed. But it was decided that we didn't want to publish that info. To not break old code, we left it in the response, but just set it to rank. We should probably just remove the field to prevent confusion.
@nyt-hughmandeville Thanks, man. This makes sense now.
The API returns 20 at a time.
Are they sorted? so the first one is the most shared and the second one is the second most shared, and so on... right?
But it was decided that we didn't to publish that info.
Is there any other way I can have access to how many times each individual article was shared or emailed? Or does this mean that they're not open to the public for good?
they are sorted, most emailed article is first, second most emailed is second, ...
currently there is intentionally no way to get the shared counts.
Thanks for the info buddy. I hope you guys could put a little bit more details for the doc.
@nyt-hughmandeville Is there a way to get the most shared article title from...let's say... the day before yesterday or something? of course without a time machine.
You would have to call the API and save off the results each day. The list changes through out the day as well.
The
share_count
in the result object returns the index number instead of how many times an article got shared.