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

# Mojeek 搜索集成

> 使用 LangChain Python 与 Mojeek 搜索工具集成。

以下笔记本将介绍如何使用 Mojeek Search 获取结果。请访问 [Mojeek Website](https://www.mojeek.com/services/search/web-search-api/) 获取 API 密钥。

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_community.tools import MojeekSearch
```

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
api_key = "KEY"  # obtained from Mojeek Website
```

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
search = MojeekSearch.config(api_key=api_key, search_kwargs={"t": 10})
```

在 `search_kwargs` 中，您可以添加任何可在 [Mojeek Documentation](https://www.mojeek.com/support/api/search/request_parameters.html) 上找到的搜索参数。

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
search.run("mojeek")
```

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\tools\mojeek_search.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
