Skip to content

Dataset

Google Drive file archive datasets for AI training

A Google Drive dataset is the files and folders from a business's My Drive accounts and shared drives, delivered with each file's ID, parent folder, permission list, shortcuts, revisions, comments, replies, labels and Drive activity records. SourceX sources it to a buyer's spec from established businesses that run Google Drive. Native Docs, Sheets and Slides are exported in a format agreed for the order, uploaded files arrive as stored, and files that outside parties shared in should be absent, which the buyer checks on a sample. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One business's Drive files and folders with their IDs, parents, permissions, shortcuts, revisions, comments and activity
Typical systems
Google Drive under Google Workspace: My Drive, shared drives, Drive activity and, where the edition has them, Drive labels
Typical history
Specified by the buyer; bounded by which revisions Drive has not purged and how far back activity records reach
Modality
Office files, PDFs, images and media as stored; native Docs, Sheets and Slides as exports; metadata as structured records
Delivery formats
Agreed per order; commonly original bytes, a stated export format for native files, and JSONL metadata records
Preparation
Outside-owned files excluded; people pseudonymized across owners, permissions, comments and activity; agreed drives and folders withheld
Licensing
Rights reviewed on file ownership and against Google's terms; permitted use set in the license
Availability
Sourced to your spec from businesses whose owners agree; supply is not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
drive_file_idstringThe File's id, unchanged by renames and moves, which parents, Shortcuts and Comments refer to.
namestringThe File's name, which Drive does not require to be unique within a Folder.
mime_typestringThe File's mimeType, which separates Folders, Shortcuts and native Docs, Sheets and Slides from uploaded binary files.
parentsarrayThe File's parents value, the ID of its containing Folder, with path_at_crawl rebuilt by walking it to the root.
drive_scopeobjectWhether the File sits in a My Drive or a Shared drive, with the driveId where present.
ownersarrayPseudonymized entries from the File's owners list with ownedByMe; Drive does not populate either for items in Shared drives.
permissionsarrayEach Permission on the File: its type (user, group, domain or anyone), role, link discoverability and, in Shared drives, whether it is inherited.
shortcut_detailsobjectFor a Shortcut, its shortcutDetails with targetId and targetMimeType, plus a flag for targets outside the delivery.
content_basisobjectHow content was obtained: a download checked against the File's md5Checksum, or an export in a named format.
revisionsarrayRevision entries with id, modifiedTime, lastModifyingUser, md5Checksum and keepForever, each marked as content delivered or metadata only.
commentsarrayComments with quotedFileContent, the opaque anchor and resolved state, and each Reply with its resolve or reopen action.
activityarrayDrive activity records for the File, such as create, edit, move, rename, permissionChange and delete, with actor and time.
labelsarrayLabels on the File with their field values, from labelInfo, where the business uses Drive labels.
trash_stateobjectThe File's trashed and explicitlyTrashed flags, so items in a trash at crawl time can be filtered.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "drive_file_id": "1xQ7pLd0synthVn3kT9aB2",
  "name": "Q3 vendor renewal summary",
  "mime_type": "application/vnd.google-apps.document",
  "parents": ["1Fk0synthFolder22"],
  "path_at_crawl": "Operations/Vendors/Renewals",
  "drive_scope": { "kind": "shared_drive", "drive_id": "0AJsynthDrive07", "name": "Operations" },
  "owners": [],
  "permissions": [
    { "type": "group", "role": "fileOrganizer", "principal": "grp_p014", "inherited": true },
    { "type": "domain", "role": "reader", "allow_file_discovery": false, "inherited": false }
  ],
  "content_basis": { "method": "files.export",
                     "export_mime_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                     "md5_checksum": null },
  "revisions": [
    { "id": "412", "modified_time": "2024-07-30T16:02:41Z", "content": "metadata_only" },
    { "id": "455", "modified_time": "2024-09-18T08:40:55Z", "last_modifying_user": "usr_p118",
      "keep_forever": false, "content": "delivered" }
  ],
  "comments": [
    { "id": "AAABsynthC1", "author": "usr_p203",
      "quoted_file_content": "auto-renews for a further term",
      "content": "Did legal confirm the notice window with [VENDOR_08]?",
      "resolved": true,
      "replies": [{ "author": "usr_p118", "content": "Yes, section 2 now states it.", "action": "resolve" }] }
  ],
  "activity": [
    { "time": "2024-09-17T19:05:31Z", "actor": "usr_p118", "action": "permissionChange",
      "added": { "type": "user", "role": "commenter", "principal": "usr_p203" } }
  ],
  "labels": [{ "label": "Record class", "fields": { "class": "Contracts" } }],
  "trash_state": { "trashed": false }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Permission-aware retrieval

Each file's Permission list names the users, groups and domains that could open it, so retrieval can be scored on respecting access.

Finding the current file

Copies, shortcuts and revision lists give known answers to which file is live and which is stale.

Review dialogue tied to text

A Comment's quotedFileContent pins the remark to the passage it discusses, and the Reply chain ends in a resolve action.

Agents that organize drives

Parent chains, shared drive roles and move events show how teams file and refile work.

Parsing a real format mix

Uploaded PDFs, scans and Office files sit beside native files exported to stated formats.

Use-case guides: Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

IDs resolve

Every parent, shortcut target and comment points to a delivered file ID or one marked as excluded.

Ownership stated

Each file is marked My Drive with an owner or shared drive, and outside-owned files are absent.

Export format named

Native files carry the format they were exported to, and failed exports are listed.

Revisions counted honestly

Each revision says whether its content exists, and kept revisions are flagged.

Permissions intact

Inherited and direct permissions are told apart, and link sharing is recorded.

Activity coverage dated

The earliest activity record per drive is stated, so gaps are known.

System export

Google Drive dataset

This page covers google Drive file archives.Illustrative

A Drive file is an ID, a parent and a permission list

Drive has no paths. Every item is a File with an id that survives renames and moves, and a folder is a File whose mimeType is the folder type. A file names its container in parents, and two files called Budget can sit in one folder. The path a person sees is rebuilt by walking parents to the root and is true only on crawl day. A file has one parent, so a document that appears in a second folder is there as a Shortcut, a separate File whose shortcutDetails holds a targetId that may be trashed or belong to another organization.

Ownership splits the corpus in two. A My Drive file has owners, and the owner is a person. When that person leaves, an administrator transfers the files or they are deleted with the account, and a transfer rewrites owners, so authorship survives only in lastModifyingUser on revisions and in activity records. In a shared drive the owners list is not populated, the file carries a driveId, the organization owns it, and access comes from member roles (organizer, fileOrganizer, writer, commenter, reader) inherited down the folder tree.

Each Permission has a type of user, group, domain or anyone, a role, and for link sharing a flag for whether the file can be found by search. That records who could see each document, as current state: who had access a year earlier has to be rebuilt from permissionChange events, and a group permission resolves to people only with the group's membership. A file listing also returns files the account can open but does not own. Documents shared in by clients and vendors look like any other row until ownedByMe and the owner's domain are checked.

What the Drive API returns for uploaded and native files

Drive returns its two kinds of content differently. An uploaded PDF, Word file, image or video has binary content: files.get with alt=media returns the stored bytes, and md5Checksum lets a buyer verify them. A native Doc, Sheet or Slide has no bytes to download. The same call is refused, and content must be requested through files.export in a named format. Google documents that exported content is limited to 10 MB, so a large native file fails on that call and needs another route, and that a CSV or TSV export of a Sheet returns the first sheet only. Its export formats cover documents, spreadsheets, presentations, drawings and Apps Script, so ask how Forms, Sites and third-party app files were handled. What a DOCX or XLSX copy keeps of suggestions and formulas is the editors' doing, so open exported files and compare.

Revision history is thinner than the editor suggests. For an uploaded file each Revision is a stored copy with its own checksum, but Google documents that a revision not marked keepForever is typically purged 30 days after newer content is uploaded, sooner once a file holds 100 such revisions, and that only revisions marked Keep Forever can be downloaded. For native files Google warns that the revision list the API returns might be incomplete for a file with a large history, and that the Drive interface may show more. The delivery should state, per file type, how many revisions exist as metadata and how many carry content.

Test the sample in this order. Verify the md5Checksum of ten uploaded files. Open ten exported native files and compare the comments inside with the Comment records. Resolve every shortcut to its targetId and count missing targets. Count files whose owner sits outside the supplier's domain, which should be zero. Then look at older revisions of uploaded files: any that carry content should show keepForever as true.

What to check before licensing

  • Ask how the crawl ran: user by user across every My Drive with delegated access and drive by drive for shared drives, or through Vault or Takeout, and which metadata each route kept.
  • Have the supplier show how outside-owned files were excluded. A Drive listing includes files that clients and vendors shared with the account, so check ownedByMe, owner domains and sharedWithMe on the sample.
  • Get the export format for native Docs, Sheets and Slides in writing, with a list of files whose export failed, and ask how Forms, Sites and third-party app files were handled.
  • Ask which revisions have content. For uploaded files, count revisions per file and how many carry keepForever.
  • Resolve every Shortcut in the sample to its targetId and count targets that are missing, trashed or owned by another organization.
  • Have counsel for the buyer and for the data owner each read Google's current terms for Workspace and for Drive API use, and confirm they allow the export method and the intended use.
  • Test de-identification wherever Drive repeats identity: owners, Permission addresses, lastModifyingUser, Comment authors and mentions, activity actors, file names and folder names.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Are Google Docs, Sheets and Slides delivered in their native form?

No, because a native file has no downloadable file form. The Drive API exports each one into a chosen format, such as DOCX, XLSX, PPTX, PDF, HTML or plain text, and the choice decides what survives. Where structure matters more than layout, ask whether content was also pulled as JSON through the Docs, Sheets or Slides APIs.

How much revision history comes with a Google Drive dataset?

It depends on the file kind and has to be stated per delivery. Google documents that a revision of an uploaded file is typically purged 30 days after newer content is uploaded unless someone marked it Keep Forever, so most uploaded files carry only recent ones. For native files the API's revision list may be incomplete, and the editor's version history can show more. Ask how many revisions per file type include content and not metadata alone.

How do we know the business owns the files?

Ownership is recorded per file. A My Drive file lists its owners, a shared drive file belongs to the organization, and a file shared in by a client or vendor shows an outside owner, which the supplier should exclude. Ownership in Drive is not the same as copyright, so ask what the rights review covered beyond the owner field, such as documents a contractor or client wrote.

Can folder paths be delivered?

Yes, as a path rebuilt at crawl time. Drive stores only each file's parent ID, so the path is derived by walking parents up to the root, and a delivery can carry both the chain of IDs and the readable path. Earlier locations exist only where Drive activity holds the move events.

Do permissions show who could see a file in the past?

Not directly. The permission list is the state at crawl time: users, groups, domains or anyone with the link, each with a role. Past access has to be rebuilt from permission change events in Drive activity or the admin audit log. A group permission also needs the group's membership to resolve to people.

Is SourceX affiliated with Google?

Google Drive is named to identify the system the records come from. That does not imply a partnership with or endorsement by Google. The records belong to the business that runs Google Drive, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026. Own data like this? See how companies license it to AI developers.

See if your company qualifies