# GetProvider(string)

> Returns the data of a search provider given its ID.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static SearchProvider GetProvider(string providerId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Unique ID of the search provider.

### Returns

| Type                                                                                   | Description                   |
| -------------------------------------------------------------------------------------- | ----------------------------- |
| [SearchProvider](/engine/6000.7/script-reference/unityeditor/search/searchprovider.md) | The matching search provider. |

### Examples

```csharp
var menuProvider = SearchService.GetProvider("menu");
Debug.Assert(menuProvider != null);
```
