When you view this question you see a closed question which has an accepted answer.
When you get the API info for it you get this:
["question_id"]=>
int(17466804)
["creation_date"]=>
int(1372930412)
["score"]=>
int(-4)
["closed_date"]=>
int(1372932196)
["title"]=>
string(29) "convert flat text file to pdf"
["closed_reason"]=>
string(9) "off-topic"
["link"]=>
string(73) "https://stackoverflow.com/questions/17466804/convert-flat-text-file-to-pdf"
["is_answered"]=>
bool(false)
["close_vote_count"]=>
int(0)
["reopen_vote_count"]=>
int(0)
["delete_vote_count"]=>
int(0)
The field is_answered
is returning false
even though the question has not only an answer, but an accepted one.
I thought it might have to do with the question being closed. However, other closed questions which also have an accepted answer correctly return true
. For example, this question.
The other reason could be the negative score for the answer. But it should not effect the field since even a negative score answer can end up being correct. If this is intended behavior it should be documented on the question doc page.