Mirror your online store directly onto Ghazzle
Add one line of code to your active website or send automated REST requests to syndicate products, prices, and stock to Ghana's marketplace.
JavaScript Embed
Auto Schema.org
Direct REST API
POST /api/syndication/sync
WooCommerce Hook
WordPress Native
Shopify Webhooks
Instant Trigger
Simple Setup
Connect your catalog in 3 easy steps
Designed so any store owner or developer can connect in minutes.
Generate Your API Key
Upgrade to Premium, Auto Dealer, or Real Estate, then generate your store API key from your Ghazzle Seller Dashboard.
Embed JavaScript or Call REST API
Paste our 1-line script before </body> on your product pages or send HTTP POST requests with your X-Api-Key header.
Instant Catalog Sync
Your products, prices, descriptions, and high-resolution images automatically appear in Ghazzle search.
Option 1: One-Line JavaScript Embed
Drop onto your website
The script automatically captures Schema.org JSON-LD product data, pricing, and images without needing custom backend code.
Storefront HTML Embed Snippet
HTML
<!-- Ghazzle Business Product Sync -->
<script>
(function() {
var GHAZZLE_API_KEY = 'YOUR_API_KEY';
var GHAZZLE_API_URL = 'https://api.ghazzle.com/api/syndication/sync';
function syncProduct(product) {
fetch(GHAZZLE_API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-Api-Key': GHAZZLE_API_KEY },
body: JSON.stringify(product)
}).then(function(r) { if (r.ok) console.log('[Ghazzle] Synced:', product.externalProductId); })
.catch(function(e) { console.warn('[Ghazzle] Sync failed:', e); });
}
var schema = document.querySelector('[type="application/ld+json"]');
if (schema) {
try {
var data = JSON.parse(schema.textContent);
if (data['@type'] === 'Product') {
syncProduct({
externalProductId: data.sku || window.location.pathname,
title: data.name,
description: data.description,
price: data.offers ? parseFloat(data.offers.price) : 0,
imageUrl: data.image
});
}
} catch (e) {}
}
window.GhazzleSync = { syncProduct: syncProduct };
})();
</script>Option 2: Direct REST API
Programmatic control for developers
Send catalog updates directly with HTTP POST requests using your unique X-Api-Key authentication header.
POST /api/syndication/sync
HTTP / JSON
// Direct REST Product Sync Request
POST https://api.ghazzle.com/api/syndication/sync
Headers:
Content-Type: application/json
X-Api-Key: ghz_prod_57b12d90e9e4f2a
Body:
{
"externalProductId": "SKU-10024",
"title": "Executive Ergonomic Office Chair",
"description": "High-back mesh swivel chair with lumbar support and adjustable armrests",
"price": 450.00,
"imageUrl": "https://yourdomain.com/images/chair.jpg",
"category": "Furniture",
"condition": "New",
"quantity": 10
}Platform Compatibility
Works with every website and e-commerce platform
Whether you run custom code or standard e-commerce software, sync is simple.
Any Custom HTML / Next.js
Embed the lightweight JS snippet that auto-detects Schema.org product data.
WooCommerce / WordPress
Trigger synchronization on product save with a simple PHP action hook.
Shopify Stores
Forward products/update webhook events directly to the Ghazzle sync API.
Custom Backends (Node, Python, C#)
Standard REST POST requests with your unique X-Api-Key header.
Developer FAQ
Frequently asked questions about Product Sync
Everything you need to know about API keys, endpoints, and data formatting.
