12

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. stackoverflow.com). 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 stackoverflow.com and prepend api. myself or ask for the full api.stackoverflow.com.

1
  • I was going to ask this myself. Jun 5, 2010 at 13:03

1 Answer 1

4

No.

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).

2
  • Once we have discovered the endpoint, is it safe to keep it forever, or should we be prepared to rediscover it later? Jun 6, 2010 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. Jun 6, 2010 at 7:39

You must log in to answer this question.

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