Gzip

QWeather’s Web API uses Gzip for compression by default, which will greatly reduce network traffic and speed up requests.

Hint: If you use iOS SDK or Android SDK, you don’t need to consider to process Gzip.

Here is the official documentation for processing Gzip in various languages.

C#

https://learn.microsoft.com/en-us/dotnet/api/system.io.compression.gzipstream?view=net-6.0

Dart

https://api.dart.cn/stable/2.17.0/dart-io/GZipCodec-class.html

Go

https://pkg.go.dev/compress/gzip

Java

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/zip/GZIPInputStream.html

Python

https://docs.python.org/3/library/gzip.html

Ruby

https://ruby-doc.org/stdlib-2.7.0/libdoc/zlib/rdoc/Zlib/GzipReader.html