Unofficial API wrapper for Open EAN/GTIN Database
Library to use the api of the Open EAN/GTIN Database
serves as API wrapper for the api of this EAN/GTIN database service
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 import OpenEAN userID = #your user id openean = OpenEAN(userID) barcode_num = #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))
The creators of the API for making this possible and please consider donating to "KÃ¼ste gegen Plastik" if you like this service to help the creators of the database running it.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.