Skip to main content
2 of 3
added 402 characters in body; edited tags; edited title
Brock Adams
  • 13k
  • 5
  • 39
  • 64

Tags are not returned when querying answers, bug is now even worse

I'm querying the API for answers, and I want the tags belonging to the parent questions. I seem to be seeing intermittent results: sometimes the tags attribute of the response includes the tags, and sometimes it's an empty list.

Is the availability of the tags attribute influenced by any other attributes that may or may not be selected in a filter?

For example, this seems to return tags in the result:

While this returns an a tags attribute, but it's always an empty list:

  • [/2.2/users/147356/answers?page=1&pagesize=2&site=stackoverflow&filter=!bKhRelLgVMFau)][2]

Maybe including the share_link attribute disables tags?

Also this is not the same as [this related bug][3] because I'm not requesting body_markdown.

[2]: https://api.stackexchange.com/docs/answers-on-users#page=1&pagesize=2&order=desc&sort=activity&ids=147356&filter=!bKhRelLgVMFau)&site=stackoverflow&run=true [3]: The answer object returns an empty array for tags

larsks
  • 141
  • 2