1

I'm using the Stack Exchange API and I want to get related tags of a particular tag. Fortunately, the API provides such an endpoint (/2.3/tags/devops/related?pagesize=100&site=stackoverflow).

Although, this only returns the 50 most common tags, is there a way to get more tags? If not, is there somewhere an explanation on how Stack Exchange have chosen to return the top 50 tags, but not more/less (e.g., did you consider any criteria)?

6
  • 1
    If it is limited to the top 50 then I'm sure it is done for performance reasons.
    – rene Mod
    Commented Apr 21, 2022 at 18:09
  • I assume the related tags in what is shown in the sidebar on the tag page: stackoverflow.com/tags/devops/info. It doesn't look like it will be beneficial on that page if 200 tags were returned
    – rene Mod
    Commented Apr 21, 2022 at 18:10
  • 3
    Maybe a SEDE query is better suited: data.stackexchange.com/stackoverflow/query/1582345
    – rene Mod
    Commented Apr 21, 2022 at 18:17
  • Ah I see, the query selects all of the tags that were paired with the original tag (i.e., devops) at least once, right? Commented Apr 22, 2022 at 6:55
  • Yeah, 200 doesn't sound beneficial, but I was more interested in the reasoning behind the choice of 50 tags. Commented Apr 22, 2022 at 6:58
  • Yeah, I assume that that is how "related" is defined but maybe there are more criteria at play. As for the 50: in general, if something is limited, specially in [list of things] type of scenario's your best bet is performance. Things often break on Stack Overflow due to the sheer size of things. When it comes to tags there also is a component called tag-engine that is optimized for speed with an in-memory store. If those 50 tags come from that component then limited/reduce memory storage could be a reason as well.
    – rene Mod
    Commented Apr 22, 2022 at 16:03

0

You must log in to answer this question.

Browse other questions tagged .