Canonical: https://weaveos.com/reference/google-drive/sync-file-changes

1. [Software capabilities](https://weaveos.com/reference)
2. /[Google Drive](https://weaveos.com/reference/google-drive)
3. /Sync Google Drive file changes

[![](https://weaveos.com/reference/logos/google-drive.svg)Google Drive](https://weaveos.com/reference/google-drive)

# Sync Google Drive file changes

Capture a start page token, page through changes.list, and persist newStartPageToken for the next incremental sync. Include removed entries when your index must detect deletion or lost access.

Documentation reviewed November 27, 2026 · 3 methods with sources

## Ways to do it

1. [1API: GET /drive/v3/changes/startPageToken](https://weaveos.com/reference/google-drive/sync-file-changes#method-1)
2. [2API: GET /drive/v3/changes](https://weaveos.com/reference/google-drive/sync-file-changes#method-2)
3. [3SDK: drive.changes().list()](https://weaveos.com/reference/google-drive/sync-file-changes#method-3)

API

### GET /drive/v3/changes/startPageToken

Request the starting page token for a user or shared drive before the first change poll.

[Read source: Drive getStartPageToken reference](https://developers.google.com/workspace/drive/api/reference/rest/v3/changes/getStartPageToken)

- Requirements

  An authorized Google OAuth token, such as one with drive.metadata.readonly scope. For a shared drive, provide driveId and supportsAllDrives=true.

- Limitations

  The start token marks the boundary for future changes. Use files.list to build an initial inventory.

Example shell

Copy

```
curl --fail 'https://www.googleapis.com/drive/v3/changes/startPageToken' -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN"
```

API

### GET /drive/v3/changes

Read change pages using pageToken, then store newStartPageToken after the final page.

[Read source: Drive changes.list reference](https://developers.google.com/workspace/drive/api/reference/rest/v3/changes/list)

- Requirements

  A Drive page token and OAuth credentials for the same user or shared drive that issued the token.

- Limitations

  Commit the changes before advancing the stored cursor. A removed entry can mean deletion or loss of access. For a shared drive, use driveId, supportsAllDrives=true, and includeItemsFromAllDrives=true.

Example shell

Copy

```
curl --fail --get 'https://www.googleapis.com/drive/v3/changes' -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" --data-urlencode "pageToken=$DRIVE_PAGE_TOKEN" --data-urlencode 'includeRemoved=true' --data-urlencode 'spaces=drive'
```

SDK

### drive.changes().list()

Use the Python client to retrieve a page of file changes with the saved token.

[Read source: Google Drive change-feed client examples](https://googleapis.github.io/google-api-python-client/docs/dyn/drive_v3.changes.html)

- Requirements

  An authenticated Drive v3 service from google-api-python-client and a start or continuation token.

- Limitations

  An empty changes array can still come with a nextPageToken. Keep reading pages until Drive supplies newStartPageToken.

Example text

Copy

```
page = drive.changes().list(
    pageToken=saved_page_token, spaces="drive", includeRemoved=True
).execute()
```

[Previous Google Drive taskHow to export a Google Docs, Sheets or Slides file](https://weaveos.com/reference/google-drive/export-workspace-file)

## More from Google Drive

[View all 4 Google Drive tasks](https://weaveos.com/reference/google-drive)

- ### [How to search Google Drive files](https://weaveos.com/reference/google-drive/search-files)

  Search by name, type or other criteria in Drive. For a script, call files.list with a q expression and request the fields you need.

  API, Interface

- ### [How to download an uploaded Google Drive file](https://weaveos.com/reference/google-drive/download-file)

  Call Drive API v3 files.get with alt=media for stored files such as PDFs and images. In Drive, select Download for a manual copy.

  API, Interface

## The same task in other apps

- [![](https://weaveos.com/reference/logos/google-calendar.svg)Google Calendar](https://weaveos.com/reference/google-calendar)

  ### [Recover an expired Google Calendar sync token](https://weaveos.com/reference/google-calendar/recover-expired-sync-token)

  Send the stored nextSyncToken as syncToken on the next events.list request. If that request returns 410 Gone, discard the stale token and rebuild the local copy from a full sync.

  API, SDK
