Skip to main content
1 of 3
amit jha
  • 842
  • 4
  • 11

"top_questions" field is giving errors when /me/associated is used

I am using Stack Exchange API. I posted question from the doc page /questions/add to Stack Overflow. This was my first question. As that question was to check the function /questions/add, means it was not a proper question to be posted, I deleted it. Now that question is not visible in the StackOverflow website. But the API is returning it as

"top_questions": [
        {
           "score": 0,
           "post_type": "question",
           "post_id": 30978609,
           "title": "Use an access_token with write_access"
        }
     ],

as response when /me/associated is ran in doc page. Isn't this a bug?

Also,

"question_count": 1,

is wrong. It should be 0.

I have done this before in doc page. Question was created. After that, I deleted it because of same reasons. This question doesn't show in API response, which is as expected. In this case API is giving correct response.

And, In Stack Apps, now I have posted 8 questions. But, response is

"question_count": 7,

and

"top_questions": [
        {
           "score": 3,
           "post_type": "question",
           "post_id": 6396,
           "title": "Some blank properties missing"
        },
        {
           "score": 2,
           "post_type": "question",
           "post_id": 6395,
           "title": "Where is "items" & "badge_counts" documentation?"
        },
        {
           "score": 1,
           "post_type": "question",
           "post_id": 6404,
           "title": "How to delete apps in StackApps?"
        },
        {
           "score": 0,
           "post_type": "question",
           "post_id": 6405,
           "title": "Social Connect for Visual Studio (Placeholder)"
        },
        {
           "score": 0,
           "post_type": "question",
           "post_id": 6409,
           "title": "/questions/add of StackExchange app gives nonsense response"
        }
     ],

"top_questions" is ambiguous. Can somebody give an explanation on this? Are these bugs?

amit jha
  • 842
  • 4
  • 11