Skip to main content

Article

Represents an input article to be analyzed.

Fields

PropertyRequiredTypeDescription
idTruestringUnique identifier for the article.
titleFalsestringTitle of the article.
leadFalsestringLead paragraph (also called abstract or summary).
textFalsestringMain body of the article. Required if paraSpecs is missing or empty. Cannot be used together with paraSpecs.
paraSpecsFalseList[ParaSpec]Alternative to using title, lead, and text. Defines structured article paragraphs. Mutually exclusive with those three fields.
languageFalsestringLanguage of the article, in ISO 639 format (e.g., en, fr). If not specified, language will be detected automatically.
publishDateFalsestringPublication date of the article in ISO 8601 format (e.g., 2025-01-01T12:00:00Z).
categoriesFalseList[Category]Topic categories or sections (e.g., "Politics", "Technology"). Supports both standard and custom taxonomies.
recommendationFalseRecommendationOptional recommendation settings (e.g., for suggesting related articles or images).
metadataFalseMap[string, string]Arbitrary metadata related to the article (e.g., source, author, URL).