Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the /tags route, the following information is returned for a specific tag:

  "name": "c#",
  "count": 262613,
  "is_required": false,
  "is_moderator_only": false,
  "has_synonyms": true

is_required indicates that the tag is part of the set of required tags for the site. This is great, but leads to problems when trying to indicate this using the data returned from the /questions route. The only data returned by this route is the tag name. Currently there is no method to fetch additional data for a specific tag.

share|improve this question
Can't you just make another query to the /tags route? – Jonathan. Feb 3 '12 at 9:03
up vote 0 down vote accepted

So... no, I'm -ing this. Fetching that sort of data for each tag on each question becomes unpleasantly slow when you're dealing with batches of questions (which most request are).

However, you are correct that there's no good way to grab additional data about a tag given just it's name. I've added the /tags/{tags}/info method to alleviate this.

For the specific "mimic the site styling" cases, I've added /tags/required and /tags/moderator-only. I suggest fetching and caching the result for quite a while (a day or even longer) since we rarely add or change either moderator or required tags.

on those. They've been deployed already.

Also, congratulations on getting what is probably the last V2.0 in. Feature freeze is fast approaching.

share|improve this answer
How does the /tags/{tags}/info method differ from the /tags with inname? Also why not just /tags/{tags} (not that I mind just should this method be used differently to others?) – Jonathan. Feb 3 '12 at 21:49
@Jonathan: I don't think inname allows for multiple tags. – Nathan Osman Feb 3 '12 at 21:52
Thanks for implementing this. Caching all tags is prohibitive, but caching only moderator or required tags is sensible. – Nathan Osman Feb 3 '12 at 21:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .