Skip to main content

SearchCriteria

Criteria when searching for images

formatsImageFormat[]

A filter used by the search which will limit the result entities to those having one of the provided image formats

Possible values: [PNG, JPEG, WEBP, GIF, AVIF, HEIF]

Default value: ["PNG","JPEG","WEBP","GIF","AVIF","HEIF"]
Example: ["PNG","JPEG"]
keyword object

A filter which limits the result entities with the provided text specifications

textstringrequired

The text to search for

Example: comfy
inNamebooleanrequired

Whether the text should be searched in the image name

inMetadatabooleanrequired

Whether the text should be searched in the image metadata

inFeaturesbooleanrequired

Whether the text should be searched in the image features

tags object

A filter which limits the result entities with the provided tags specifications

valuesstring[]required

The tags to search for, i.e. images matching at least of the tags will be included in the result

Possible values: non-empty and <= 64 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,64}$

Example: ["nature"]
features object

A filter which limits the result entities with the provided features specifications

operatorSearchFeatureLogicalOperatorrequired

The logical operator

Possible values: [or, and, not]

Example: or
conditions object[]required

The search conditions

  • Array [
  • extensionIdstring

    The extension identifier

    Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$

    Example: extension-id
    typeImageFeatureType

    The image feature type

    Possible values: [caption, description, comment, annotation, metadata, recipe, identity, physics, other]

    Default value: other
    Example: nature
    formatImageFeatureFormatrequired

    The image feature format

    Possible values: [string, integer, float, boolean, json, yaml, xml, markdown, html, binary, ui]

    Default value: string
    namestring

    The image feature name

    Possible values: non-empty and <= 64 characters

    Example: field
    operatorSearchFeatureComparisonOperatorrequired

    The image feature comparison operator

    Possible values: [equals, different, contains, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual]

    value objectrequired

    The image feature value

    anyOf
    string

    Possible values: <= 524288 characters

  • ]
  • features

    Other nested search features

    properties object

    A filter which limits the result entities with the provided technical properties

    width object

    The range of the image width

    minimuminteger<int64>

    The minimal value

    Possible values: >= 0

    Example: 0
    maximuminteger<int64>

    The maximal value

    Example: 100
    height object

    The range of the image height

    minimuminteger<int64>

    The minimal value

    Possible values: >= 0

    Example: 0
    maximuminteger<int64>

    The maximal value

    Example: 100
    weightInBytes object

    The range of the image binary weight

    minimuminteger<int64>

    The minimal value

    Possible values: >= 0

    Example: 0
    maximuminteger<int64>

    The maximal value

    Example: 100
    creationDate object

    The range of the image creation dates, expressed in milliseconds from 1970, January 1st

    minimuminteger<int64>

    The minimal value

    Possible values: >= 0

    Example: 0
    maximuminteger<int64>

    The maximal value

    Example: 100
    modificationDate object

    The range of the image modification dates, expressed in milliseconds from 1970, January 1st

    minimuminteger<int64>

    The minimal value

    Possible values: >= 0

    Example: 0
    maximuminteger<int64>

    The maximal value

    Example: 100
    SearchCriteria
    {
    "formats": [
    "PNG",
    "JPEG"
    ],
    "keyword": {
    "text": "comfy",
    "inName": true,
    "inMetadata": true,
    "inFeatures": true
    },
    "tags": {
    "values": [
    "nature"
    ]
    },
    "features": {
    "operator": "or",
    "conditions": [
    {
    "extensionId": "extension-id",
    "type": "nature",
    "format": "string",
    "name": "field",
    "operator": "equals",
    "value": "Three women in a flower arrangement"
    }
    ]
    },
    "properties": {
    "width": {
    "minimum": 0,
    "maximum": 100
    },
    "height": {
    "minimum": 0,
    "maximum": 100
    },
    "weightInBytes": {
    "minimum": 0,
    "maximum": 100
    },
    "creationDate": {
    "minimum": 0,
    "maximum": 100
    },
    "modificationDate": {
    "minimum": 0,
    "maximum": 100
    }
    }
    }