Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I've been playing with a little webapp for tags of a certain kind for travel.SE (current pre-alpha version gist on github).

One thing I would like to do is add links for the various tag-related functions on the actual SE site for each tag.

But I realized that the while most tag related URLs use the tag's name, the edit URL uses some internal tag ID. For example for the here on StackApps we (currently) have this URL:

http://stackapps.com/edit-tag-wiki/2705

Now the thing is I can't find anywhere in the API that will provide either this ID or this URL. Have I missed something or is this a feature I should request for the future?

share|improve this question
    
If you visit stackapps.com/edit-tag-wiki/codeigniter - you're redirected to that URL. If you don't mind the redirect, you might just be able to get around it that way. –  agent86 Feb 29 '12 at 1:20
    
You should submit this as an answer @agent86! Is it documented somewhere? –  hippietrail Feb 29 '12 at 18:54
add comment

1 Answer

up vote 3 down vote accepted

If you visit:

http://stackapps.com/edit-tag-wiki/codeigniter 

... you're redirected to that URL. If you don't mind the redirect, you might just be able to get around it that way.

As far as I know, there's no documentation about when you can specify a name versus when you must specify an ID number, and I know of no API route that returns the ID numbers. The routes that return "tag" objects conform to this object specification.

share|improve this answer
    
Ah yes now I such URLs when I hover over tag edit links. Never noticed them before. Thanks! –  hippietrail Feb 29 '12 at 19:21
add comment

You must log in to answer this question.

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