Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Unofficial API wrapper for Open EAN/GTIN Database

Project description

OpenEAN

Library to use the api of the Open EAN/GTIN Database

serves as API wrapper for the api of this EAN/GTIN database service

Getting started

Install the library from pypi via pip install openean

Then you need an user_id for the service; more info how you get that

There is also an id for small tests: "400000000" as described here https://opengtindb.org/faq.php#g

from openean.OpenEAN import OpenEAN


userID = 400000000  #user your own id here

openean = OpenEAN(userID)

barcode_num = 1111 #barcode number of you product

items = openean.parse(barcode_num)
#items is a list of possible products associated with the code
# the properties of each item are described here https://opengtindb.org/api.php

#only to show you structure of working results
#not needed for use
from pprint import pprint
for item in items:
    pprint(vars(item))

Thanks to

The creators of the API for making this possible and please consider donating to "Kueste gegen Plastik" if you like this service to help the creators of the database running it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for openean, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size openean-0.1.2-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page