Hot answers tagged

3 votes
Accepted

The StackWrap4J java wrapper gives nothing but `JSONException`s?

The StackWrap4J library is very obsolete. Its page states: The latest build was tested against version 1.0 of the API on July 28th. But API version 1 has been shut down for quite a while. The ...
  • 12.7k
3 votes

StackExchange API Java wrapper

a few questions i have about your API. based on the user can I get a list of all questions and answers the user has? giving a user can I get a List<Questions> and List<Answer> that the ...
2 votes

How to handle default compression on response with Java's HttpURLConnection?

You're correct in assuming you need dedicated compression support; HttpURLConnection by itself won't be able to process the output. I'm not sure where your problem is, but let me help you with this ...
  • 6,052
1 vote

Download data for specific tag

The /questions method supports this; you can limit your search by tag. Be sure to add the right output fields via a filter; in the example below, I've added body, answers and answers.body which are ...
  • 6,052
1 vote
Accepted

Encoding problem while accessing the API using Java

The API responses are always compressed and the default compression is GZIP. This means that you must use the proper GZIP-handling libraries to fetch the data. So, instead of: BufferedReader in = ...
  • 12.7k

Only top scored, non community-wiki answers of a minimum length are eligible