Skip to main content
jvdc
Expert ⭐️
April 27, 2026
Solved

How to get the total questions shared by a user via API?

  • April 27, 2026
  • 1 reply
  • 33 views

When I request user data via API, we get the total topics but this is a total across articles/questions/discussions.

Is there a way to get this total for each?

Best answer by Mithila Jayalath

@jvdc  Unfortunately, as per my knowledge there is no direct way to get those individual counts straight from the user API. The endpoint only provides the aggregated "topics" total, and the specific numbers for articles, questions, and discussions are not stored as pre-calculated fields.

To get this total for each, you will need to use a workaround: you have to list out the articles, questions, and discussions, check the author for each piece of content, and then get a count for each.

Better if you can submit an idea for this.

1 reply

Mithila Jayalath
Helper ⭐️⭐️
April 27, 2026

@jvdc  Unfortunately, as per my knowledge there is no direct way to get those individual counts straight from the user API. The endpoint only provides the aggregated "topics" total, and the specific numbers for articles, questions, and discussions are not stored as pre-calculated fields.

To get this total for each, you will need to use a workaround: you have to list out the articles, questions, and discussions, check the author for each piece of content, and then get a count for each.

Better if you can submit an idea for this.