CategoriesOptions

public struct CategoriesOptions : Codable, Equatable

Returns a hierarchical taxonomy of the content. The top three categories are returned by default. Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.

  • Set this to true to return explanations for each categorization. This is available only for English categories..

    Declaration

    Swift

    public var explanation: Bool?
  • Maximum number of categories to return.

    Declaration

    Swift

    public var limit: Int?
  • (Beta) Enter a custom model ID to override the standard categories model. This is available only for English categories..

    Declaration

    Swift

    public var model: String?
  • Initialize a CategoriesOptions with member variables.

    Declaration

    Swift

    public init(
        explanation: Bool? = nil,
        limit: Int? = nil,
        model: String? = nil
    )

    Parameters

    explanation

    Set this to true to return explanations for each categorization. This is available only for English categories..

    limit

    Maximum number of categories to return.

    model

    (Beta) Enter a custom model ID to override the standard categories model. This is available only for English categories..

    Return Value

    An initialized CategoriesOptions.