Our catalogue, inside your shop
Read products, your prices, live stock, photos and specifications over a simple JSON API. You choose the categories; the data refreshes every hour.
- Format
- JSON, REST
- Prices
- EUR, net
- Updates
- Hourly
curl -H "Authorization: Bearer $SHARDWARE_API_KEY" \
"https://shardware.eu/api/v1/products?category=graphics-cards&in_stock=true"{
"data": [
{
"id": 5123,
"name": "ASUS GeForce RTX 5090 TUF Gaming OC 32GB",
"brand": "ASUS",
"mpn": "90YV0LW0-M0NA00",
"ean": "4711387123456",
"category": "graphics-cards",
"category_path": ["gpu", "graphics-cards"],
"price": { "net": 2890.5, "currency": "EUR", "on_request": false },
"stock": { "status": "in_stock", "quantity": 4, "lead_days": null },
"weight_kg": 2.4,
"images": ["https://shardware.eu/api/v1/images/5123/1"],
"updated_at": "2026-11-09T13:45:02.000Z"
}
],
"page": 1, "per_page": 50, "total": 42, "total_pages": 1
}Get an API key
Enter the access code you received from Shardware, choose the categories you want and create your key. The code already sets your prices and which categories are open to you.
- 1Enter your access code
- 2Choose categories
- 3Copy your key
Quick start
- Keep the key on your server, e.g. in
SHARDWARE_API_KEY. Never put it in browser or mobile code. - Load the category tree with
GET /categoriesand note the slugs you need. - Import each category: page through
GET /products?category=…&per_page=200&include=detailsuntilpageequalstotal_pages. Save products byid. - Every 1–6 hours fetch changes with
updated_sinceand remove products missing fromGET /products/ids.
const API = "https://shardware.eu/api/v1";
const headers = { Authorization: `Bearer ${process.env.SHARDWARE_API_KEY}` };
async function importCategory(slug) {
for (let page = 1; ; page++) {
const res = await fetch(`${API}/products?category=${slug}&per_page=200&include=details&page=${page}`, { headers });
if (!res.ok) throw new Error((await res.json()).error.message);
const { data, total_pages } = await res.json();
for (const product of data) await saveProduct(product); // upsert by product.id
if (page >= total_pages) break;
}
}Authentication
Send the key in the Authorization header of every request. X-Api-Key works too. A wrong or disabled key returns 401. If a key leaks, ask us to replace it — the old one stops working at once.
Authorization: Bearer swk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKeeping in sync
Our prices and stock refresh about once an hour, so polling more often than every 15 minutes brings nothing new. A good routine:
Changes
GET /products?updated_since=… with the time of your previous run. Update price, stock and content by id.
Removals
GET /products/ids lists every product you can sell right now. Hide or delete local products that are not in it.
Show price.net plus your VAT. When price.on_request is true, show “price on request”. Products with stock.status = "on_order" can still be ordered; stock.lead_days gives the expected wait when known.
Endpoints
Base URL https://shardware.eu/api/v1. All responses are JSON. Lists are wrapped in data.
GET/categories
The categories open to your key, each with its subcategories and a product count. A category always includes everything below it: use a parent slug to take a whole branch, a child slug for a narrower set.
{
"data": [
{
"slug": "gpu",
"parent": null,
"name": { "en": "GPUs & accelerators", "et": "GPU-d ja kiirendid", "ru": "GPU и ускорители" },
"product_count": 272,
"children": [
{ "slug": "graphics-cards", "parent": "gpu", "name": { "en": "Graphics cards" }, "product_count": 226, "children": [] }
]
}
]
}GET/products
Products in your categories, page by page. All parameters are optional.
| Parameter | Type | What it does |
|---|---|---|
| category | slug | One of your categories, with its subcategories. Default: all your categories. |
| q | text | Words in the name or manufacturer part number; an exact EAN also matches. |
| brand | text | Exact brand, any letter case, e.g. ASUS. |
| in_stock | true | Only products available now. |
| updated_since | ISO date | Only products changed at or after this time. |
| sort | id · price_asc · price_desc · updated | Default id — stable for paging. |
| page | number | From 1. |
| per_page | 1–200 | Default 50. |
| include | details | Also return description and specs for each product. |
{
"data": [ { …product… } ],
"page": 1,
"per_page": 50,
"total": 226,
"total_pages": 5
}GET/products/{id}
One product with its description and grouped specifications. Returns 404 if it is gone or outside your categories.
{
"data": {
"id": 5123,
"name": "ASUS GeForce RTX 5090 TUF Gaming OC 32GB",
…
"description": "…",
"specs": [
{ "group": "Memory", "label": "Graphics card memory type", "value": "GDDR7" },
{ "group": "Memory", "label": "Discrete graphics card memory", "value": "32 GB" }
]
}
}GET/products/ids
Every product id you can sell right now — use it to remove products that are gone.
{ "data": [101, 102, 5123], "total": 3 }POST/keys
Creates a key from an access code — the same as the form above, for scripts. No key is needed for this call. Leave categories empty to take everything the code allows; GET /access-codes/{code} lists what it allows.
curl -X POST https://shardware.eu/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"code": "SW-XXXX-XXXX", "name": "My shop", "contact": "dev@example.com", "categories": ["graphics-cards"]}'Product fields
| Parameter | Type | What it does |
|---|---|---|
| id | number | Our product id. Stable — use it as your external key. |
| name | text | Product name in English. |
| brand | text | Manufacturer. |
| mpn | text | null | Manufacturer part number. |
| ean | text | null | EAN / GTIN barcode — the best key to match other catalogues. |
| category, category_path | slug, slugs | Leaf category, and the path from the top category down to it. |
| price.net | number | null | Your price in EUR without VAT. null when price.on_request is true. |
| stock.status | in_stock | on_order | in_stock when quantity is above 0. |
| stock.quantity | number | Units available now. |
| stock.lead_days | number | null | Expected days until available for on_order products; null = ask us. |
| weight_kg | number | null | Shipping weight. |
| images | URLs | First one is the main photo. Download them if you need to resize or cache. |
| description, specs | text, list | In /products/{id} or with include=details. specs[].group groups rows for display. |
| updated_at | ISO date | When this product last changed on our side. |
Errors and limits
Errors return an HTTP status and a body like {"error": {"code": "…", "message": "…"}}. The message says what to fix.
| Parameter | Type | What it does |
|---|---|---|
| 400 | bad_sort, bad_date, … | A parameter is wrong — fix it and retry. |
| 401 | missing_key, invalid_key | Send a valid key. A disabled key stays 401. |
| 404 | unknown_category, not_found | The category isn’t open to your key, or the product is gone — remove it locally. |
| 410 | code_used, code_expired | The access code can’t create more keys — ask us for a new one. |
| 429 | rate_limited | Over 300 requests a minute. Wait for the next minute. |
| 5xx | — | Retry later with a growing pause, e.g. 1, 5, 30 minutes. |
For AI agents
Building the integration with an AI assistant? Give it these two links — they describe the same API in formats agents read best.

