GoogleDoc

The GoogleDoc type represents a Google Doc document. It includes the document’s content, metadata, and any extracted information.

Schema

FieldTypeDescription
idstringUnique identifier
createdAtdatetimeCreation timestamp
updatedAtdatetimeLast update timestamp
sourceIdstringID of the data source
remoteIdstringID in Google Drive
titlestringDocument title
textstringDocument text content
htmlstringDocument HTML content
urlstringGoogle Drive URL
pathstring[]Path in Google Drive
pathStringstringPath as string
mimeTypestringMIME type
originalNamestringOriginal filename
sizenumberFile size in bytes
propertiesobjectAdditional properties
tagsstring[]Document tags
authorsstring[]Document authors
subtitlestringDocument subtitle
descriptionstringDocument description
tocobject[]Table of contents
footnotesobject[]Document footnotes

Example Usage

// Get all Google Docs
const { data } = await unbody.get
  .googleDoc
  .select("title", "text", "url")
  .exec();
 
// Search Google Docs
const { data } = await unbody.get
  .googleDoc
  .search.about("my search query")
  .exec();
 
// Filter Google Docs
const { data } = await unbody.get
  .googleDoc
  .where({ title: "My Document" })
  .exec();

Next Steps

©2024 Unbody