---
source_url: "https://you.com/docs/integrations/langchain"
title: "LangChain Integration | You.com | You.com | Documentation"
mirrored_at: 2026-08-12T01:03:39.795Z
host: you.com
cited_in_42a: true
mirror_canonical: "https://index.42a.ai/you.com/docs/integrations/langchain"
---

> **Original source:** https://you.com/docs/integrations/langchain

`YouSearchTool` wraps the You.com Web Search API as a LangChain tool, making it available to any agent that uses tools.

1

from langchain\_youdotcom import YouSearchTool

2

3

tool \= YouSearchTool()

4

result \= tool.invoke("latest developments in quantum computing")

5

print(result)

To customize search parameters, pass them via `api_wrapper`:

1

from langchain\_youdotcom import YouSearchAPIWrapper, YouSearchTool

2

3

tool \= YouSearchTool(

4

    api\_wrapper\=YouSearchAPIWrapper(

5

        count\=5,

6

        livecrawl\="web",       # "web", "news", or "all"

7

        freshness\="day",       # "day", "week", "month", or "year"

8

        safesearch\="moderate", # "off", "moderate", or "strict"

9

    )

10

)

11

result \= tool.invoke("AI news today")