Skip to main content

LlamaIndex Tools Integration: SERPEX

This tool allows you to use SERPEX API to search the web and get real-time results from multiple search engines within your LlamaIndex application.

Installation

pip install llama-index-tools-serpex

Usage

from llama_index.tools.serpex import SerpexToolSpec
from llama_index.agent.openai import OpenAIAgent

# Initialize the tool
serpex_tool = SerpexToolSpec(api_key="your_serpex_api_key")

# Create agent with the tool
agent = OpenAIAgent.from_tools(serpex_tool.to_tool_list(), verbose=True)

# Use the agent
response = agent.chat("What are the latest AI developments?")
print(response)

Advanced Usage

# Use specific search engine
serpex_tool = SerpexToolSpec(
    api_key="your_api_key",
    engine="google",  # or 'bing', 'duckduckgo', 'brave', etc.
)

# Search with time filter
results = serpex_tool.search(
    "recent AI news",
    num_results=10,
    time_range="day",  # 'day', 'week', 'month', 'year'
)

# Use different engines for different queries
results = serpex_tool.search(
    "privacy tools", engine="duckduckgo", num_results=5
)

API Key

Get your API key from SERPEX Dashboard.

Set as environment variable:

export SERPEX_API_KEY=your_api_key

Features

  • Multiple Search Engines: Auto-routing, Google, Bing, DuckDuckGo, Brave, Yahoo, Yandex
  • Real-time Results: Get up-to-date search results via API
  • Time Filtering: Filter by day, week, month, or year
  • Fast & Reliable: 99.9% uptime SLA with global proxy network
  • Structured Data: Clean JSON responses optimized for AI applications
  • Cost Effective: Only 1 credit per request, failed requests free

Search Engines

  • auto - Automatically routes to the best available engine (default)
  • google - Google Search
  • bing - Microsoft Bing
  • duckduckgo - Privacy-focused DuckDuckGo
  • brave - Brave Search
  • yahoo - Yahoo Search
  • yandex - Yandex Search

Metadata

Release files for llama-index-tools-serpex 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-serpex 0.3.0
File Size Uploaded Provenance Actions
llama_index_tools_serpex-0.3.0.tar.gz 4.7 kB Without provenance Details for llama_index_tools_serpex-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-serpex 0.3.0
File Interpreter ABI Platform Actions
llama_index_tools_serpex-0.3.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_serpex-0.3.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / llama_index_tools_serpex-0.3.0.tar.gz

Download URL llama_index_tools_serpex-0.3.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
59a627768a1992f58da6c6172e20c2a1cab93e8e0868084eff2f5595d1dade2a
BLAKE2b-256 checksum
How to use checksums
8ca013bec3b018d5f698eb36449450c3675558cbfca91059b8e98c96dfc4f69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_tools_serpex-0.3.0-py3-none-any.whl

Download URL llama_index_tools_serpex-0.3.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa36bbc3369b0c23e2cbf9960744c8221e870bdffcb52e220df42a829b971c6b
BLAKE2b-256 checksum
How to use checksums
18ee849ffaf99255a6621c8f2db89e887b531e4ff1fbdbba43cbf5f94de9f3f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-tools-serpex 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page