Shardware

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
Request
curl -H "Authorization: Bearer $SHARDWARE_API_KEY" \
  "https://shardware.eu/api/v1/products?category=graphics-cards&in_stock=true"
Response
{
  "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.

  1. 1Enter your access code
  2. 2Choose categories
  3. 3Copy your key

No code yet? Write to partners@shardware.eu.

Quick start

  1. Keep the key on your server, e.g. in SHARDWARE_API_KEY. Never put it in browser or mobile code.
  2. Load the category tree with GET /categories and note the slugs you need.
  3. Import each category: page through GET /products?category=…&per_page=200&include=details until page equals total_pages. Save products by id.
  4. Every 1–6 hours fetch changes with updated_since and remove products missing from GET /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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keeping 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.

ParameterTypeWhat it does
categoryslugOne of your categories, with its subcategories. Default: all your categories.
qtextWords in the name or manufacturer part number; an exact EAN also matches.
brandtextExact brand, any letter case, e.g. ASUS.
in_stocktrueOnly products available now.
updated_sinceISO dateOnly products changed at or after this time.
sortid · price_asc · price_desc · updatedDefault id — stable for paging.
pagenumberFrom 1.
per_page1–200Default 50.
includedetailsAlso 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

ParameterTypeWhat it does
idnumberOur product id. Stable — use it as your external key.
nametextProduct name in English.
brandtextManufacturer.
mpntext | nullManufacturer part number.
eantext | nullEAN / GTIN barcode — the best key to match other catalogues.
category, category_pathslug, slugsLeaf category, and the path from the top category down to it.
price.netnumber | nullYour price in EUR without VAT. null when price.on_request is true.
stock.statusin_stock | on_orderin_stock when quantity is above 0.
stock.quantitynumberUnits available now.
stock.lead_daysnumber | nullExpected days until available for on_order products; null = ask us.
weight_kgnumber | nullShipping weight.
imagesURLsFirst one is the main photo. Download them if you need to resize or cache.
description, specstext, listIn /products/{id} or with include=details. specs[].group groups rows for display.
updated_atISO dateWhen 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.

ParameterTypeWhat it does
400bad_sort, bad_date, …A parameter is wrong — fix it and retry.
401missing_key, invalid_keySend a valid key. A disabled key stays 401.
404unknown_category, not_foundThe category isn’t open to your key, or the product is gone — remove it locally.
410code_used, code_expiredThe access code can’t create more keys — ask us for a new one.
429rate_limitedOver 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.