Skip to content

P31 - Get products for a list of product references

Request

Description

Note: this resource returns 100 products maximum
Results are sorted by product sku asc, then by product identifier type asc and then by product identifier asc

Call Frequency
Maximum usage: At each product page display
Localization

This resource supports locale parameter (see documentation)

Localized output fields will be highlighted with an icon:

Security
Front-Bearer-Token or OAuth-2
Query
product_referencesstringrequired

List of the product's identifiers with type, (structure: "product_references=<productIdType>|<productId>,<productIdType>|<productId>, ...") where accepted <productIdType> are operator’s product references, like EAN or UPC for example.

Note that SHOP_SKU or SKU are invalid <productIdType> for this API.

productsstringdeprecated

List of the product's identifiers with type, (structure: "products=<productId>|<productIdType>,<productId>|<productIdType>, ...") where accepted <productIdType> are operator’s product references, like EAN or UPC for example.

Note that SHOP_SKU or SKU are invalid <productIdType> for this API.

import fetch from 'node-fetch';

async function run() {
  const query = new URLSearchParams({
    product_references: 'string',
    products: 'string'
  }).toString();

  const resp = await fetch(
    `https://your-instance.mirakl.net/api/products?${query}`,
    {
      method: 'GET',
      headers: {
        Authorization: 'Bearer <YOUR_JWT_HERE>'
      }
    }
  );

  const data = await resp.text();
  console.log(data);
}

run();

Responses

OK

Bodyapplication/json
productsArray of objectsrequired

Products

total_countinteger, (int32)requireddeprecated

Total count

Response
{ "products": [ { … } ] }