2

I'm testing the following command:

$ curl -s "http://api.stackexchange.com/2.1/users/55075?&site=stackoverflow" | gunzip -d | python -m json.tool

However it doesn't return up_vote_count and down_vote_count values as suggested in this old answer.

What I'm doing wrong?

1
  • Note that that old answer was for API version 1. Commented Apr 25, 2015 at 12:49

1 Answer 1

3

You need to use a filter that returns those properties. The default filter does not.

Also, the API is at version 2.2. You should use that unless you've a very good reason not to.

So try, for example:

http://api.stackexchange.com/2.2/users/55075?site=stackoverflow&filter=!G*ky*lRuarbDJTpnwEtY-a05oz

Or:

http://api.stackexchange.com/2.2/users/55075?site=stackoverflow&filter=!-*f(6q0h9HBe

For your URL.

For more information about easily creating custom filters, see this answer.

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.