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?

  • 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. Commented Sep 14, 2021 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. Commented Sep 14, 2021 at 20:13
  • Yes. According to the Data Explorer - FAQ, it's "updated early every Sunday morning around 3:00 UTC". Commented Sep 14, 2021 at 20:15
  • Is there an API way to hit that as well? Commented Sep 14, 2021 at 20:18
  • I do not think there is directly, but I found Please provide a way to download SEDE data via an API Commented Sep 14, 2021 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! Commented Sep 14, 2021 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 Commented Sep 15, 2021 at 1:52
  • 3
    on a tangent note - welcome to Stack Apps! Always nice to see new faces around here :) Commented Sep 15, 2021 at 1:54


You must log in to answer this question.

Browse other questions tagged .