Our Brave Images API allows you to scrape images from Brave Images, the image search of Brave Search. For each image, the API returns its title, the page it's on with its domain and favicon, a thumbnail, and the original image with its width and height. Brave Images returns up to 200 images for a search, on a single page.


The API endpoint is https://serpapi.com/search?engine=brave_images

Head to the playground for a live and interactive demo.

API parameters

Search query

q

Required

Parameter defines the query you want to search. You can use anything that you would use in a regular Brave Images search.

Localization

country

Optional

Parameter defines the country to search from. It's a two-letter country code (e.g., us (default) for the United States, gb for the United Kingdom, or fr for France). Head to the Brave countries page for a full list of supported Brave countries.

Advanced filters

spelling

Optional

Parameter defines whether to fix the spelling of misspelled queries, like Brave. It can be set to true (default) to search for the spelling fix (e.g., minecraft mods for minecarft modz), as shown in search_information.spelling_fix, or false to search for the query as typed, like Brave's Search instead for link.

SerpApi parameters

engine

Required

Set parameter to brave_images to use the Brave Images API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the Brave Images results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the format of the result. It can be set to json (default) to get a structured JSON of the results, html to get the raw HTML retrieved, or md to get a Markdown-formatted version optimized for LLMs and AI agents.

json_restrictor

Optional

Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

API results

JSON results

JSON output includes structured data for Images Results.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML results

This API does not have a full HTML response, only text. search_metadata.prettify_html_file contains a link to the prettified version of the result. It is displayed in the playground.

Markdown results

Markdown output is optimized for LLMs and AI agents. It provides a curated view of the JSON results in a token-efficient format using tables, markdown links, and YAML frontmatter.

To access, use the output=md parameter, the /search.md endpoint, or request header Accept: text/markdown.

API examples

Example with q: minecraft mods

Example with q: minecraft mods

JSON Example

{
  ...
  "images_results": [
    {
      "title": "Sodium, Lithium et Phosphor – 3 mods pour optimiser Minecraft – 1.15.2 → 26.2",
      "link": "https://minecraft.fr/categorie/mods/",
      "source": "minecraft.fr",
      "source_logo": "https://imgs.search.brave.com/EL1ZHQQgXbBmhyYXi2PjSiH78ZxkvpYRYNhO8seU6kw/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvMGFjNDhkNDY3/MjAwOGE2YjkyNzBl/NTllYWY2ZDdmN2Q4/ZjE2OTA1OGQ1ZTcw/ZGIzMzRlM2Y1YmRk/ZDYwOTdhNS9taW5l/Y3JhZnQuZnIv",
      "thumbnail": "https://imgs.search.brave.com/8Hwe75oQgiPJ7PpgzIoQv1QwJ_viCPUrLTEHl3nTyco/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly9taW5l/Y3JhZnQuZnIvd3At/Y29udGVudC91cGxv/YWRzLzIwMjEvMDgv/c29kaXVtLWxpdGhp/dW0tZXQtcGhvc3Bo/b3ItMy1tb2RzLXBv/dXItb3B0aW1pc2Vy/LW1pbmVjcmFmdC00/NDB4MjY0LmpwZw",
      "original": "https://minecraft.fr/wp-content/uploads/2021/08/sodium-lithium-et-phosphor-3-mods-pour-optimiser-minecraft-440x264.jpg",
      "original_width": 440,
      "original_height": 264,
      "confidence": "high"
    },
    {
      "title": "Minecraft Best Mods",
      "link": "https://beebom.com/best-minecraft-mods/",
      "source": "beebom.com",
      "source_logo": "https://imgs.search.brave.com/xXwYmRed8TzPCwiBcqOnE0LBpzVPHnwGxFIzYWRBFAY/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvMGU5NTFjNWMx/NTI3ZTY0ZjUxOTNi/MzdiZTU3NGYzNzZj/M2M5NzU3ZTIzMmI0/OWRkY2MzMGY1ODUx/YjY4ZWYyNy9iZWVi/b20uY29tLw",
      "thumbnail": "https://imgs.search.brave.com/hE8sM9gC6ECI6hE8EL2X4PEJF4qYMEGtT3N2dGcAFyw/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly9zdGF0/aWMuYmVlYm9tLmNv/bS93cC1jb250ZW50/L3VwbG9hZHMvMjAy/MS8xMC9NaW5lY3Jh/ZnQtQmVzdC1Nb2Rz/LmpwZz93PTExNjgm/cXVhbGl0eT03NQ",
      "original": "https://static.beebom.com/wp-content/uploads/2021/10/Minecraft-Best-Mods.jpg?w=1168&quality=75",
      "original_width": 1168,
      "original_height": 700,
      "confidence": "high"
    },
    ...
  ]
}

Example with country: gb

Brave Images ranks the images for the country of the search. When country isn't set, the search is from the United States (us), so the results don't depend on where the request comes from.

Example with country: gb

JSON Example

