# search

{% hint style="info" %}
This method belongs to the class - [Alpha](/alpha-coders/reference/classes/alpha.md)
{% endhint %}

### Parameters

<table><thead><tr><th width="150" align="center">PARAMETER</th><th width="150" align="center">TYPE</th><th width="150" align="center">OPTIONAL</th><th width="243.15384615384616" align="center">DESCRIPTION</th></tr></thead><tbody><tr><td align="center"><strong>term</strong></td><td align="center"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></td><td align="center"></td><td align="center">The search term used for the matching. (MAX 128 Characters)</td></tr><tr><td align="center"><strong>options</strong></td><td align="center"><a href="/pages/w3QD42ksIiRr6zBFY6JD#bysortoptions">BySortOptions</a></td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="1f44d">👍</span></td><td align="center">Optional parameters.</td></tr></tbody></table>

### Returns

[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Wallpaper](/alpha-coders/reference/types.md#wallpaper)> | [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null)>

### Example Code

```javascript
new Alpha(apiKey).search('video games').then(x => console.log(x));

// OR

new Alpha(apiKey).search('video games', {
    page: 10,
    operator: 'min',
    type: 'phone',
    ratio: [0.75, 1]
}).then(x => console.log(x));
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://biologyscience.gitbook.io/alpha-coders/reference/methods/search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
