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

Why do we have total_upvotes + total_downvotes as well as score?


score = total_upvotes - total_downvotes

Is this always true? If so, isn't it redundant?

share|improve this question
+1 it would seem to me that they are, if score really is the difference between the two. – Dave DeLong Jun 5 '10 at 16:13

Comments have only score. So this way comments,answers and questions can have the same field name. Of course a score and downvote_count would still decrease redundancy.

btw. the fact that the API has total_upvotes and total_downvotes makes the fact that you need reputation to see those stats on the normal pages weird. (are there more of these kinds of stuff eg. where the API has some functionalty you usually need some reputation to have?)

share|improve this answer
That's the only instance. – Nathan Osman Jun 5 '10 at 17:39

Flags does not included in score in real site, so we need both.

(When someone flag it, community user put a temporary downvote for 2 days)

share|improve this answer

At this phase, this is technically correct. Note that changes in the main site could break this assumption over the lifetime of v1 of the API (not to imply any such changes are in the pipeline - or even being discussed - at this time).

More significantly, I feel we're too close to a "RC" of the API to remove fields; so these are staying.

share|improve this answer

You must log in to answer this question.

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