The Google APIs Client Library for Java is a flexible, efficient, and powerful Java client library for accessing any HTTP-based API on the web, not just Google APIs.
The library has the following features:
The library supports the following Java environments:
This library is built on top of two common libraries, also built by Google, and also designed to work with any HTTP service on the web:
This is an open-source library, and contributions are welcome.
To use Google’s Java client libraries to call any Google API, you need two libraries:
google-api-java-client), which is the generic runtime library described here. This library provides functionality common to all APIs, for example HTTP transport, error handling, authentication, JSON parsing, media download/upload, and batching.
To find the generated library for a Google API, visit Google APIs Client Library for Java. The API-specific Java packages include both the core google-api-java-client and the client-specific libraries.
Features marked with the
@Beta annotation at the class or method level are
subject to change. They might be modified in any way, or even removed, in any
major release. You should not use beta features if your code is a library itself
(that is, if your code is used on the
CLASSPATH of users outside your own
Deprecated non-beta features will be removed eighteen months after the release in which they are first deprecated. You must fix your usages before this time. If you don’t, any type of breakage might result, and you are not guaranteed a compilation error.