This API allows you to scrape product information from BigCommerce category pages.
GET /api/scrape
url
(optional): The full URL of the BigCommerce category page to scrapesite
(optional): The name of a pre-configured site to scrapesort
(optional): Set to price_desc
to sort results by highest price firstNote: You must provide either url
or site
, but not both.
curl "https://tatera.io/api/scrape?url=https://store.example.com/shop-all/"
curl "https://tatera.io/api/scrape?site=oldforester&sort=price_desc"
{
"products": [
{
"name": "Product Name",
"sku": "SKU123",
"product_id": "123",
"url": "https://store.example.com/product/",
"price": "$99.99",
"categories": ["Category 1", "Category 2"],
"image": "https://store.example.com/image.jpg",
"description": "Product description",
"atc_url": "https://shop.oldforester.com/cart.php?action=buy&sku=SKU123"
}
],
"total_products": 1
}
The API may return the following error responses:
400 Bad Request
: Missing or invalid parameters404 Not Found
: Category page not found500 Internal Server Error
: Server-side error