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

I'm writing an application that will eventually allow you to use it for any StackExchange site. Thus, I'm allowing users to input the domains of the sites they want to use (e.g. I'm not sure whether it's safe to assume the API will always be at api.<DOMAIN> (and on all StackExchange sites) -- will there be other subdomains? E.g. ws.<DOMAIN> (for web service).

Basically, I don't know whether I should ask the user for and prepend api. myself or ask for the full

share|improve this question
I was going to ask this myself. – Nathan Osman Jun 5 '10 at 13:03
up vote 4 down vote accepted


Before the API leaves beta there will be a mechanism for discovering API end points. Don't make any hard assumptions about API locations (beyond the necessary hardcoding at this time).

share|improve this answer
Once we have discovered the endpoint, is it safe to keep it forever, or should we be prepared to rediscover it later? – Mark Henderson Jun 6 '10 at 7:27
@Farseeker - you will be able to cache aggressively, but forever is a long time. Expect more details when such a method is available. – Kevin Montrose Jun 6 '10 at 7:39

You must log in to answer this question.

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