TextBlock

The TextBlock type represents a block of text. It can be part of a larger document or stand alone.

Schema

FieldTypeDescription
idstringUnique identifier
createdAtdatetimeCreation timestamp
updatedAtdatetimeLast update timestamp
sourceIdstringID of the data source
remoteIdstringID in original system
textstringText content
htmlstringHTML content
tagNamestringHTML tag name
classNamesstring[]HTML class names
ordernumberBlock order
propertiesobjectAdditional properties

Example Usage

// Get all text blocks
const { data } = await unbody.get
  .textBlock
  .select("text", "tagName", "order")
  .exec();
 
// Search text blocks
const { data } = await unbody.get
  .textBlock
  .search.about("my search query")
  .exec();
 
// Filter text blocks
const { data } = await unbody.get
  .textBlock
  .where({ tagName: "p" })
  .exec();

Next Steps

©2024 Unbody