1

I am a Stack Overflow for Teams app developer, and given this recent announcement that API v3 is being extended to the public platform, I am hoping we can start asking API v3 questions here.

Given a set of tags, I need to fetch all questions and their answers for those tags.

Fetching the questions with the /questions route with the tagId array is reasonably performant, as it returned paged results.

But fetching the answers for those questions is problematic. The questions do not include the answers, and thus the answers must be fetched question-by-question with the /questions/{questionId}/answers route. This is slow and quota-intensive when there are thousands of questions.

I tried using the /search route with the following queries:

  • [tag1] or [tag2] or [tag3] is:question
  • [tag1] or [tag2] or [tag3] is:answer

but these return QuestionSearchResultModel and AnswerSearchResultModel objects, which are much less detailed than Question and Answer objects and lack the information we need.

Has anyone else run into this challenge with API v3?

2
  • Hello! I'm a Stack Overflow community manager working with our API team. V3 is indeed being expanded to included the public platform, but I want to clarify that there will still be a level of separation from the Teams API. If your questions are specific to usage with Teams, your best bet is still to send in a question using the support portal. Most people here are focused on the public API, as you have seen. However, with all that said, the public API v3 and Teams API will have much in common and your questions may be applicable. Commented Jul 24 at 18:15
  • If you are interested in developing against the public API, I encourage you to apply to be part of the upcoming public v3 beta. Commented Jul 24 at 18:17

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.