---
agentTools:
  projectIndex: https://image-relay-api.readme.io/llms.txt
---

# Get products

Retrieve a paginated array of products

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Image Relay's API",
    "version": "1.3"
  },
  "servers": [
    {
      "url": "https://api.imagerelay.com/api/v2/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/products": {
      "get": {
        "summary": "Get products",
        "description": "Retrieve a paginated array of products",
        "operationId": "get-products",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Retrieve products with the matching name value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with_variant",
            "in": "query",
            "description": "Retrieve products that are associated with the specified product template ID     see: /api/v2/product_templates.json to retrieve all product templates and their corresponding ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "with_variants",
            "in": "query",
            "description": "Retrieve products that either have variants enabled, or do not have variants enabled.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "with_variant_dimension_id",
            "in": "query",
            "description": "Retrieve products that have variants enabled and have the specified dimension_id associated with their product     see: /api/v2/product_dimensions to retrieve all product dimensions and their corresponding ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "in_category",
            "in": "query",
            "description": "Retrieve products that have been assigned the specified category ID     see: /api/v2/product_categories to retrieve all product categories and their corresponding ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"products\": [\n        {\n            \"id\": 1,\n            \"name\": \"Example Product\",\n          \t\"sku\": \"1\",\n            \"product_category_id\": null,\n            \"product_template_id\": null,\n            \"has_variants\": false\n        },\n      \t{\n        \t...\n        }\n    ],\n    \"pagination\": {\n        \"current\": 1,\n        \"previous\": null,\n        \"next\": null,\n        \"per_page\": 100,\n        \"pages\": 1,\n        \"count\": 3,\n        \"prev_page_path\": null,\n        \"next_page_path\": null\n    }\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6369721ac49880008c871966:6369721ac49880008c8719b3"
}
```