apyhub
Back
▣ RETRIEVAL KIT · MEDIA KIT

Extract Product Details API

Hosted on ApyHub

What it does

Product Details Extractor pulls structured product data from a public product page URL. Send a page link, and you get back the fields the page exposes, including name, brand, price, currency, availability, description, images, rating, review_count, sku, source_url, extraction_method, and per-field confidence.

It fetches the page server-side and does not execute JavaScript, so it works best on pages where the product information is already present in HTML, JSON-LD, meta tags, or DOM markup. Any field that cannot be found is returned empty, which makes the response predictable for downstream parsing.

Use Product Details Extractor when you need to normalise ecommerce listings into a consistent shape for catalogs, price tracking, comparison flows, or enrichment pipelines. It is useful for turning a product link from a marketplace, brand store, or merchant site into machine-readable fields without building a site-specific scraper for each domain.

The response also includes the source_url you sent and a confidence object so you can judge how reliable each extracted field is before storing or displaying it.

POST
Extract product details from a product page URL
https://api.eu.apyhub.com/apyhub/extract-product-details-api/extract/details

QUICKSTART

GUIDE

Quickstart

Fetch product details from a public product page by sending its URL.

curl -X POST "https://api.eu.apyhub.com/apyhub/extract-product-details-api/extract/details" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.myntra.com/tshirts/jack+%26+jones/jack--jones-men-typography-printed-t-shirt/42196567/buy"}'

What you'll get back

Returns a JSON object with product details. Top-level fields include strings like availability, brand, currency, description, name, price, sku, and source_url; confidence is an object of per-field confidence scores, images is an array of image URLs, rating is a number, review_count is an integer, and extraction_method is one of json-ld, dom, meta, or an empty string.

{
  "availability": "InStock",
  "brand": "Jack & Jones",
  "confidence": {
    "name": 0.95,
    "brand": 0.95,
    "price": 0.95,
    "images": 0.95
  },
  "currency": "INR",
  "description": "",
  "extraction_method": "json-ld",
  "images": [],
  "name": "Jack & Jones Men Typography Printed T-shirt",
  "price": "479",
  "rating": 3.3,
  "review_count": 1590,
  "sku": "42196567",
  "source_url": "https://www.myntra.com/tshirts/jack+%26+jones/jack--jones-men-typography-printed-t-shirt/42196567/buy"
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Public http/https product page URL. Fetched server-side; no JavaScript is executed.

About this endpoint

What it does

Fetches a public product page URL server-side and extracts product details from the page. The response returns an object containing the fields the extractor found, with missing fields left empty as defined by the schema.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublic http/https product page URL. Fetched server-side; no JavaScript is executed.

Response

Returns a JSON object with product detail fields such as availability, brand, confidence, currency, description, extraction_method, images, name, price, rating, review_count, sku, and source_url. Fields that could not be found are returned as empty values according to the schema ("", 0, []).

ParameterTypeMandatoryDescription
availabilityStringNoProduct availability as extracted from the page.
brandStringNoProduct brand.
confidenceObjectNoPer-field confidence scores from 0 to 1 for fields that were found. Keys are dynamic, with numeric values.
currencyStringNoISO 4217 currency code when known, derived from JSON-LD, meta tags, or a currency symbol.
descriptionStringNoProduct description.
extraction_methodStringNoWhere most data came from: json-ld, dom, meta, or empty when nothing usable was found.
imagesString ArrayNoProduct image URLs.
nameStringNoProduct name.
priceStringNoPrice as a plain number string, with currency symbols and thousands separators removed.
ratingNumberNoAverage rating. Returns 0 when unavailable.
review_countIntegerNoNumber of reviews or ratings. Returns 0 when unavailable.
skuStringNoProduct SKU.
source_urlStringNoThe URL that was fetched, as sent.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.