Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Brave Image Search

Documentación de la API
https://api.sandbase.ai/v1/api/brave/images

Image Search from Brave. Returns the official Brave API response unchanged.

Precio
$0.005USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 5 opcionales

Entorno de pruebas

Entrada
The user’s search query term. Query can not be empty. Maximum of 400 characters and 50 words in the query.
1200
The number of search results returned in response. The maximum is 200. The actual number delivered may be less than requested. NOTE: Image search is not paginated and has no offset parameter. Raise count to get more results. Rango: de 1 a 200.
The search query country, where the results come from. The country string is limited to 2 character country codes of supported countries and ALL for worldwide.
Filters search results for adult content. The following values are supported: off - No content filtering (except for illegal content). strict - Drops all adult content from search results.
The search language preference. The 2 or more character language code for which the search results are provided.
Whether to spell check provided query. If the spell checker is enabled, the modified query is always used for search. The modified query can be found in altered key from the query response model.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Brave Image Search API

Returns image search results for a text query from Brave. Each result has the image URL, a thumbnail, the title, and the page that hosts the image. The only required input is q.

Use cases

  • Collect reference photos of a landmark, product, or topic for a mood board or article draft.
  • Find the pages that host a given image by reading the url of each result.
  • Build a gallery that shows thumbnails first and loads the full-size image on click.
  • Compare which domains show up most often for a query using source or meta_url.hostname.

Request

curl -X POST "https://api.sandbase.ai/v1/api/brave/images" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "golden gate bridge"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
qstringYesThe user’s search query term. Query can not be empty. Maximum of 400 characters and 50 words in the query.
countintegerNoThe number of search results returned in response. The maximum is 200. The actual number delivered may be less than requested. NOTE: Image search is not paginated and has no offset parameter. Raise count to get more resu
countrystringNoThe search query country, where the results come from. The country string is limited to 2 character country codes of supported countries and ALL for worldwide.
safesearchstringNoFilters search results for adult content. The following values are supported: off - No content filtering (except for illegal content). strict - Drops all adult content from search results.
search_langstringNoThe search language preference. The 2 or more character language code for which the search results are provided.
spellcheckbooleanNoWhether to spell check provided query. If the spell checker is enabled, the modified query is always used for search. The modified query can be found in altered key from the query response model.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "extra": {
    "might_be_offensive": false
  },
  "query": {
    "original": "golden gate bridge",
    "show_strict_warning": false,
    "spellcheck_off": false
  },
  "results": [
    {
      "confidence": "high",
      "meta_url": {
        "favicon": "https://imgs.search.brave.com/YSHe_5h9QnEav4cobHlGkLih-MR5YmLIBOWmywSPDz0/rs:fit…",
        "hostname": "oceanusadventure.com",
        "netloc": "oceanusadventure.com",
        "path": "› golden-gate-bridge-photo-spots",
        "scheme": "https"
      },
      "page_fetched": "2026-10-27T00:46:21Z",
      "properties": {
        "height": 683,
        "placeholder": "https://imgs.search.brave.com/jy6Pk7D1t1371CbAKbTqpirvz_d_6xaL9A_it0-MbX0/rs:fit…",
        "url": "https://oceanusadventure.com/wp-content/uploads/2025/02/DSC00616-min-1024x683.jp…",
        "width": 1024
      },
      "source": "oceanusadventure.com",
      "thumbnail": {
        "height": 333,
        "src": "https://imgs.search.brave.com/lSV2QLwhsI8RCUie7Uubj6f_jH7JYZ9eWA61tbjfrjs/rs:fit…",
        "width": 500
      },
      "title": "Photo of the Golden Gate Bridge half in Fog from Battery Spencer Viewpoint",
      "type": "image_result",
      "url": "https://oceanusadventure.com/golden-gate-bridge-photo-spots/"
    }
  ],
  "type": "images"
}

Response fields

FieldMeaning
results[].titleTitle text of the image result, taken from the page that hosts it.
results[].urlURL of the web page that contains the image.
results[].properties.urlDirect URL of the full-size image file.
results[].properties.width / results[].properties.heightWidth and height of the full-size image.
results[].thumbnail.srcURL of a smaller preview of the image, served through a Brave image proxy.
results[].thumbnail.width / results[].thumbnail.heightWidth and height of the thumbnail.
results[].sourceDomain name of the site that hosts the image.
results[].meta_url.hostname / results[].meta_url.faviconHostname of the hosting page and the URL of its favicon.
results[].confidenceConfidence label for the result, such as high.
results[].page_fetchedISO 8601 timestamp for when the hosting page was fetched.
query.originalThe query string as you sent it.

Notes

  • Image search has no pagination and no offset. Raise count (up to 200) to get more results. The response may contain fewer results than requested.
  • Set safesearch to off to remove adult content filtering. The default is strict.
  • Use country and search_lang to change the market and language of the results.
  • For web pages instead of images, call Brave Web Search. For video results, call Brave Video Search.

Pricing

$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Brave$0.005 por llamadaJSON
Brave$0.01 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON
Brave$0.005 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Brave Image Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/brave/images con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Brave Image Search?

$0.005 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Brave Image Search?

Requeridos: q (string). Opcionales: count (integer), country (una de AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL), safesearch (una de off, strict), search_lang (una de ar, eu, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, en-gb, et, fi, fr, gl, de, el, gu, he, hi, hu, is, it, ja, jp, kn, ko, lv, lt, ms, ml, mr, nb, pl, pt-br, pt-pt, pa, ro, ru, sr, sk, sl, es, sv, ta, te, th, tr, uk, vi) y spellcheck (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Brave Image Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Brave?

No. Brave Image Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Brave por separado.