Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_browser_sdk-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_browser_sdk-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file agent_browser_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: agent_browser_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for agent_browser_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53635ae2f0d0149f4a5cb96b4f3133826dda4a5f5b4bf5efddba737d58c1acc2
MD5 39acba17c275ca0952ca35b3fddc1aae
BLAKE2b-256 68c914c5eca996ac7637473bfdbd10f46d9a77ec5eed15d65d373e2fba98e384

See more details on using hashes here.

File details

Details for the file agent_browser_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_browser_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b129b606f63cf330c263eee8fb82cd1a65d64f5e1f0f5a64f295a15946600f30
MD5 00450d4696c619202575f467eb3da2c6
BLAKE2b-256 813e88d87d097ce7b0cbf80d67aa5fc4f2572af919768a937336145284288d55

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

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