Library Agent API
A simple Google Example Library API.
Developer tools#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
A simple Google Example Library API.
Endpoints 5
shelves.books
- GETGets a book
/v1/:nameGets a book. Returns NOT_FOUND if the book does not exist. - POSTBorrow a book from the library
/v1/:name:borrowBorrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the book does not exist in the library. Returns quota… - GETLists books in a shelf
/v1/:parent/books?pageSize=0&pageToken=stringLists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily be added to the end of this list. Returns… - POSTReturn a book to the library
/v1/:name:returnReturn a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the…
shelves
- GETLists shelves
/v1/shelves?pageSize=0&pageToken=stringLists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.
API details
- Base URL
https://libraryagent.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 5 operations on 5 pathsGET 3POST 2
- Main resources
- shelves.books 4shelves 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Library Agent API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Library Agent API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Gets a book” (GET /v1/:name), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Library Agent API?
A simple Google Example Library API. It is listed under Developer tools and has 5 endpoints.
Who publishes the Library Agent API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Library Agent API?
Requests go to https://libraryagent.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Library Agent API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the Library Agent API have?
5 operations on 5 paths (3 GET, 2 POST). The largest groups are shelves.books, shelves.
Is forking the Library Agent API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.