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.results);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.amazon.search(query="wireless earbuds")
print(result["data"]["results"])
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 "wireless earbuds"
{
"success": true,
"data": {
"total": 1234,
"results": [
{
"productId": "abc123",
"productUrl": "https://example.com/",
"title": "Example title",
"imageUrl": "https://example.com/image.jpg",
"price": 19.99,
"originalPrice": 19.99,
"priceCurrency": "example",
"rating": 4.5,
"reviews": 1234,
"boughtPastMonth": 1,
"isSponsored": false
}
],
"page": 1
},
"creditsUsed": 2,
"requestId": "ee81c546-e935-44c1-8876-409b6f8dc407"
}
Endpoints
More ways to call it
Get a product’s price, details and rating
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.amazon.product({ productUrl: "https://www.amazon.com/dp/B0CX23V2ZK" });
console.log(result.data);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.amazon.product(product_url="https://www.amazon.com/dp/B0CX23V2ZK")
print(result["data"])
curl -X POST https://api.stophy.dev/v1/amazon/product \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"productUrl":"https://www.amazon.com/dp/B0CX23V2ZK"}'
stophy amazon product --productUrl https://www.amazon.com/dp/B0CX23V2ZK
Compare product prices and sellers on Google Shopping by country
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.google.shopping({ query: "running shoes" });
console.log(result.data.results);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.google.shopping(query="running shoes")
print(result["data"]["results"])
curl -X POST https://api.stophy.dev/v1/google/shopping \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"query":"running shoes"}'
stophy google shopping "running shoes"
Amazon search, product and best sellers, and Google Shopping cost 2 credits. Pass the product link from an Amazon search result into
amazon.product.