E-commerce product with name, description, pricing, category, brand, SKU, stock availability, and image. Used for online stores, product catalogs, and inventory management systems.
https://api.mockly.codes/products?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/productsGet a collection of products
/commerce/products/products/:idGet a single product by ID
/commerce/products/:id/products/metaGet resource metadata and schema
/commerce/products/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/products?q=laptopGET https://api.mockly.codes/products?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 products
fetch('https://api.mockly.codes/products?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/products?count=10'
)
data = response.json()curl "https://api.mockly.codes/products?count=10"fetch('https://api.mockly.codes/products?nocache=true')idintegerrequiredUnique identifier for the product
random_intnamestringrequiredProduct name or title displayed to customers
sentencedescriptionstringDetailed product description including features, specifications, and benefits
paragraphpricenumberrequiredProduct price in the specified currency
pricecurrencystringISO currency code for the product price (e.g., USD, EUR, GBP)
currencycategorystringProduct category or classification (e.g., Electronics, Clothing, Books, Home & Garden)
categorybrandstringBrand or manufacturer name of the product
companyskustringStock Keeping Unit - unique product identifier used for inventory tracking and order management
uuidstockintegerCurrent available stock quantity available for purchase
random_intimagestringURL to the product's main image or photo
image_urluricountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request