Skip to content

Limits & Boundary ​

Rate limits ​

Limits apply per account, across all of its API keys.

LimitValueError when exceeded
Minimum interval between call starts1 secondRATE_LIMITED
Concurrent calls20RATE_LIMITED
Calls per day10,000, reset at midnight US Eastern timeRATE_LIMITED
Service capacityShared across all accountsSHARED_CAPACITY

Every call that passes parameter validation counts toward the limits, including refused requests and calls that then fail, for example on an image URL, a stale item_id, or INSUFFICIENT_CREDITS. Calls rejected for a malformed parameter do not count.

Rate-limit errors carry details.retry_after_seconds: the time until the next call can start. For the daily limit, that is the time until midnight US Eastern time.

Need higher limits? Email support@commerceai.ai with your use case.

Timeouts ​

A call usually takes 20 to 40 seconds and can take up to about 2 minutes when the agent searches and compares many products. Set your client timeout to at least 130 seconds. A call that runs longer than that on the server returns UPSTREAM_TIMEOUT.

Lifetimes ​

ItemLifetime
API keyUntil you delete it. Up to 5 active keys per account.
conversation_id48 hours after the last call, and at most 30 days after the conversation started
item_id48 hours after it was returned, in the conversation it came from

What the agent covers ​

In scopeOut of scopeResult for out-of-scope requests
US catalogOther marketsRefused, 0 credits
Product search and discoveryViewing or changing a cartRefused, 0 credits
Comparison of products already shownOrder tracking or placing ordersRefused, 0 credits
Product Q&AApplying coupons or vouchersRefused, 0 credits
Text queries, up to 4,000 charactersSigning in to a store accountRefused, 0 credits
Images or image URLsINVALID_ARGUMENT, not charged

Out-of-scope requests are recognized from the wording of query. A request that mixes shopping with an out-of-scope action, for example "find a charger and add it to my cart", may be refused as a whole. Send the shopping part on its own.

Data returned ​

  • Prices and availability come from the merchant at the time of the call and can change. Show purchase_url so the shopper confirms the final price on the merchant's page.
  • CommerceAI does not complete purchases. The shopper buys on the merchant's page behind purchase_url.
  • answer_text is Markdown with inline markers for product cards and comparison tables. See Agent Capabilities.