4

I can currently get the total number of questions for a tag by using the total filter. This works well, but I'd like to get a total views count for the questions in that tag. I could iterate over each page of results and add up the views, but it seems like maybe I'm missing a way to filter that would return this value instead?

New contributor
Raymond Camden is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
8
  • 2
    I don't think the API is the best tool for that. I think the Stack Exchange Data Explorer may be a much better tool. Sep 14 at 20:09
  • I heard that's updated only once a week, is that right? That's acceptable if so, but would rather have more up to date info. Sep 14 at 20:13
  • Yes. According to the Data Explorer - FAQ, it's "updated early every Sunday morning around 3:00 UTC". Sep 14 at 20:15
  • Is there an API way to hit that as well? Sep 14 at 20:18
  • I do not think there is directly, but I found Please provide a way to download SEDE data via an API Sep 14 at 20:21
  • 1
    Don't think that's going to work as I'm building a public tool, but, worse case, I can do this manually when generating a report. Thanks for the help! Sep 14 at 20:22
  • Feel free to make this a feature request to improve the API, for example, expose the view_count field (as a total) on the Tag object returned by calls to the /tags endpoint. Although I doubt there will be any updates to the API in the foreseeable future (the most recent update we only got because SE wanted to launch the Collectives feature) but just on an off-chance it happens, it will not hurt 2 days ago
  • 3
    on a tangent note - welcome to Stack Apps! Always nice to see new faces around here :) 2 days ago

You must log in to answer this question.

Browse other questions tagged .