Extract product title, price, image & more from any Shopsy.in URL
Fetching product detailsβ¦ this may take 10β20s
Use the REST API to fetch Shopsy product details programmatically
Fetch structured product details (title, price, MRP, discount, image, rating, seller) from a Shopsy.in product page.
Uses Cloudflare Browser Rendering to parse __NEXT_DATA__.
| Parameter | Type | Description |
|---|---|---|
url REQUIRED |
string | Full Shopsy.in product URL |
curl -X POST https://amzn-shortlinks.pages.dev/api/shopsy \
-H "Content-Type: application/json" \
-d '{"url": "https://www.shopsy.in/product/...}"'
const res = await fetch('/api/shopsy', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ url: 'https://www.shopsy.in/...' })
});
const data = await res.json();
console.log(data.product.title);
console.log(data.product.price); // "βΉ499"
console.log(data.product.image); // https://...
import requests
res = requests.post(
'https://amzn-shortlinks.pages.dev/api/shopsy',
json={'url': 'https://www.shopsy.in/...'}
)
product = res.json()['product']
print(product['title'], product['price'])
{
"success": true,
"url": "https://www.shopsy.in/product/...",
"product": {
"title": "Product Name",
"subtitle": "Short descriptor",
"price": "βΉ499",
"priceValue": 499,
"mrp": "βΉ999",
"mrpValue": 999,
"savingsAmount": "βΉ500",
"discountPercent": 50,
"currency": "INR",
"image": "https://...",
"rating": 4.3,
"reviewCount": 12480,
"seller": "Seller Name"
}
}
{
"error": "URL must be a shopsy.in product URL"
}
__NEXT_DATA__ embedded in the page