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

If I request from the /questions route (for example,) I get a list of questions and some relative route data. What I don't get is a nice, neat, full URL to the question on the site:


I can imagine lots of cases where you'd want to be able to link a question or answer represented in an app to the site where it was posted. I can build the URL above from the return data fairly easily, and I'm fairly certain the routes on the SE sites won't change, however...

It would be nice to get the site URL directly from the API. In the unlikely event of a change to the SE routing, the API could report the change seamlessly and apps just continue to link to the sites without modification.

share|improve this question
+1 One of my apps does this manually right now. – Nathan Osman Jul 1 '10 at 18:26
I don't know Dave, i am sure that the url authority is not being stored in the SO db and that the urls are being rendered by concatenation. This seems to me to be the most robust way to deliver this information. – Sky Sanders Jul 22 '10 at 19:01

You must log in to answer this question.

Browse other questions tagged .