从 Shopify、Amazon、Etsy 或 CSV 导入商品到Mobazha 店铺,用于迁移或复制其他平台的商品列表。
Import products from Shopify, Amazon, Etsy, and other e-commerce platforms into your Mobazha store.
This skill helps you migrate or copy product listings from existing platforms into Mobazha. Two approaches are available:
If the store is connected via MCP, use the listings_import_json tool for the fastest bulk import:
json
{
"import_json": "{\"listings\":[...], \"shippingProfiles\":[...]}",
"images_base64": "{\"photo1.jpg\":\"<base64>\",\"photo2.jpg\":\"<base64>\"}"
}
The tool builds a ZIP archive internally and uploads it to POST /v1/listings/import/json.
json
{
"listings": [
{
"slug": "unique-product-slug",
"title": "Product Name",
"contractType": "PHYSICAL_GOOD",
"price": "29.99",
"pricingCurrency": "USD",
"description": "Product description",
"shortDescription": "Brief summary",
"productType": "Clothing",
"tags": ["tag1", "tag2"],
"condition": "NEW",
"nsfw": false,
"images": ["photo1.jpg", "photo2.jpg"],
"introVideo": "demo.mp4",
"processingTime": "1-3 business days",
"grams": 500,
"quantity": "100",
"shippingProfileId": "Standard Shipping",
"variants": [
{ "selections": {"Color": "Red", "Size": "S"}, "price": "24.99", "quantity": "50", "productID": "SKU-RED-S" },
{ "selections": {"Color": "Blue", "Size": "S"}, "price": "26.99", "quantity": "30", "productID": "SKU-BLU-S" }
]
}
],
"shippingProfiles": [
{
"key": "Standard Shipping",
"name": "Standard Shipping",
"isDefault": true,
"locationGroups": [
{
"name": "Worldwide",
"locations": [{ "country": "ALL" }],
"shippingOptions": [
{ "name": "Standard", "type": "FIXED_PRICE", "price": "5.00" }
]
}
]
}
],
"collections": [
{
"title": "Summer Collection",
"description": "Best summer products",
"image": "summer-banner.jpg",
"products": ["unique-product-slug"]
}
],
"profile": {
"name": "Store Name",
"about": "Store description",
"shortDescription": "Brief tagline",
"location": "New York, US"
}
}
TypeNotesPHYSICAL_GOODRequires shippingProfileId matching a profile key/nameDIGITAL_GOODNo shipping neededSERVICENo shipping neededCRYPTOCURRENCYToken/coin listings (supports RWA fields)
Each variant uses a selections map (not separate name/options fields):
json
{ "selections": {"Color": "Red", "Size": "M"}, "price": "24.99", "quantity": "50", "productID": "SKU-001" }
Group products into collections by referencing their slugs:
json
{ "title": "New Arrivals", "products": ["product-slug-1", "product-slug-2"] }
For the complete field reference, see references/mapping.md.
Images referenced in listings[].images must be provided as base64-encoded data in the images_base64 parameter. The filenames must match exactly.
To prepare images:
images_base64 JSON map: {"filename.jpg": "<base64-data>"}For non-MCP contexts (e.g., shell scripts), build a ZIP file manually:
text
my-import/
├── listings.json # Required: product data + shipping profiles
├── profile.json # Optional: store profile data
├── images/ # Product images referenced in listings.json
│ ├── photo1.jpg
│ ├── photo2.png
│ └── ...
└── videos/ # Optional: intro videos
└── demo.mp4
bash
curl -X POST "https://your-store.example.com/v1/listings/import/json" \
-H "Authorization: Bearer <token>" \
-F "file=@my-import.zip"
json
{
"data": {
"total": 10,
"created": 8,
"updated": 2,
"failed": 0,
"createdItems": [{ "slug": "product-1", "title": "Product 1" }],
"updatedItems": [{ "slug": "product-2", "title": "Product 2" }],
"errors": []
}
}
Detailed per-platform extraction guides and field mappings are in the references/ directory:
FileDescriptionreferences/shopify-api.mdShopify CSV export and Admin API data extractionreferences/amazon-scrape.mdAmazon product page scraping with BeautifulSoupreferences/mapping.mdUniversal field mapping table (all platforms → Mobazha)
SourceMethodNotesShopifyCSV export or APISee references/shopify-api.mdAmazonWeb scrapingSee references/amazon-scrape.mdEtsyCSV export or APIExport from Etsy Shop ManagerWooCommerceCSV/JSON exportExport from WooCommerce adminGeneric CSVManualAny CSV with title, description, price, images
references/shopify-api.md for detailsreferences/mapping.md for field mappinglistings.json (include shippingProfiles for physical goods)listings_import_json MCP tool or direct ZIP APIreferences/amazon-scrape.md for scraping code and DOM selectorsreferences/mapping.md_AC_US40_ with _AC_SL1500_)listings_import_json MCP tool or direct ZIP APIImportant: Respect robots.txt and rate limits; use 3-5 second delays between requests; verify pricing before import
For small imports (< 10 products), create listings one at a time via the listings_create MCP tool:
json
{
"listing_json": "{\"slug\":\"my-product\",\"metadata\":{\"contractType\":\"DIGITAL_GOOD\",...},\"item\":{\"title\":\"...\",\"price\":\"9.99\",...}}"
}
Or via the Admin API:
text
POST /v1/listings
Content-Type: application/json
Authorization: Bearer <token>
Images must be uploaded first via POST /v1/media to obtain content hashes.
If the store is connected via MCP (recommended), authentication is handled automatically through the MCP session token.
For direct API calls, authenticate via OAuth to obtain a Bearer token, then include it in the Authorization header.