{
"summary": {
"product_count": 1,
"error_count": 1,
"warning_count": 5,
"fix_count": 2,
"health_score": 0,
"remaining_error_count": 1,
"remaining_warning_count": 4,
"health_score_after_fixes": 0,
"products_with_errors_after_fixes": 1,
"skipped_row_count": 0,
"source": "google",
"encoding": "utf-8",
"delimiter": ",",
"format": "csv",
"products_in_feed": 1,
"truncated": false,
"input": "feed_text",
"plan": "PRO",
"plan_max_products_per_request": 2500,
"feed_bytes": 210,
"elapsed_ms": 2
},
"issue_breakdown": [
{
"code": "gtin_invalid",
"severity": "error",
"field": "gtin",
"found": 1,
"remaining": 1,
"auto_fixed": 0,
"suggestion": "Correct the GTIN (8, 12, 13 or 14 digits with a valid check digit) or remove it. Never invent GTINs."
},
{
"code": "apparel_missing_age_group",
"severity": "warning",
"field": "age_group",
"found": 1,
"remaining": 1,
"auto_fixed": 0,
"suggestion": "Add age_group (adult, kids, toddler, infant, newborn) for apparel products."
},
{
"code": "apparel_missing_color",
"severity": "warning",
"field": "color",
"found": 1,
"remaining": 1,
"auto_fixed": 0,
"suggestion": "Add color for apparel products (required in many countries)."
},
{
"code": "apparel_missing_gender",
"severity": "warning",
"field": "gender",
"found": 1,
"remaining": 1,
"auto_fixed": 0,
"suggestion": "Add gender (male, female, unisex) for apparel products."
},
{
"code": "apparel_missing_size",
"severity": "warning",
"field": "size",
"found": 1,
"remaining": 1,
"auto_fixed": 0,
"suggestion": "Add size for apparel products (required in many countries)."
},
{
"code": "price_not_google_format",
"severity": "warning",
"field": "price",
"found": 1,
"remaining": 0,
"auto_fixed": 1,
"suggestion": "Format the price as '<amount> <ISO currency>', e.g. '19.99 USD'."
}
],
"skipped_rows": [],
"options": {
"target_country": "US",
"currency": "USD",
"auto_fix": true,
"title_max": 150,
"strict": false,
"store_url": ""
},
"products": [
{
"row": 2,
"id": "SKU-1",
"title": "Organic Cotton Tee",
"status": "error",
"remaining_issues": [
{
"code": "gtin_invalid",
"severity": "error",
"message": "GTIN '1234567890123' has invalid length or check digit",
"field": "gtin"
},
{
"code": "apparel_missing_color",
"severity": "warning",
"message": "Apparel product missing recommended attribute 'color'",
"field": "color"
},
{
"code": "apparel_missing_size",
"severity": "warning",
"message": "Apparel product missing recommended attribute 'size'",
"field": "size"
},
{
"code": "apparel_missing_gender",
"severity": "warning",
"message": "Apparel product missing recommended attribute 'gender'",
"field": "gender"
},
{
"code": "apparel_missing_age_group",
"severity": "warning",
"message": "Apparel product missing recommended attribute 'age_group'",
"field": "age_group"
}
],
"fixes": [
{
"field": "availability",
"after": "in_stock",
"reason": "normalize availability value"
},
{
"field": "price",
"after": "19.99 USD",
"reason": "reformat price to 'X.XX CURRENCY'"
}
],
"price": "19.99 USD",
"availability": "in_stock",
"brand": "Acme",
"gtin": "1234567890123",
"link": "https://shop.example.com/tee",
"image_link": "https://shop.example.com/tee.jpg"
}
]
}
curl --location --request POST 'https://zylalabs.com/api/15359/merchant+feed+validation+api/41051/check+product+feed' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"feed_text":"id,title,description,link,image_link,price,availability,brand,gtin,condition\nSKU-1,Organic Cotton Tee,Soft tee,https://shop.example.com/tee,https://shop.example.com/tee.jpg,19.99,in stock,Acme,1234567890123,new","product_detail":"compact","auto_fix":true}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 商家信息流验证 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
验证并自动修复来自 Shopify、WooCommerce、CSV、TSV 或 XML 的 Google Merchant Center 产品 Feed。返回评分、问题、修复结果和干净的 Feed
该端点接受来自 Shopify、WooCommerce、CSV、TSV 和 XML 来源的产品 Feed。响应会在 `format` 字段中标识检测到或处理的格式,例如 `csv`,也可能报告 `delimiter` 和 `encoding`】【。
它会返回验证结果、自动应用的修复、产品级发现、汇总指标,以及可选的清理后 Feed。结果可以包括问题代码、严重程度、受影响的字段、检测到的值、建议,以及修复后的剩余问题
`product_count` 是已处理产品的数量 `error_count` 和 `warning_count` 显示检测到的问题 而 `fix_count` 统计已应用的修复 `remaining_error_count`、`remaining_warning_count` 和 `health_score_after_fixes` 描述安全修正后的商品数据馈送
每个问题都包含 `code`、`severity` 和受影响的 `field`。也可能包含 `found`、`remaining`、`auto_fixed` 和 `suggestion` 值。例如,`gtin_invalid` 用于标识无效的 GTIN,并说明如何更正或移除它
API 会应用被认为安全的修正,通过修复数量和问题级别的 `auto_fixed` 值报告这些修正,并重新计算剩余问题和修复后的健康评分。无法安全修正的问题会保留以供人工审核
比较 `products_in_feed`、`product_count` 和 `skipped_row_count`。`skipped_row_count` 大于零表示有行未被处理。`truncated` 字段表示返回或处理的数据是否受到限制
响应提供总体健康评分和修复后的健康评分、错误和警告数量、修复后仍存在错误的产品,以及问题细分。这些字段有助于确定修正优先级,并衡量清理后的商品数据源是否已准备好接受进一步审核
使用清理后的 Feed 提交至下游 Merchant Center 或进行额外验证,然后检查 `remaining` 值非零的问题。先解决剩余错误,再查看警告,并根据每个问题的字段和建议进行商品级修正