Extract Price Offers API
price_offers lists the prices found on the page, from schema.org and JSON-LD Offer
data and visible HTML. Each offer has the displayed price and a numeric extracted_price.
API Examples
Price offers from schema.org, JSON-LD and HTML
{
...
"price_offers": [
{
"position": 1,
"title": "A Light in the Attic",
"currency": "GBP",
"price": "£51.77",
"extracted_price": 51.77,
"description": "A Light in the Attic £51.77 In stock (22 available) Warning! This is a demo website for web scraping purposes. Prices and ratings here were randomly assigned and have no real meaning.",
"source": "html-explicit"
}
]
}
JSON Structure Overview
{
...
"price_offers": [
{
"position": "Integer - Position of the offer",
"title": "String - Title of the offer",
"currency": "String - Currency code (e.g. 'USD', 'GBP')",
"price": "String - Displayed price",
"extracted_price": "Float - Numeric price",
"link": "String - Link to the offer",
"availability": "String - Availability of the offer (e.g. 'InStock')",
"description": "String - Text around the price (HTML offers only)",
"source": "String - Where the offer was found. Can be 'schema.org', 'json-ld', 'html-explicit' or 'html-card'",
"serpapi_extract_link": "String - Extract API link for extracting this URL next"
},
...
],
...
}