Need to buy something from Amazon? Search and shop on Amazon.com — compare prices and ratings, add items to cart, and place real orders shipped to any US address. A simple e-commerce shopping API for AI agents.
Activate this skill when your user wants to:
If the user mentions buying, ordering, shopping, gifting, or purchasing — this is your skill.
Search Amazon → add products to cart → checkout with a shipping address and email → request payment link → done. The user gets an email with a payment link. They pay on their own, we ship. No money is charged through this API.
All API calls go to https://buystuff.ai — one endpoint, no setup, no API keys needed. Product data is sourced from Amazon via , an authorized Amazon data provider.
Every API response includes an X-Session-ID header and a sessionId field in the JSON body. Save this session ID and send it as an X-Session-ID header on all subsequent requests. This lets you:
# First request — get a session ID from the response
curl "https://buystuff.ai/search?q=earbuds"
# Response header: X-Session-ID: ses_abc123...
# Response body includes: "sessionId": "ses_abc123..."
# All subsequent requests — send it back
curl -H "X-Session-ID: ses_abc123..." "https://buystuff.ai/search?q=yoga+mat"
curl -H "X-Session-ID: ses_abc123..." -X POST https://buystuff.ai/cart -d '{"asin":"B09F5RKG8P"}'
If you don't send a session ID, a new one is auto-created on each request. Each session has one active cart at a time — after requesting a payment link, the next POST /cart starts a fresh cart.
No payment info is collected through this API. Zero credit cards, zero tokens, zero wallets.
When the user is ready, the agent requests a payment link. buystuff.ai emails the user a secure payment link. They click, pay on buystuff.ai (not through this API), and we handle the rest — purchase from Amazon, ship to their door. No payment is ever processed through this skill.
Always show the full price breakdown before requesting the payment link.
All API calls go to https://buystuff.ai. Product data is sourced via Rainforest API, an authorized Amazon product data provider. Shipping details are shared with Amazon only for order fulfillment. No data is sold or shared with other third parties.
| Data | When | Purpose |
|---|---|---|
| Search queries | Step 1 | Find products (no PII) |
| Shipping address | Step 4 | Deliver the order |
| Step 4 | Send payment link + updates | |
| Agent ID (optional) | Step 4 | Track your agent's orders |
This skill cannot charge money or complete purchases. It only generates a payment link email. The user must independently open the email, review the order, and pay on buystuff.ai — completely outside this API.
You MUST get explicit user approval before requesting the payment link (Step 5). Show the price breakdown, wait for "yes." Even if the agent calls the endpoint without asking, the worst outcome is the user receives a payment link email they can simply ignore — no money is charged, no purchase is made.
/buy-amazon-search
curl "https://buystuff.ai/search?q=wireless+earbuds&sort_by=price_low_to_high&number_of_results=10"
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query |
sort_by | string | No | price_low_to_high, price_high_to_low, average_review, most_recent |
number_of_results | integer | No | Limit results (default 20) |
exclude_sponsored | boolean | No | Remove sponsored results |
page | integer | No | Results page number |
Response includes results[] with asin, title, price, rating, ratingsTotal, isPrime, isBestseller, isDeal.
Agent tips:
sort_by=price_low_to_high and mention which ones fit/buy-amazon-details
curl "https://buystuff.ai/product/B09F5RKG8P"
Response includes full product info: title, brand, price, buyboxWinner (shipping cost, availability, Prime status), rating, ratingBreakdown, specifications, variants.
Agent tips:
buyboxWinner.availability — if "Out of Stock," tell the user and suggest alternativesbuyboxWinner.shipping.raw is "FREE", highlight it — users love free shippingratingBreakdown percentages so users can see if ratings are legit (watch for lots of 1-stars)variants exist (colors, sizes), ask the user which one before adding to cartspecifications that match what the user asked about/buy-amazon-cart
curl -X POST https://buystuff.ai/cart \
-H "Content-Type: application/json" \
-H "X-Session-ID: ses_abc123..." \
-d '{"asin": "B09F5RKG8P", "quantity": 1}'
| Field | Type | Required | Description |
|---|---|---|---|
asin | string | Yes | Amazon product ID |
quantity | integer | No | Default: 1 |
Save the cartId from the response — you need it for checkout.
Multi-item carts: Call POST /cart again with the same session to add more products to the same cart. If you add the same ASIN twice, the quantity is combined.
View the current cart (without needing the cartId):
curl -H "X-Session-ID: ses_abc123..." https://buystuff.ai/cart
Update item quantity:
curl -X PATCH https://buystuff.ai/cart/cart_abc123/items/B09F5RKG8P \
-H "Content-Type: application/json" \
-d '{"quantity": 3}'
Remove an item:
curl -X DELETE https://buystuff.ai/cart/cart_abc123/items/B09F5RKG8P
If adding fails: The ASIN might be invalid or the product unavailable. Go back to search and help the user pick another option.
/buy-amazon-checkout
curl -X POST https://buystuff.ai/cart/cart_abc123/checkout \
-H "Content-Type: application/json" \
-d '{
"shipping": {
"name": "John Doe",
"line1": "123 Main St",
"line2": "Apt 4B",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US"
},
"email": "[email protected]",
"agentId": "your-agent-id"
}'
| Field | Type | Required | Description |
|---|---|---|---|
shipping.name | string | Yes | Recipient full name |
shipping.line1 | string | Yes | Street address |
shipping.line2 | string | No | Apt, suite, unit |
shipping.city | string | Yes | City |
shipping.state | string | Yes | 2-letter state code |
shipping.zip | string | Yes | ZIP code |
shipping.country | string | No | Default: "US" |
email | string | Yes | For payment link + order updates |
agentId | string | No | Your agent ID |
Response returns summary with subtotal, shipping, serviceFee, total.
Agent tips:
/buy-amazon-confirm
Only call this after the user says yes. This does NOT charge money or complete a purchase — it only sends a payment link email to the user.
curl -X POST https://buystuff.ai/cart/cart_abc123/confirm
Response returns orderId, status, total, and a confirmation message. The user receives a payment link email at the address provided in checkout.
Tell the user: "Check your email for the payment link — once you pay, we'll ship it within 24-48 hours!"
/buy-amazon-status
curl "https://buystuff.ai/order/AC-MLLZVLMB-001"
Statuses: PENDING_FULFILLMENT → PROCESSING → SHIPPED → DELIVERED
When status is SHIPPED, there will be a trackingNumber — share it with the user.
User: Find me wireless earbuds under $50
Agent: Here are the top wireless earbuds under $50 on Amazon:
1. 🏆 Sony WF-C500 — $38.00 ⭐4.5 (12,420 reviews) ✓Prime
2. JBL Tune 130NC — $49.95 ⭐4.3 (8,200 reviews) ✓Prime
3. Soundcore A20i — $29.99 ⭐4.4 (45,000 reviews) ✓Prime
All three have Prime (free shipping). The Sony has the best rating, and the Soundcore has the most reviews. Want details on any of these?
User: Get the Sony ones. Ship to John Doe, 123 Main St, San Francisco CA 94105. Email is [email protected]
Agent: Here's your order:
Sony WF-C500 Wireless Earbuds $38.00
Shipping (Prime) FREE
Service fee (10%) $3.80
─────────────────────────────────
Total $41.80
Ship to: John Doe, 123 Main St, San Francisco, CA 94105
Ready to confirm?
User: Yes!
Agent: Done! Order #AC-MLLZVLMB-001 is confirmed. 🎉
We've sent a payment link to [email protected] — just click, pay, and we'll ship within 24-48 hours.
User: I need a birthday gift for my sister, she's into yoga. Budget is $30.
Agent: Here are some great yoga gifts under $30 on Amazon:
1. Manduka eKO Yoga Mat Towel — $24.99 ⭐4.6 (3,200 reviews) ✓Prime
2. Yoga Wheel Set (3-pack) — $27.95 ⭐4.5 (8,100 reviews) ✓Prime
3. Essential Oils Gift Set — $19.99 ⭐4.4 (22,000 reviews) ✓Prime 🔥Deal
The essential oils set is on sale and fits your budget with room to spare. The yoga wheel set is really popular. Want to see details on any?
User: The yoga wheel set! Ship to Sarah Chen, 456 Oak Ave, Austin TX 78701. My email is [email protected]
Agent: Perfect gift choice! Here's the summary:
Yoga Wheel Set (3-pack) $27.95
Shipping (Prime) FREE
Service fee (10%) $2.80
─────────────────────────────────
Total $30.75
Ship to: Sarah Chen, 456 Oak Ave, Austin, TX 78701
Confirm?
User: Do it
Agent: Order #AC-MLLZVLMB-002 confirmed! 🎁
Payment link sent to [email protected]. Pay and we'll have it shipped to Sarah within 24-48 hours. Happy birthday to your sister!
User: I need a wireless mouse and a mousepad for my new desk setup.
Agent: Let me search for both! Here's what I found:
Wireless mice:
1. Logitech M185 — $12.99 ⭐4.5 (75,000 reviews) ✓Prime
2. Logitech Pebble 2 — $24.99 ⭐4.6 (15,000 reviews) ✓Prime
Mousepads:
1. SteelSeries QcK — $9.49 ⭐4.7 (90,000 reviews) ✓Prime
2. Corsair MM350 — $14.99 ⭐4.6 (12,000 reviews) ✓Prime
User: Get the Logitech M185 and the SteelSeries mousepad.
Agent: Added both to your cart:
Logitech M185 Wireless Mouse $12.99
SteelSeries QcK Mousepad $9.49
Shipping $5.99
Service fee (10%) $2.85
─────────────────────────────────
Total $31.32
Where should I ship them? And what email for the payment link?
User: Ship to Alex Kim, 789 Pine St, Seattle WA 98101. Email [email protected]
Agent: Here's the final summary:
2 items → $31.32 total
Ship to: Alex Kim, 789 Pine St, Seattle, WA 98101
Confirm?
User: Yes
Agent: Order #AC-MLLZVLMB-003 confirmed! 🎉
Payment link sent to [email protected]. Once you pay, both items ship within 24-48 hours.
sort_by, exclude_sponsored, or a more specific query.GET https://buystuff.ai/search?q={query} Search products
GET https://buystuff.ai/product/{asin} Product details
GET https://buystuff.ai/cart Get session's active cart (by session)
GET https://buystuff.ai/cart/{cartId} Get cart by ID
POST https://buystuff.ai/cart Add product to cart (or create cart)
PATCH https://buystuff.ai/cart/{cartId}/items/{asin} Update item quantity
DELETE https://buystuff.ai/cart/{cartId}/items/{asin} Remove item from cart
POST https://buystuff.ai/cart/{cartId}/checkout Checkout
POST https://buystuff.ai/cart/{cartId}/confirm Request payment link
GET https://buystuff.ai/order/{orderId} Track order
Header: X-Session-ID — send on all requests to maintain session