Toys Hub
v2.1.0Browse Toys Hub: products, prices in ALL, stock, delivery and checkout links.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_products Search products
Search Toys Hub's catalogue by words, category, age and price. Returns name, price, availability, photo, product page and a buy-now link for each match.
| Parameter | Type | Description |
|---|---|---|
age | integer | Child's age in years; returns products suitable for that age. |
category | string | Category slug from list_categories. |
in_stock_only | boolean | true: only products that can be bought now (in stock). |
lang | string | Language of names, descriptions and links: "sq" Albanian, "en" English. |
limit | integer | How many products to return, 1 to 50. |
max_price | number | Highest price, in the store currency. |
query | string | Words to look for in names and descriptions (Albanian or English). Empty lists popular products. |
get_product Product details
Everything about one product: description, price, availability, age range, brand, photos, rating, delivery and payment facts, and a buy-now link.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Product slug (from search_products). |
lang | string | Language of names, descriptions and links: "sq" Albanian, "en" English. |
list_categories Categories
All product categories with their slug, name, product count and page.
| Parameter | Type | Description |
|---|---|---|
lang | string | Language of names, descriptions and links: "sq" Albanian, "en" English. |
get_store_info Store information
Who the store is and how buying works: delivery countries, cost and time, payment methods, returns, currency, languages and contact.
| Parameter | Type | Description |
|---|---|---|
lang | string | Language of names, descriptions and links: "sq" Albanian, "en" English. |
check_availability Check availability
Whether a product can be ordered now in the wanted quantity.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Product slug (from search_products). |
quantity | integer | How many the shopper wants; the answer says whether that many are in stock. |
get_shipping_quote Delivery cost
Delivery cost and time for a city, and whether the order qualifies for free delivery.
| Parameter | Type | Description |
|---|---|---|
city | string | Delivery city, e.g. Tirana or Prishtina. |
order_total | number | Value of the products, in the store currency. |
create_cart_link Checkout link
Make a link that opens Toys Hub's checkout with these products already in the cart. Give it to the shopper; they confirm and pay on the store's site. Nothing is ordered or stored by this tool.
| Parameter | Type | Description |
|---|---|---|
items * | array | The products to put in the cart, each with its quantity. |
lang | string | Language of names, descriptions and links: "sq" Albanian, "en" English. |