← Back to Context.dev
POST/brand/ai/product

Extract a single product from a URL

Beta feature: Given a single URL, determines if it is a product detail page, classifies the platform/product type, and extracts the product information. Supports Amazon, TikTok Shop, Etsy, and generic ecommerce sites.

Context.dev·$0.03 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "context-dev", path: "/brand/ai/product", body: { "url": "example" } }); console.log(output);

Body parameters

urlrequired
string

The product page URL to extract product data from.

timeoutMS
integer

Optional timeout in milliseconds for the request. Maximum allowed value is 300000ms (5 minutes).

Response

product.sku
string
product.url
string
product.name
string
product.tags.0
string
product.price
number
product.images.0
string
product.category
string
product.currency
string
product.features.0
string
product.image_url
string
product.description
string
product.pricing_model
string
product.target_audience.0
string
product.billing_frequency
string
platform
string
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number
is_product_page
boolean
    Orthogonal - Giving AI agents the tools they need.