7

I have an application I'm developing that's pure javascript and consumes the Stack API. My API key is embedded in the source which anyone could read. Is this safe?

1 Answer 1

7

Yes.

Your API key identifies your application for stat tracking purposes more-so than security purposes. It is safe to leave in a plain text, user readable, format.

3
  • that's what I figured, since it's being passed around in querystring and headers. Thanks for confirming. Commented Jun 4, 2010 at 5:50
  • 2
    @Soviut - no problem. I've realized that maybe we shouldn't have called it a "key" (in v1, anyway) but we're stuck with the terminology now. Maybe "app id" would have been better... Commented Jun 4, 2010 at 7:18
  • @Kevin Montrose I have seen a trend toward "app id" as the new lingo. Commented May 8, 2018 at 14:05

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.