When you visit this question (with proper privs) you can see that there are 2 close votes cast for it.
However, if you access the information for this question using the Stack Exchange API you get the following:
[question_id] => 17581574 [creation_date] => 1373493187 [score] => 0 [title] => Flattening multiple PNGs with php [link] => http://stackoverflow.com/questions/17581574/flattening-multiple-pngs-with-php [is_answered] => [close_vote_count] => 0 [reopen_vote_count] => 0 [delete_vote_count] => 0
It does not show the correct count; actually, no count at all for the close votes is shown. I've fetched the same data from 400+ questions in the cv-pls backlog, and not a single one shows the close vote count.
However, they DO show delete vote counts. So I do not think it is a permissions issue since it would not allow that info to be fetched. I have not checked to see if the same is to be said for the re-open vote count. The filter is set to fetch it otherwise it would not even be returned in the JSON response.
- Why are the close vote counts not being populated in the API?
- Is this a bug, or are there additional steps needed to acquire that info in an API call?
Forgive my ignorance if I have overlooked some API documentation regarding this.