Skip to main content

Why can we see how many times a Card viewed and read in Guru but only views in the API?

  • December 30, 2020
  • 6 replies
  • 80 views

Marcos Perez
Hi everyone! I have a quick question: In Guru we can see for a card how many times it was viewed and read, but the API shows only views, without this differentiation. Which is the difference?image_5318.png

6 replies

Zev Zoldan
Forum|alt.badge.img+3
  • Scholar
  • December 30, 2020
Hey! Might be handy to ask in Developer Category too!

Marcos Perez
  • Author
  • December 30, 2020
Yes maybe! Thanks!

  • December 31, 2020
Copying in @mhouston!

Dillon Head
  • Scholar
  • December 31, 2020
@marcos.perez hey, not sure if this is exactly what you're asking, but `cardviewstats` ( `api.getguru.com/api/v1/facts/some-card-id/cardviewstats` )returns this: ```{ "analytics": { "favorites": 0, "copies": 3, "views": 44 }, "membersWithCardView": 9, "membersWithoutCardView": 50 }``` This seems to differentiate between net "views" and unique users that have opened the card at some point (membersWithCardView). I could be wrong, but I don't think "read" is determined in any way other than the card having been opened by a user. My bad if I misunderstood your question!

Marcos Perez
Hey Dillon! Thanks for that! Didn't realize it was an available endpoint! This helped me a lot!

Dillon Head
  • Scholar
  • January 5, 2021
@marcos.perez awesome! Glad that helped. I just happened to have wondered about that myself not too long ago.