Current collected state Current
Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Official Python SDK for the Actory Agent Commerce Protocol (ACP) API
Official Python client for the Actory Agent Commerce Protocol (ACP) API.
pip install actory
from actory import Actory
# Initialize with your API key
client = Actory(api_key="act_sk_your_key_here")
# Search for products
results = client.search("red shoes", max_price=100, in_stock=True)
print(f"Found {results.total} products")
for product in results.products:
print(f" {product.title}: {product.currency} {product.price:.2f}")
# Basic search
results = client.search("shoes")
# With filters
results = client.search(
"shoes",
in_stock=True,
min_price=20,
max_price=100,
vendor="Nike",
category="footwear",
limit=50,
page=1
)
# Parse natural language queries
results = client.nl_search("red shoes under $50 in stock")
# Automatically extracts: color=red, maxPrice=50, inStock=true
product = client.get_product("product_id_here")
print(f"{product.title}: {product.currency} {product.price:.2f}")
print(f"In Stock: {product.in_stock}")
merchants = client.list_merchants() # or client.get_merchants()
for m in merchants:
print(f"{m.name} ({m.domain}): {m.product_count} products")
categories = client.list_categories()
vendors = client.list_vendors()
from actory import Actory, AuthenticationError, RateLimitError, ActoryError
try:
client = Actory(api_key="invalid_key")
results = client.search("test")
except AuthenticationError:
print("Invalid API key")
except RateLimitError:
print("Too many requests, slow down")
except ActoryError as e:
print(f"API error: {e}")
# Custom base URL (for local development)
client = Actory(
api_key="act_sk_...",
base_url="http://localhost:3000"
)
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.5 | 26 Dec 2025 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:80f336724afd1ae43e179a1e9d83a447c5a2eb6db1edb37cb0e847a07416cfc8