跳转到主要内容
POST
Search products

请求规范

  • 方法与路径: POST /apis/v1/affiliate-com/products/search
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/affiliate-com/products/search
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0025 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
keyword
string
必填

Plain-text search such as JBL speaker; sent as the string form of search.

after
string

Deep-pagination cursor from the previous response's meta.after, for results past 10,000 on plans that allow it.

balanced_mix
object

{ field, max_per_value, interleave?, weights? } to keep one merchant or brand from dominating. Not combinable with duplicate_fields_to_exclude.

duplicate_fields_to_exclude
string

Deduplicate by name, image_url, direct_url, barcode or merchant.id. Comma syntax applies each independently and accepts [N] caps (name,merchant.id[10]); a||b drops a row when either has appeared.

exact_total
boolean

Count meta.total past 10,000 precisely, at some extra latency.

facets
string[]

Aggregations to include: network, merchant, final_price, or dotted sub-fields such as network.name.

Provider reference: maximum 20.

fields
string[]

Product fields to return, for example id, name, final_price, urls.

Provider reference: maximum 50.

page
number

Page number, starting at 1.

Provider reference: minimum 1.

per_page
number

Products per page, 1 to 50. Defaults to 10 here.

Provider reference: minimum 1; maximum 50.

query
object

Rule builder { rules_operator: any|all, rules: [{ conditions_operator, conditions: [{ field, operator, value }] }] }. Exclusive with keyword and search.

Filter objects { field, value, operator }, ANDed together. Fields include any, name, brand, category, barcode, sku, asin, merchant.id, network.id, final_price, currency, availability, on_sale, merchant.countries. Operators: =, !=, LIKE, NOT LIKE, >, <, >=, <=, NOT NULL. || in value ORs values.

Provider reference: maximum 30.

sort_by
string

Sort field: relevance, id, barcode, ean, gtin, upc, isbn, asin, name, currency, regular_price, final_price, sale_discount, stock_quantity, commissionable_status, brand, category, color, gender, size, author, network.id, network.name, merchant.id, merchant.name, added_at, updated_at.

Provider reference: allowed values ["relevance", "id", "barcode", "ean", "gtin", "upc", "isbn", "asin", "name", "currency", "regular_price", "final_price", "sale_discount", "stock_quantity", "commissionable_status", "brand", "category", "color", "gender", "size", "author", "network.id", "network.name", "merchant.id", "merchant.name", "added_at", "updated_at"].

sort_order
string

Sort direction.

Provider reference: allowed values ["asc", "desc"].

响应

Products under data, with meta (total capped at 10,000 unless exact_total, current_page, last_page, per_page, after) and facets when asked. direct_url and urls.direct are the merchant page. commission_url, urls.affiliate and urls.outclick carry @@@/### placeholders when the account has a network link template, and are null when it does not. Product objects vary by merchant; undeclared fields are kept.

The response contains the tool result directly.

The provider identifies data as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.