Extract Product
Detect whether a URL is a product page and extract a normalized product record with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use it for catalog research or marketplace monitoring.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Extract Product
Prepare your request, then continue with your agent.
Selected price
$0.002 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
bytesobjectdatanullrequestedbooleansuccessnull
cache_metadataobjectage_msintegerstatusstring
highlightsobjectdatanullrequestedbooleansuccessnull
htmlobjectdatanullrequestedbooleansuccessnull
imagesobjectdatanullrequestedbooleansuccessnull
jsonobjectdatanullrequestedbooleansuccessnull
key_metadataobjectcredits_consumedinteger
markdownobjectdatanullrequestedbooleansuccessnull
metadataobjectadditionalMetaobjectcontent-typestringcreatedstringviewportstring
descriptionstringfaviconstringheadingsobject[]levelintegertextstring
languagestringrobotsstringtitlestring
parsedobjectdatanullrequestedbooleansuccessnulltypestring
productobjectdataobjectisProductPagebooleanproductobjectavailabilitystringbrandnullcategorystringcurrencystringdescriptionstringdimensionsunknown[]featuresstring[]imageUrlstringimagesstring[]namestringpricenumberregularPricenullskustringtagsstring[]targetAudiencestring[]variantsunknown[]
requestedbooleansuccessboolean
profilenullrequest_idstringscreenshotobjectdatanullrequestedbooleansuccessnull
urlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
bytes?: {
data?: null;
requested?: boolean;
success?: null;
};
cache_metadata?: {
age_ms?: number;
status?: string;
};
highlights?: {
data?: null;
requested?: boolean;
success?: null;
};
html?: {
data?: null;
requested?: boolean;
success?: null;
};
images?: {
data?: null;
requested?: boolean;
success?: null;
};
json?: {
data?: null;
requested?: boolean;
success?: null;
};
key_metadata?: {
credits_consumed?: number;
};
markdown?: {
data?: null;
requested?: boolean;
success?: null;
};
metadata?: {
additionalMeta?: {
"content-type"?: string;
created?: string;
viewport?: string;
};
description?: string;
favicon?: string;
headings?: Array<{
level?: number;
text?: string;
}>;
language?: string;
robots?: string;
title?: string;
};
parsed?: {
data?: null;
requested?: boolean;
success?: null;
type?: string;
};
product?: {
data?: {
isProductPage?: boolean;
product?: {
availability?: string;
brand?: null;
category?: string;
currency?: string;
description?: string;
dimensions?: Array<unknown>;
features?: Array<string>;
imageUrl?: string;
images?: Array<string>;
name?: string;
price?: number;
regularPrice?: null;
sku?: string;
tags?: Array<string>;
targetAudience?: Array<string>;
variants?: Array<unknown>;
};
};
requested?: boolean;
success?: boolean;
};
profile?: null;
request_id?: string;
screenshot?: {
data?: null;
requested?: boolean;
success?: null;
};
url?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
context-devCurrent Context.dev — Extract Product · POST · View API reference | $0.002 / billing credit | — | —successP50— |
- Unit price
- $0.002
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"formats": {
"product": true
},
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
formats | JSON request bodybody | object | Yes | const: {"product":true} |
maxAgeMs | JSON request bodybody | integer | No | minimum: 0 · maximum: 31536000000 |
productParams | JSON request bodybody | object | No | additionalProperties: false Nested fields and variants
|
sharedParams | JSON request bodybody | object | No | additionalProperties: false Nested fields and variants
|
tags | JSON request bodybody | array | No | maxItems: 20 Nested fields and variants
|
timeoutOpts | JSON request bodybody | object | No | additionalProperties: false Nested fields and variants
|
url | JSON request bodybody | string | Yes | format: uri · pattern: ^https?:// |
zdr | JSON request bodybody | string | No | enum: "enabled", "disabled" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"bytes": {
"data": null,
"requested": false,
"success": null
},
"cache_metadata": {
"age_ms": 229025118,
"status": "hit"
},
"highlights": {
"data": null,
"requested": false,
"success": null
},
"html": {
"data": null,
"requested": false,
"success": null
},
"images": {
"data": null,
"requested": false,
"success": null
},
"json": {
"data": null,
"requested": false,
"success": null
},
"key_metadata": {
"credits_consumed": 2
},
"markdown": {
"data": null,
"requested": false,
"success": null
},
"metadata": {
"additionalMeta": {
"content-type": "text/html; charset=UTF-8",
"created": "24th Jun 2016 09:29",
"viewport": "width=device-width"
},
"description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
"favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
"headings": [
{
"level": 1,
"text": "A Light in the Attic"
},
{
"level": 2,
"text": "Product Description"
},
{
"level": 2,
"text": "Product Information"
}
],
"language": "en-us",
"robots": "NOARCHIVE,NOCACHE",
"title": "A Light in the Attic | Books to Scrape - Sandbox"
},
"parsed": {
"data": null,
"requested": false,
"success": null,
"type": "custom"
},
"product": {
"data": {
"isProductPage": true,
"product": {
"availability": "in_stock",
"brand": null,
"category": "Books",
"currency": "GBP",
"description": "A classic collection of poetry and drawings by Shel Silverstein, celebrating its 20th anniversary with a special edition. The book features humorous and creative verses that appeal to both adults and children, filled with rhythmic words that entertain and delight readers.",
"dimensions": [],
"features": [
"Classic poetry and drawings",
"20th anniversary special edition",
"Humorous and creative verses",
"Appeals to both adults and children"
],
"imageUrl": "https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg",
"images": [
"https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg"
],
"name": "A Light in the Attic",
"price": 51.77,
"regularPrice": null,
"sku": "a897fe39b1053632",
"tags": [
"poetry",
"classic",
"Shel Silverstein",
"special edition"
],
"targetAudience": [
"Adults",
"Children",
"Poetry lovers"
],
"variants": []
}
},
"requested": true,
"success": true
},
"profile": null,
"request_id": "52ad8472-de62-4115-8af7-6d02e3b581be",
"screenshot": {
"data": null,
"requested": false,
"success": null
},
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}Usage billing
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Extract Product
Detect whether a URL is a product page and extract a normalized product record with the Context.dev API. Supply a formats and a URL. Sample fields include images and languages. Use it for catalog research or marketplace monitoring.
## Available implementations
context-dev · Context.dev — Extract Product: https://openany.si/markets/apis/capabilities/context-dev-extract-product?offering=4723f372-f45b-426b-b02f-0d62052a510a · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/apis/4723f372-f45b-426b-b02f-0d62052a510a
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product
Price: $0.002 / billing credit
Pricing note: A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
Provider: context-dev
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"formats": {
"product": true
},
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Context.dev — Extract Product",
"endpoint": "https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Detect whether a URL is a product page and extract a normalized product record.",
"json_schema": {
"additionalProperties": false,
"allOf": [
{
"if": {
"required": [
"markdownParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"markdown": {
"const": true
}
},
"required": [
"markdown"
]
}
}
}
},
{
"if": {
"required": [
"screenshotParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"screenshot": {
"const": true
}
},
"required": [
"screenshot"
]
}
}
}
},
{
"if": {
"required": [
"imageParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"images": {
"const": true
}
},
"required": [
"images"
]
}
}
}
},
{
"if": {
"required": [
"parseParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"parse": {
"const": true
}
},
"required": [
"parse"
]
}
}
}
},
{
"if": {
"properties": {
"formats": {
"properties": {
"parse": {
"const": true
}
},
"required": [
"parse"
]
}
}
},
"then": {
"required": [
"parseParams"
]
}
},
{
"if": {
"required": [
"highlightsParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"highlights": {
"const": true
}
},
"required": [
"highlights"
]
}
}
}
},
{
"if": {
"properties": {
"formats": {
"properties": {
"highlights": {
"const": true
}
},
"required": [
"highlights"
]
}
}
},
"then": {
"required": [
"highlightsParams"
]
}
},
{
"if": {
"required": [
"jsonParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"json": {
"const": true
}
},
"required": [
"json"
]
}
}
}
},
{
"if": {
"properties": {
"formats": {
"properties": {
"json": {
"const": true
}
},
"required": [
"json"
]
}
}
},
"then": {
"required": [
"jsonParams"
]
}
},
{
"if": {
"required": [
"productParams"
]
},
"then": {
"properties": {
"formats": {
"properties": {
"product": {
"const": true
}
},
"required": [
"product"
]
}
}
}
}
],
"properties": {
"formats": {
"const": {
"product": true
},
"type": "object"
},
"maxAgeMs": {
"default": 259200000,
"maximum": 31536000000,
"minimum": 0,
"type": "integer"
},
"productParams": {
"additionalProperties": false,
"properties": {
"dedupeImages": {
"default": false,
"type": "boolean"
}
},
"type": "object"
},
"sharedParams": {
"additionalProperties": false,
"properties": {
"actions": {
"items": {
"discriminator": {
"propertyName": "type"
},
"oneOf": [
{
"additionalProperties": false,
"properties": {
"action": {
"maxLength": 500,
"minLength": 1,
"type": "string"
},
"type": {
"enum": [
"perform"
],
"type": "string"
}
},
"required": [
"type",
"action"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"amount": {
"default": "viewport",
"oneOf": [
{
"maximum": 100000,
"minimum": 1,
"type": "integer"
},
{
"enum": [
"viewport",
"max"
],
"type": "string"
}
]
},
"direction": {
"default": "down",
"enum": [
"down",
"up",
"left",
"right"
],
"type": "string"
},
"maxScrolls": {
"default": 1,
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"selector": {
"maxLength": 2000,
"pattern": "\\S",
"type": "string"
},
"type": {
"enum": [
"scroll"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"milliseconds": {
"maximum": 30000,
"minimum": 0,
"type": "integer"
},
"type": {
"enum": [
"wait"
],
"type": "string"
}
},
"required": [
"type",
"milliseconds"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"selector": {
"maxLength": 2048,
"pattern": "\\S",
"type": "string"
},
"type": {
"enum": [
"waitFor"
],
"type": "string"
}
},
"required": [
"type",
"selector"
],
"type": "object"
}
]
},
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"country": {
"pattern": "^[A-Za-z]{2}$",
"type": "string"
},
"dismissCookies": {
"default": true,
"type": "boolean"
},
"dismissPopups": {
"default": false,
"type": "boolean"
},
"excludeSelectors": {
"items": {
"maxLength": 2048,
"pattern": "\\S",
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"headers": {
"additionalProperties": {
"maxLength": 8192,
"pattern": "^[^\\r\\n]*$",
"type": "string"
},
"propertyNames": {
"not": {
"pattern": "^(?:[Hh][Oo][Ss][Tt]|[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Ll][Ee][Nn][Gg][Tt][Hh]|[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Kk][Ee][Ee][Pp]-[Aa][Ll][Ii][Vv][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Ee][Nn][Tt][Ii][Cc][Aa][Tt][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Oo][Rr][Ii][Zz][Aa][Tt][Ii][Oo][Nn]|[Pp][Rr][Oo][Xx][Yy]-[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Tt][Ee]|[Tt][Rr][Aa][Ii][Ll][Ee][Rr]|[Tt][Rr][Aa][Nn][Ss][Ff][Ee][Rr]-[Ee][Nn][Cc][Oo][Dd][Ii][Nn][Gg]|[Uu][Pp][Gg][Rr][Aa][Dd][Ee]|[Ee][Xx][Pp][Ee][Cc][Tt])$"
},
"pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
},
"type": "object"
},
"includeFrames": {
"default": false,
"type": "boolean"
},
"includeSelectors": {
"items": {
"maxLength": 2048,
"pattern": "\\S",
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"mainContentOnly": {
"default": false,
"type": "boolean"
},
"parsers": {
"additionalProperties": false,
"properties": {
"pdf": {
"additionalProperties": false,
"properties": {
"endPage": {
"minimum": 1,
"type": "integer"
},
"ocr": {
"default": "off",
"enum": [
"off",
"auto"
],
"type": "string"
},
"startPage": {
"minimum": 1,
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"profile": {
"discriminator": {
"propertyName": "type"
},
"oneOf": [
{
"additionalProperties": false,
"properties": {
"profileId": {
"pattern": "^prof_[a-f0-9]{32}$",
"type": "string"
},
"type": {
"const": "existing",
"type": "string"
}
},
"required": [
"type",
"profileId"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"identifier": {
"maxLength": 1024,
"minLength": 1,
"type": "string"
},
"password": {
"maxLength": 4096,
"minLength": 1,
"type": "string",
"writeOnly": true
},
"type": {
"const": "new",
"type": "string"
}
},
"required": [
"type",
"identifier",
"password"
],
"type": "object"
}
]
},
"settleAnimations": {
"type": "boolean"
},
"theme": {
"enum": [
"light",
"dark"
],
"type": "string"
},
"viewport": {
"additionalProperties": false,
"properties": {
"height": {
"default": 900,
"maximum": 4320,
"minimum": 240,
"type": "integer"
},
"width": {
"default": 1440,
"maximum": 7680,
"minimum": 240,
"type": "integer"
}
},
"type": "object"
},
"waitFor": {
"oneOf": [
{
"maximum": 30000,
"minimum": 0,
"type": "integer"
},
{
"maxLength": 2048,
"pattern": "\\S",
"type": "string"
}
]
}
},
"type": "object"
},
"tags": {
"items": {
"maxLength": 50,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"type": "array"
},
"timeoutOpts": {
"additionalProperties": false,
"default": {
"behavior": "fail",
"milliseconds": 90000
},
"properties": {
"behavior": {
"default": "fail",
"enum": [
"fail",
"return-partial"
],
"type": "string"
},
"milliseconds": {
"maximum": 300000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"milliseconds"
],
"type": "object"
},
"url": {
"format": "uri",
"pattern": "^https?://",
"type": "string"
},
"zdr": {
"default": "disabled",
"enum": [
"enabled",
"disabled"
],
"type": "string"
}
},
"required": [
"url",
"formats"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "usage",
"priceMicroUsd": "2000",
"rounding": "ceil",
"unit": "credit",
"unitQuantity": "1"
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": {
"formats": {
"product": true
},
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"bytes": {
"data": null,
"requested": false,
"success": null
},
"cache_metadata": {
"age_ms": 229025118,
"status": "hit"
},
"highlights": {
"data": null,
"requested": false,
"success": null
},
"html": {
"data": null,
"requested": false,
"success": null
},
"images": {
"data": null,
"requested": false,
"success": null
},
"json": {
"data": null,
"requested": false,
"success": null
},
"key_metadata": {
"credits_consumed": 2
},
"markdown": {
"data": null,
"requested": false,
"success": null
},
"metadata": {
"additionalMeta": {
"content-type": "text/html; charset=UTF-8",
"created": "24th Jun 2016 09:29",
"viewport": "width=device-width"
},
"description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
"favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
"headings": [
{
"level": 1,
"text": "A Light in the Attic"
},
{
"level": 2,
"text": "Product Description"
},
{
"level": 2,
"text": "Product Information"
}
],
"language": "en-us",
"robots": "NOARCHIVE,NOCACHE",
"title": "A Light in the Attic | Books to Scrape - Sandbox"
},
"parsed": {
"data": null,
"requested": false,
"success": null,
"type": "custom"
},
"product": {
"data": {
"isProductPage": true,
"product": {
"availability": "in_stock",
"brand": null,
"category": "Books",
"currency": "GBP",
"description": "A classic collection of poetry and drawings by Shel Silverstein, celebrating its 20th anniversary with a special edition. The book features humorous and creative verses that appeal to both adults and children, filled with rhythmic words that entertain and delight readers.",
"dimensions": [],
"features": [
"Classic poetry and drawings",
"20th anniversary special edition",
"Humorous and creative verses",
"Appeals to both adults and children"
],
"imageUrl": "https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg",
"images": [
"https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg"
],
"name": "A Light in the Attic",
"price": 51.77,
"regularPrice": null,
"sku": "a897fe39b1053632",
"tags": [
"poetry",
"classic",
"Shel Silverstein",
"special edition"
],
"targetAudience": [
"Adults",
"Children",
"Poetry lovers"
],
"variants": []
}
},
"requested": true,
"success": true
},
"profile": null,
"request_id": "52ad8472-de62-4115-8af7-6d02e3b581be",
"screenshot": {
"data": null,
"requested": false,
"success": null
},
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Detect whether a URL is a product page and extract a normalized product record.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/context-dev/v1/brand/ai/product' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "formats": { "product": true }, "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "bytes": { "data": null, "requested": false, "success": null }, "cache_metadata": { "age_ms": 229025118, "status": "hit" }, "highlights": { "data": null, "requested": false, "success": null }, "html": { "data": null, "requested": false, "success": null }, "images": { "data": null, "requested": false, "success": null }, "json": { "data": null, "requested": false, "success": null }, "key_metadata": { "credits_consumed": 2 }, "markdown": { "data": null, "requested": false, "success": null }, "metadata": { "additionalMeta": { "content-type": "text/html; charset=UTF-8", "created": "24th Jun 2016 09:29", "viewport": "width=device-width" }, "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more", "favicon": "https://books.toscrape.com/static/oscar/favicon.ico", "headings": [ { "level": 1, "text": "A Light in the Attic" }, { "level": 2, "text": "Product Description" }, { "level": 2, "text": "Product Information" } ], "language": "en-us", "robots": "NOARCHIVE,NOCACHE", "title": "A Light in the Attic | Books to Scrape - Sandbox" }, "parsed": { "data": null, "requested": false, "success": null, "type": "custom" }, "product": { "data": { "isProductPage": true, "product": { "availability": "in_stock", "brand": null, "category": "Books", "currency": "GBP", "description": "A classic collection of poetry and drawings by Shel Silverstein, celebrating its 20th anniversary with a special edition. The book features humorous and creative verses that appeal to both adults and children, filled with rhythmic words that entertain and delight readers.", "dimensions": [], "features": [ "Classic poetry and drawings", "20th anniversary special edition", "Humorous and creative verses", "Appeals to both adults and children" ], "imageUrl": "https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg", "images": [ "https://books.toscrape.com/media/cache/fe/72/fe72f0532301ec28892ae79a629a293c.jpg" ], "name": "A Light in the Attic", "price": 51.77, "regularPrice": null, "sku": "a897fe39b1053632", "tags": [ "poetry", "classic", "Shel Silverstein", "special edition" ], "targetAudience": [ "Adults", "Children", "Poetry lovers" ], "variants": [] } }, "requested": true, "success": true }, "profile": null, "request_id": "52ad8472-de62-4115-8af7-6d02e3b581be", "screenshot": { "data": null, "requested": false, "success": null }, "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html" }