Agent Browser SDK (Python)
The Google for AI Agents — queryable knowledge graph for 190+ venues across cafes, restaurants, hotels, and medspas. Monetized via x402 HTTP 402 micropayments.
Install
pip install agent-browser-sdk
Quick Start
from agent_browser_sdk import AgentBrowserClient
with AgentBrowserClient(mock_payment=True) as client:
# Multi-category intent search
results = client.search(query="wifi cafe in wynwood", limit=5)
for venue in results.data:
print(f"{venue.name} ({venue.agent_match_index}/100): {venue.rationale}")
# Get recommendations
recs = client.recommend(
category="cafe",
preferred_area="Wynwood",
required_features=["fast_wifi", "outdoor_seating"],
max_price_level="$$"
)
for r in recs["data"]:
print(f"Recommend: {r['name']} - {r['_rationale']}")
# Pricing analytics
analytics = client.pricing_analytics(category="cafe")
print(f"Average espresso: ${analytics['data'][0]['avg_price_usd']}")
LangChain Tool
from agent_browser_sdk.client import create_langchain_tool
tool = create_langchain_tool()
# Add to your LangChain agent...
x402 Payment (Real Flow)
For production, set mock_payment=False and provide wallet_private_key:
client = AgentBrowserClient(
mock_payment=False,
wallet_private_key="0x..." # Base network wallet
)
The SDK auto-signs USDC transfers for each request ($0.002 USDC).
Endpoints
| Method | Endpoint | Cost | Description |
|---|---|---|---|
GET |
/api/v1/search |
$0.002 USDC | Multi-category intent search |
POST |
/api/v1/recommend |
$0.005 USDC | Ranked recommendations |
GET |
/api/v1/venues |
$0.002 USDC | List venues |
GET |
/api/v1/venues/{id} |
$0.002 USDC | Venue details |
GET |
/api/v1/analytics/pricing-summary |
$0.002 USDC | Price analytics |
Live API
- Base URL:
https://medspa-refinery-api-44xz.onrender.com - Manifest:
/llms.json - Docs:
/docs - Pay-To:
0x8Ae639d10b23Eb630241d7fD6275255a2e51Ec95(Base Network)
License
MIT
Metadata
Release files for agent-browser-sdk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_browser_sdk-1.0.0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_browser_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / agent_browser_sdk-1.0.0.tar.gz
| Download URL | agent_browser_sdk-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53635ae2f0d0149f4a5cb96b4f3133826dda4a5f5b4bf5efddba737d58c1acc2
|
|
BLAKE2b-256 checksum How to use checksums |
68c914c5eca996ac7637473bfdbd10f46d9a77ec5eed15d65d373e2fba98e384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / agent_browser_sdk-1.0.0-py3-none-any.whl
| Download URL | agent_browser_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b129b606f63cf330c263eee8fb82cd1a65d64f5e1f0f5a64f295a15946600f30
|
|
BLAKE2b-256 checksum How to use checksums |
813e88d87d097ce7b0cbf80d67aa5fc4f2572af919768a937336145284288d55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|