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

share|improve this question
    
I was going to ask this myself. –  Nathan Osman Jun 5 '10 at 13:03
add comment

1 Answer 1

up vote 4 down vote accepted

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

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
add comment

You must log in to answer this question.

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