How to - GPSR

This tutorial will guide you through using the GPSR (General Product Safety Regulation) data in our API.
We'll cover the updated getProducts method and the new getGPSREntities method.

Updated getProducts Method

The getProducts method has been enhanced to include GPSR-related information.

New Query Parameter

  • gpsr_ready: This parameter has been added to filter products based on their GPSR readiness.

New Response Fields

  • producerid: Identifier for the product's producer
  • responsiblecompanyid: Identifier for the company responsible for the product
  • safetyinformation: Safety-related information for the product

New getGPSREntities Method

The getGPSREntities method allows you to retrieve detailed information about producers and responsible companies.

Parameters

  • id: The ID of the producer or responsible company. Can be empty to fetch all entries. You can also specify single or multiple IDs.

Integrating GPSR Data in Your Application

To make use of the GPSR data in your application:

  1. Fetch products using the getProducts method, optionally filtering with gpsr_ready=true
  2. For each product, extract the producerid and responsiblecompanyid
  3. Use these IDs to fetch detailed information using the getGPSREntities method
  4. Display the combined product and entity information as needed in your application