{
  ...
  "search_parameters": {
    "engine": "brave_images",
    "q": "football",
    "country": "gb"
  },
  "images_results": [
    {
      "title": "American Football Ball on Green Field as Background",
      "link": "https://www.canva.com/photos/s/football/",
      "source": "canva.com",
      "source_logo": "https://imgs.search.brave.com/7cVOFDBkBYBy6vzfQl9pYittIldCaM3BYvXZWTTwF5o/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvZjg4ZDcxYmQ2/ZjkzMGEyNjUyNGJh/MjY0YjI4YmJmMWQz/YTcwNWIwOTFjNzUx/YmNlMWNmNmFkYTJl/NDA3YTdmMy93d3cu/Y2FudmEuY29tLw",
      "thumbnail": "https://imgs.search.brave.com/80kkNu-Qv_MBTVtghmEFMRLNfgcbh-_0gpAetniuKdA/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly9tYXJr/ZXRwbGFjZS5jYW52/YS5jb20vREdJYncv/TUFIRnFLREdJYncv/MS90bC9jYW52YS1h/bWVyaWNhbi1mb290/YmFsbC1iYWxsLW9u/LWdyZWVuLWZpZWxk/LWFzLWJhY2tncm91/bmQtTUFIRnFLREdJ/YncuanBn",
      "original": "https://marketplace.canva.com/DGIbw/MAHFqKDGIbw/1/tl/canva-american-football-ball-on-green-field-as-background-MAHFqKDGIbw.jpg",
      "original_width": 550,
      "original_height": 367,
      "confidence": "high"
    },
    ...
  ]
}

Example with a misspelled query: minecarft modz

Like Brave Images, the API searches for the spelling fix of a misspelled query, which is in search_information.spelling_fix.

Example with a misspelled query: minecarft modz

JSON Example

{
  ...
  "search_information": {
    "spelling_fix": "minecraft mods",
    "images_results_state": "Showing results for fixed spelling"
  },
  "images_results": [
    {
      "title": "Sodium, Lithium et Phosphor – 3 mods pour optimiser Minecraft – 1.15.2 → 26.2",
      "link": "https://minecraft.fr/categorie/mods/",
      "source": "minecraft.fr",
      ...
    },
    ...
  ]
}

Example with spelling: false

With spelling set to false, the API searches for the query as typed, like the Search instead for link of Brave Images.

Example with spelling: false

JSON Example

{
  ...
  "search_parameters": {
    "engine": "brave_images",
    "q": "minecarft modz",
    "country": "us",
    "spelling": false
  },
  "images_results": [
    {
      "title": "Mods For Minecarft - mods-for-minecraft-maps-list",
      "link": "https://mwm.ai/apps/mods-for-minecarft/1582360192",
      "source": "mwm.ai",
      "source_logo": "https://imgs.search.brave.com/dWN1ADICw3sGAb5PtyHerghLcI-GNqT3i8AXd33JdNM/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvYzgyMzE4OTkz/NjZkMTJkYjk4NzI0/MzIyM2JmYmEzZDA2/NjJmMTg2MDgyOWI5/ZmEyMTliMWZkMGQy/MmY0YmVhNi9td20u/YWkv",
      "thumbnail": "https://imgs.search.brave.com/xUcHgT55a4SRSAQd0Ec3qN_dZwnNEn5ngLNRwDSwd9U/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly9pczEt/c3NsLm16c3RhdGlj/LmNvbS9pbWFnZS90/aHVtYi9QdXJwbGVT/b3VyY2UxMjUvdjQv/ZmIvMWYvNmEvZmIx/ZjZhZTUtZWY0OC1j/YTkyLTAwODQtY2Zi/Y2YyYWYwYzRlL2Rj/ZjhmMmYxLTUyYzEt/NDVhNS05NGFjLTg2/NjNjNDM0NThhZl8y/LmpwZy80NzF4MTAy/NC5qcGVn",
      "original": "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource125/v4/fb/1f/6a/fb1f6ae5-ef48-ca92-0084-cfbcf2af0c4e/dcf8f2f1-52c1-45a5-94ac-8663c43458af_2.jpg/471x1024.jpeg",
      "original_width": 471,
      "original_height": 1019,
      "confidence": "medium"
    },
    ...
  ]
}

JSON structure overview

{
  ...
  "search_information": {
    "spelling_fix": "String - Query that Brave Images searched for instead of the misspelled one. (Ex. minecraft mods for minecarft modz)",
    "images_results_state": "String - 'Showing results for fixed spelling' when Brave Images searched for the spelling fix, or 'Fully empty' when there are no images."
  },
  "images_results": [
    {
      "title": "String - Title of the image. Absent when Brave Images has none.",
      "link": "String - Link to the page with the image.",
      "source": "String - Domain of the page with the image. (Ex. beebom.com)",
      "source_logo": "String - Link to the favicon of the page, served by Brave.",
      "thumbnail": "String - Link to the thumbnail of the image, served by Brave.",
      "original": "String - Link to the original image.",
      "original_width": "Integer - Width of the original image, in pixels.",
      "original_height": "Integer - Height of the original image, in pixels.",
      "confidence": "String - Confidence of Brave Images in the relevance of the image to the query: high, medium, or low."
    },
    ...
  ],
  ...
}