---
title: search
slug: Mozilla/Add-ons/WebExtensions/API/search
tags:
  - API
  - Add-ons
  - Extensions
  - Reference
  - Search
  - Search Engines
  - WebExtensions
---
{{AddonSidebar}}

Retrieves search engines and executes a search with a specific search engine.

To use this API you need to have the `"search"` [permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions).

## Functions

- {{WebExtAPIRef("search.get()")}}
  - : Retrieve all search engines.
- {{WebExtAPIRef("search.search()")}}
  - : Search using the specified search engine.

## Browser compatibility

{{Compat("webextensions.api.search", 1, 1)}} {{WebExtExamples("h2")}}
