Brave Image Search API

Response Objects

# ImageSearchApiResponse

Top level response model for successful Image Search API requests. The API can also respond back with an error response based on invalid subscription keys and rate limit events.

FieldTypeRequiredDescription
type"images"true

The type of search API result. The value is always images.

queryQuerytrue

Image search query string.

resultslist [ ImageResult ]true

The list of image results for the given query.

extraExtratrue

Additional information about the image search results.

# Query

A model representing information gathered around the requested query.

FieldTypeRequiredDescription
originalstringtrue

The original query that was requested.

alteredstringfalse

The altered query by the spellchecker. This is the query that is used to search.

spellcheck_offboolfalse

Whether the spellchecker is enabled or disabled.

show_strict_warningstringfalse

The value is true if the lack of results is due to a strict safesearch setting. Adult content relevant to the query was found, but was blocked by safesearch.

# ImageResult

A model representing an image result for the requested query.

FieldTypeRequiredDescription
typeimage_resulttrue

The type of image search API result. The value is always image_result.

titlestringfalse

The title of the image.

urlstringfalse

The original page URL where the image was found.

sourcestringfalse

The source domain where the image was found.

page_fetchedstringfalse

The ISO date time when the page was last fetched. The format is YYYY-MM-DDTHH:MM:SSZ.

thumbnailThumbnailfalse

The thumbnail for the image.

propertiesPropertiesfalse

Metadata for the image.

meta_urlMetaUrlfalse

Aggregated information on the URL associated with the image search result.

confidence"low" | "medium" | "high"false

The confidence level for the image result.

# Thumbnail

Aggregated details representing the image thumbnail.

FieldTypeRequiredDescription
srcstringfalse

The served URL of the image.

# Properties

Metadata on an image.

FieldTypeRequiredDescription
urlstringfalse

The image URL.

placeholderstringfalse

The lower resolution placeholder image URL.

# MetaUrl

Aggregated information about a URL.

FieldTypeRequiredDescription
schemestringfalse

The protocol scheme extracted from the URL.

netlocstringfalse

The network location part extracted from the URL.

hostnamestringfalse

The lowercased domain name extracted from the URL.

faviconstringfalse

The favicon used for the URL.

pathstringfalse

The hierarchical path of the URL useful as a display string.

# Extra

Additional information about the image search results.

FieldTypeRequiredDescription
might_be_offensivebooleantrue

Indicates whether the image search results might contain offensive content.