getProductAttributes

Method returns product attributes for selected product
We strongly recommend to use comma-separated IDs instead of 1 request per product.
API request might be denied if too many calls are being performed.

An error will be thrown if too many response items would be returned asking you to narrow down your search.

Usage URL: https://hedo-pets.com/api/getProductAttributes.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • id

    integer or integer[]

    Internal identifier of product.
    More than one value can be specified after comma (,) separator.

  • categoryid

    integer

    Internal identifier of category. If set - will return results for all products inside this or nested category.

  • lang

    string

    Language of result. ISO 2 Letter Language Codes ie

    Example: en, pl, cs

  • id

    integer

    Internal identifier of product attribute

  • name

    string

    Name of product attribute

  • type

    string

    Type of product attribute. Available: mru, float, int, text, date

  • value

    string

    Value of product attribute

  • fkproduct

    integer

    Internal identifier of product.

  • fkcategory

    integer

    Internal identifier of category.

  • isgrouping

    boolean (1 = true, 0 = false)

    If true - it's a virtual attribute whose value is used to group products together into a variant group.

Example URL: https://hedo-pets.com/api/getProductAttributes.json?key=YOURAPIKEY&lang=en&id=31534

[
    {
        "id": 8,
        "name": "Phone Manufacturer",
        "type": "mru",
        "value": "Samsung",
        "fkproduct": 12345,
        "fkcategory": 1234,
        "isgrouping": 0,
    },
    {
        "id": 6,
        "name": "Accessory Manufacturer",
        "type": "mru",
        "value": "Samsung [OE]",
        "fkproduct": 12345,
        "fkcategory": 1234,
        "isgrouping": 0,
    },
    {
        "id": 7,
        "name": "Color",
        "type": "mru",
        "value": "Pink",
        "fkproduct": 12345,
        "fkcategory": 1234,
        "isgrouping": 0
}
]
Example URL: https://hedo-pets.com/api/getProductAttributes.xml?key=YOURAPIKEY&lang=en&id=31534

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>8</id>
		<name>Phone Manufacturer</name>
		<type>mru</type>
		<value>Samsung</value>
		<fkproduct>12345</fkproduct>
		<fkcategory>1234</fkcategory>
		<isgrouping>0</isgrouping>
	</item>
	<item>
		<id>6</id>
		<name>Accessory Manufacturer</name>
		<type>mru</type>
		<value>Samsung [OE]</value>
		<fkproduct>12345</fkproduct>
		<fkcategory>1234</fkcategory>
		<isgrouping>0</isgrouping>
	</item>
	<item>
		<id>7</id>
		<name>Color</name>
		<type>mru</type>
		<value>Pink</value>
		<fkproduct>12345</fkproduct>
		<fkcategory>1234</fkcategory>
		<isgrouping>0</isgrouping>
	</item>
</root>