> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Serper Tools

**[Serper](https://serper.dev/)** is a Google Search API that provides access to Google search results, news articles, academic papers from Google Scholar, business reviews, and web scraping capabilities.

## Setup

Get an API key from [Serper Console](https://serper.dev/api-keys).

## Examples

```python cookbook/tools/serper_tools.py theme={null}
from agno.agent import Agent
from agno.tools.serper import SerperTools

agent = Agent(
    tools=[SerperTools()],
    show_tool_calls=True,
)

agent.print_response(
    "Search for the latest news about artificial intelligence developments",
    markdown=True,
)
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API key">
    ```bash theme={null}
    export SERPER_API_KEY=xxx
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash theme={null}
    pip install -U requests openai agno
    ```
  </Step>

  <Step title="Run Agent">
    ```bash theme={null}
    python cookbook/tools/serper_tools.py
    ```
  </Step>
</Steps>

### Google Scholar Search

```python theme={null}
agent.print_response(
    "Find recent academic papers about large language model safety",
    markdown=True,
)
```

### Reviews Search

```python theme={null}
agent.print_response(
    "Analyze reviews for this Google Place ID: ChIJ_Yjh6Za1j4AR8IgGUZGDDTs",
    markdown=True
)
```

### Web Scraping

```python theme={null}
agent.print_response(
    "Scrape and summarize content from https://openai.com/index/gpt-4/",
    markdown=True
)
```
