googleapis.com

A simple Google Example Library API.

🔑 oauth2 5 endpoints analyticsmedia
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (10 total)

mcp-toolbox-sdk-python ✓ Official
pip install mcp-toolbox-sdk-python
python-storage ✓ Official
pip install python-storage
python-aiplatform ✓ Official
pip install python-aiplatform
python-genai ✓ Official
pip install python-genai
js-genai ✓ Official
npm install js-genai
go-genai ✓ Official
go get github.com/googleapis/go-genai
sdk-platform-java ✓ Official
# Maven: see https://github.com/googleapis/sdk-platform-java
java-genai ✓ Official
# Maven: see https://github.com/googleapis/java-genai
dotnet-genai ✓ Official
# See https://github.com/googleapis/dotnet-genai
gax-java ✓ Official
# See https://github.com/googleapis/gax-java
curl examples
Gets a book. Returns NOT_FOUND if the book does not exist.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://libraryagent.googleapis.com/v1/{name}
Lists shelves. The order is unspecified but deterministic. Newly created shel…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://libraryagent.googleapis.com/v1/shelves
Lists books in a shelf. The order is unspecified but deterministic. Newly cre…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://libraryagent.googleapis.com/v1/{parent}/books
Endpoints (5 total)
GET
/v1/{name}
Gets a book. Returns NOT_FOUND if the book does not exist.
GET
/v1/shelves
Lists shelves. The order is unspecified but deterministic. Newly created shel…
GET
/v1/{parent}/books
Lists books in a shelf. The order is unspecified but deterministic. Newly cre…
POST
/v1/{name}:borrow
Borrow a book from the library. Returns the book if it is borrowed successful…
POST
/v1/{name}:return
Return a book to the library. Returns the book if it is returned to the libra…
At a glance
Total SDKs10
Languages6
Endpoints5
Authoauth2
Categories2
https://libraryagent.googleapis.com