> ## Documentation Index
> Fetch the complete documentation index at: https://orangeslice.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Search

> Search Google and access the knowledge graph

<Info>
  <Icon icon="coins" /> **1 credit** per search
</Info>

## Method

```typescript theme={null}
services.web.search(params);
```

## Input

<ParamField path="query" type="string" required>
  Search query. Do NOT use `site:` operator - use the `domain` parameter instead.
</ParamField>

<ParamField path="domain" type="string" optional>
  Restrict search to a specific domain
</ParamField>

<ParamField path="advance_search" type="boolean" optional>
  Enable advanced search to access the knowledge graph
</ParamField>

## Output

<ResponseField name="results" type="array">
  Search results array: - `title` - Page title - `link` - URL - `displayed_link` - Display URL - `snippet` - Text
  snippet
</ResponseField>

<ResponseField name="knowledgeGraph" type="object">
  Google Knowledge Graph data (if available): - `title` - Entity name - `description` - Entity description - `image` -
  Image URL - `website` - Official website - `hours_links` - Service links (DoorDash, Uber Eats, etc.)
</ResponseField>

## Example

```typescript theme={null}
const search = await services.web.search({
   query: "Acme Corp funding",
   advance_search: true,
});

return search.results[0]?.link;
```

```typescript theme={null}
// Search within a specific domain
const search = await services.web.search({
   query: "pricing",
   domain: "stripe.com",
});

return search.results;
```
