Skip to main content

API Reference

Products API

The Products endpoint allows you to list, search, and view single products from the Cobra Connect Distribution catalog. This is a read-only resource for standard API keys.

List All Products

GET/wp-json/wc/v3/products

Query Parameters

ParameterTypeDescription
pageintegerCurrent page of results. Default: 1
per_pageintegerNumber of results per page. Default: 10. Max: 100
searchstringLimit results to those matching a string.
categorystringLimit results to those in the category (ID).

Response Schema (JSON)

[
{
"id": 794,
"name": "Premium Quality",
"slug": "premium-quality-19",
"permalink": "https://example.com/product/premium-quality/",
"type": "simple",
"status": "publish",
"featured": false,
"catalog_visibility": "visible",
"description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>",
"short_description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>",
"sku": "",
"price": "21.99",
"regular_price": "21.99",
"sale_price": "",
"on_sale": false,
"purchasable": true,
"total_sales": 0,
"virtual": false,
"downloadable": false,
"stock_quantity": null,
"stock_status": "instock",
"categories": [
    {
    "id": 9,
    "name": "Clothing",
    "slug": "clothing"
    },
    {
    "id": 14,
    "name": "T-shirts",
    "slug": "t-shirts"
    }
],
"images": [
    {
    "id": 792,
    "src": "https://example.com/wp-content/uploads/2018/04/hoodie-2.jpg",
    "name": "hoodie-2",
    "alt": ""
    }
]
}
]