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

# Oxylabs Tools

> Search Google through Oxylabs and summarize the top results with OxylabsTools.

```python oxylabs_tools.py theme={null}
"""
Oxylabs Tools
=============================

Demonstrates oxylabs tools.
"""

from agno.agent import Agent
from agno.tools.oxylabs import OxylabsTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(
    tools=[OxylabsTools()],
    markdown=True,
)

# Example 1: Google Search

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response(
        "Let's search for 'latest iPhone reviews' and provide a summary of the top 3 results. ",
    )

    # Example 2: Amazon Product Search
    # agent.print_response(
    #     "Let's search for an Amazon product with ASIN 'B07FZ8S74R' (Echo Dot). ",
    # )

    # Example 3: Multi-Domain Amazon Search
    # agent.print_response(
    #     "Use search_amazon_products to search for 'gaming keyboards' on both:\n"
    #     "1. Amazon US (domain='com')\n"
    #     "2. Amazon UK (domain='co.uk')\n"
    #     "Compare the top 3 results from each region including pricing and availability."
    # )
```

## Run the Example

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

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

  <Step title="Export environment variables">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export OPENAI_API_KEY="your_openai_api_key_here"
      export OXYLABS_PASSWORD="your_oxylabs_password_here"
      ```

      ```bash Windows theme={null}
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      $Env:OXYLABS_PASSWORD="your_oxylabs_password_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `oxylabs_tools.py`, then run:

    ```bash theme={null}
    python oxylabs_tools.py
    ```
  </Step>
</Steps>

Full source: [cookbook/91\_tools/oxylabs\_tools.py](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/oxylabs_tools.py)
