Skip to main content
Context.dev’s Product API takes any product page URL (Amazon, TikTok Shop, or any SaaS/D2C website) and gives you a structured product record:
  • Name, description, category of the product
  • Pricing models, listed price and ISO currency code
  • List of features, the product’s target audience, and more

Integrate Context.dev's Product API in your app

Open in Cursor

Prerequisites

  • A Context.dev API key. Sign up at context.dev/signup, copy the key from the dashboard (prefix ctxt_secret_), and export it:
  • An SDK (optional). Install for your language, or skip the install and call directly with curl:

Extract a single product

POST /brand/ai/product takes a single product URL and returns whether the page is a product page, the detected ecommerce platform, and the extracted product record.
10 credits per successful call

Request Parameters

Response

Handle errors

A non-2xx response returns an { message, error_code } envelope: A 400 from omitting url:
For the full catalog of error codes, see Troubleshooting.

Use cases

  • Build a printable product catalog: Use a website’s sitemap to find all products, run extract_product on each page
  • Procurement / ERP auto-fill: when a buyer pastes a product URL into a procurement form, populate sku, name, description, currency, price and features automatically.

Next steps

Prefetch for Faster Response

Hide cold-hit latency from your users.

Handle Rate Limits

Backoff strategies, client cache, and prefetch fallbacks.

Best Practices

Caching, error handling, and key hygiene.

Troubleshooting

Status codes, retry patterns, and common errors.