# Google Books Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
Google Books API for accessing book information and user bookshelves

**Categories:**
- {'id': 'google-other', 'name': 'Google Other'}

## Base Endpoint
https://api.lowcodeapi.com/googlebooks

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** OAUTH2.0

**Official Documentation:** https://developers.google.com/books/docs/v1/reference

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### List volumes

**Method:** GET
**LowCodeAPI Path:** /volumes

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/volumes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/volumes?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| download | enum |  |
| filter | enum |  |
| langRestrict | string |  |
| maxResults | number |  |
| orderBy | enum |  |
| partner | string |  |
| printType | enum |  |
| projection | enum |  |
| q | string |  |
| showPreorders | boolean |  |
| source | string |  |
| startIndex | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/volumes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/volumes/list

### Get volume

**Method:** GET
**LowCodeAPI Path:** /volumes/{volumeId}

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/volumes/{volumeId}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/volumes/volumeid?volumeId={volumeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| volumeId | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| country | string |  |
| partner | string |  |
| projection | enum |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/volumes/{volumeId}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/volumes/get

### List bookshelves

**Method:** GET
**LowCodeAPI Path:** /users/{userId}/bookshelves

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/users/userid/bookshelves?userId={userId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| userId | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/bookshelves/list

### Get bookshelf

**Method:** GET
**LowCodeAPI Path:** /users/{userId}/bookshelves/{shelf}

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves/{shelf}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/users/userid/bookshelves/shelf?shelf={shelf}&userId={userId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |
| userId | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves/{shelf}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/bookshelves/get

### List volumes in bookshelf

**Method:** GET
**LowCodeAPI Path:** /users/{userId}/bookshelves/{shelf}/volumes

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves/{shelf}/volumes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/users/userid/bookshelves/shelf/volumes?shelf={shelf}&userId={userId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |
| userId | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| maxResults | number |  |
| source | string |  |
| startIndex | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/users/{userId}/bookshelves/{shelf}/volumes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/bookshelves.volumes/list

### List my bookshelves

**Method:** GET
**LowCodeAPI Path:** /mylibrary/bookshelves

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/mylibrary/bookshelves?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/mylibrary.bookshelves/list

### Get my bookshelf

**Method:** GET
**LowCodeAPI Path:** /mylibrary/bookshelves/{shelf}

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/mylibrary/bookshelves/shelf?shelf={shelf}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/mylibrary.bookshelves/get

### List volumes in my bookshelf

**Method:** GET
**LowCodeAPI Path:** /mylibrary/bookshelves/{shelf}/volumes

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/volumes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/mylibrary/bookshelves/shelf/volumes?shelf={shelf}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| maxResults | number |  |
| source | string |  |
| startIndex | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/volumes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/mylibrary.bookshelves.volumes/list

### Add volume to my bookshelf

**Method:** POST
**LowCodeAPI Path:** /mylibrary/bookshelves/{shelf}/addVolume

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/addVolume?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/mylibrary/bookshelves/shelf/addVolume?shelf={shelf}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |
| volumeId | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/addVolume?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/mylibrary.bookshelves/addVolume

### Remove volume from my bookshelf

**Method:** POST
**LowCodeAPI Path:** /mylibrary/bookshelves/{shelf}/removeVolume

**New Format URL:**
https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/removeVolume?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/googlebooks/v1/mylibrary/bookshelves/shelf/removeVolume?shelf={shelf}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| shelf | string |  |

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| source | string |  |
| volumeId | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/googlebooks/mylibrary/bookshelves/{shelf}/removeVolume?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://developers.google.com/books/docs/v1/reference/mylibrary.bookshelves/removeVolume


## Usage Examples

### Example 1: Basic API Request

```bash
# List resources - no path parameters needed
curl -X GET "https://api.lowcodeapi.com/googlebooks/v1/resources?api_token=YOUR_API_TOKEN"
```

### Example 2: Request with Path Parameters

```bash
# Get specific resource by ID
curl -X GET "https://api.lowcodeapi.com/googlebooks/v1/resources/{RESOURCE_ID}?api_token=YOUR_API_TOKEN"
```

### Example 3: Create or Update Resource

```bash
# Create a new resource
curl -X POST "https://api.lowcodeapi.com/googlebooks/v1/resources?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "New Resource", "description": "Description"}'
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| List volumes | GET | Volumes |
| Get volume | GET | Volumes |
| List bookshelves | GET | Bookshelves |
| Get bookshelf | GET | Bookshelves |
| List volumes in bookshelf | GET | Bookshelves |
| List my bookshelves | GET | My Library |
| Get my bookshelf | GET | My Library |
| List volumes in my bookshelf | GET | My Library |
| Add volume to my bookshelf | POST | My Library |
| Remove volume from my bookshelf | POST | My Library |
| Clear all volumes from my bookshelf | POST | My Library |
| Get reading position | GET | My Library |
| Set reading position | POST | My Library |
| Batch requests | POST | Batch |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/googlebooks/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/googlebooks/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```