Metadata-Version: 2.4
Name: crewai-x402search
Version: 1.0.0
Summary: CrewAI tool for x402search — natural language search across 14,000+ indexed API services
Project-URL: Homepage, https://x402search.xyz
Project-URL: Repository, https://github.com/x402-index/crewai-x402search
License: MIT
Keywords: agents,api-discovery,crewai,crypto,x402
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: crewai>=0.80.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: requests>=2.28.0
Description-Content-Type: text/markdown

# crewai-x402search

Natural language search across **14,000+ indexed API services** for CrewAI agents.

**Cost:** $0.01 USDC per query via x402 protocol on Base mainnet — paid automatically, no API key required.

## Installation

pip install crewai-x402search

## Usage

from crewai import Agent, Task, Crew
from crewai_x402search import X402SearchTool

search_tool = X402SearchTool()

agent = Agent(
    role="API Researcher",
    goal="Find the best APIs for a given capability",
    backstory="Expert at discovering and evaluating API services",
    tools=[search_tool],
    verbose=True,
)

task = Task(
    description="Find APIs for real-time cryptocurrency whale alerts.",
    expected_output="A list of API services with endpoints and pricing.",
    agent=agent,
)

crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()

## Best queries

| Query | Results |
|-------|---------|
| whale alerts | 10 |
| funding rates | 10 |
| token price | 10 |
| sentiment analysis | 7 |
| on-chain analytics | 8 |

## Links
- Live API: https://x402search.xyz
- x402 protocol: https://x402.org
