Search Amazon products
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.amazon.search({ query: "wireless earbuds" });
console.log(result.data.products);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.amazon.search(query="wireless earbuds")
print(result["data"]["products"])
curl -X POST https://api.stophy.dev/v1/amazon/search \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"query":"wireless earbuds"}'
stophy amazon search --query "wireless earbuds"
{
"success": true,
"data": {
"products": [
{
"position": 1,
"id": "abc123",
"url": "https://example.com/",
"title": "Example title",
"image": "https://example.com/image.jpg",
"price": 19.99,
"originalPrice": 19.99,
"currency": "USD",
"rating": 4.5,
"reviews": 1234,
"boughtPastMonth": 1,
"isSponsored": false
}
],
"total": 1234
},
"creditsUsed": 5,
"requestId": "d83b5395-9974-488b-8016-ea9cdd5b3cc2"
}
Endpoints
| Endpoint | Cost |
|---|---|
| Search Amazon products | 5 credits per 20 items, at least 5 credits |
| Get a product’s price, details and rating | 5 credits |
| Get the best sellers in a category | 2 credits per 50 items, at least 2 credits |
| Get Amazon search suggestions for a keyword | 1 credit per 50 items, at least 1 credit |
| Search Walmart products | 5 credits per 40 items, at least 5 credits |
| Get a Walmart product’s price and details | 3 credits |
| Search AliExpress products | 2 credits per 60 items, at least 2 credits |
| Get an AliExpress product’s price and details | 2 credits |
| Get a Shopify store’s products | 1 credit per 25 items, at least 1 credit |
| Get a Shopify store’s collections | 1 credit per 100 items, at least 1 credit |
| Get a Shopify store’s details | 1 credit |
More ways to call it
Search Walmart products
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.walmart.search({ query: "air fryer" });
console.log(result.data.products);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.walmart.search(query="air fryer")
print(result["data"]["products"])
curl -X POST https://api.stophy.dev/v1/walmart/search \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"query":"air fryer"}'
stophy walmart search "air fryer"
Get a Shopify store’s products
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.shopify.products({ store: "allbirds.com", limit: 50 });
console.log(result.data.products);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.shopify.products(store="allbirds.com", limit=50)
print(result["data"]["products"])
curl -X POST https://api.stophy.dev/v1/shopify/products \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"store":"allbirds.com","limit":50}'
stophy shopify products allbirds.com --limit 50
Pass the product URL from a search result into the Amazon, Walmart, or AliExpress product lookup for full pricing and details.