EUlabel documentation

Publish product passports through one API.

EUlabel Documentation

Publish EU Digital Product Passports and wine e-labels from the dashboard or the API.

EUlabel turns your product data into a public passport page and a QR code that opens it. It covers Digital Product Passports (DPPs, the EU's public product records) and wine e-labels (ingredients and nutrition shown online instead of on the bottle).

A quick tour of EUlabel

A tour of the platform: the dashboard, the passport wizard, a QR code, a phone scan, an API call, and the JSON-LD (linked-data JSON) a machine reads.

Read the transcript
  1. 0:00From product data to a passport anyone can scanFrom product data to a passport anyone can scan
  2. 0:04Wine, battery, textile and furniture share this path.One path, dashboard or API · Send data: Dashboard or API · Check it: Against the sector profile · Publish: Get a QR code · Scan: Page, JSON, JSON-LD
  3. 0:11Battery has the most data: 87 fields in 8 groups.
  4. 0:13Identity and manufacturer
  5. 0:17Carbon footprint and recovered materials
  6. 0:20Published. The QR code now opens this page.
  7. 0:22This is the public page a scan opens.
  8. 0:31A scan opens the passport. No app, no account.
  9. 0:35Readers switch language at the top.
  10. 0:37Page text comes in six languages. Field labels stay in English for now.
  11. 0:43Restricted fields stay hidden until a reader has a token.
  12. 0:47The token is shown once. It is blurred here, so copy it straight away.
  13. 0:51The reader opens the same page and pastes the token.
  14. 0:55Restricted sections now appear, and the read is logged.
  15. 0:59This section is hidden from the public page.
  16. 1:03Incomplete data is saved as a draft, and the response says what is missing.
    $ curl -X POST https://api.eulabel.eu/v1/passports \
      -H "Authorization: Bearer $EULABEL_API_KEY" \
      -H "Content-Type: application/json" -d @partial.json
    HTTP 201
    {
      "status": "draft",
      "compliance": {
        "status": "incomplete",
        "completeness": 20,
        "missingFields": [
          {
            "field": "data.nutrition",
            "message": "Nutrition information per 100 mL is required for wine e-labels."
          }
        ]
      }
    }
  17. 1:12It merges with the draft. Once the required fields are there, it publishes.
    $ curl -X POST https://api.eulabel.eu/v1/passports \
      -H "Authorization: Bearer $EULABEL_API_KEY" \
      -H "Content-Type: application/json" -d @rest.json
    HTTP 201
    {
      "productId": "365c27d6-c2dd-4d4d-bd89-74246db4aec7",
      "status": "published",
      "version": 2,
      "compliance": {
        "status": "compliant",
        "completeness": 100
      }
    }
  18. 1:21Use productId, the UUID, in every other path.
    $ curl https://api.eulabel.eu/v1/products/365c27d6-c2dd-4d4d-bd89-74246db4aec7/passport \
      -H "Authorization: Bearer $EULABEL_API_KEY"
    HTTP 200
    {
      "gtin": "05609568580686",
      "status": "published",
      "digitalLink": "https://eulabel.eu/01/05609568580686"
    }
  19. 1:27Send an Accept header to get linked data.
    $ curl -H "Accept: application/ld+json" https://eulabel.eu/p/api/passport/ea22fac2-3e19-42b1-be58-d0d08d02861f
    content-type: application/ld+json
    {
      "@context": [
        "https://schema.org",
        {
          "gs1": "https://gs1.org/voc/"
        }
      ],
      "@type": "Product",
      "name": "Branco 2024"
    }
  20. 1:35Start with the quickstart. It takes about five minutes.What you get · Four sector profiles: Versioned and checked at publish · GS1 Digital Link QR codes: A printed code keeps working · Six languages: For the text on public pages · Restricted access: Tokens you issue, reads that are logged

Choose your path

Reading paths

You areRead in this order
Junior developerIntroduction, Quickstart, Test safely, Error handling
Senior integratorAuthentication, Idempotency, Data formats, Linkset, API reference

Sectors

Batteries, construction products, toys and detergents have their own adopted regulations. Textile, furniture, steel, tyres, mattresses and aluminium follow ESPR, the EU's Ecodesign for Sustainable Products Regulation, whose sector rules aren't adopted yet. Profiles built from a sector study are provisional. Mattress and aluminium have no study yet, so their profiles are an early preview.