{
"input": "3017620422003",
"valid": true,
"format": "EAN-13",
"normalized": "3017620422003",
"check_digit": "3",
"gs1_prefix": "301",
"registered_in": "France",
"is_isbn": false
}
curl --location --request GET 'https://zylalabs.com/api/15325/barcode+and+book+lookup+api/40932/validate+a+barcode+number&code=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"barcode": {
"input": "3017620422003",
"valid": true,
"format": "EAN-13",
"normalized": "3017620422003",
"check_digit": "3",
"gs1_prefix": "301",
"registered_in": "France",
"is_isbn": false
},
"found": true,
"kind": "food",
"product": {
"barcode": "3017620422003",
"name": "Nutella",
"brands": [
"Ferrero",
"Nutella"
],
"quantity": "400 g e",
"categories": [
"Desserts",
"Cocoa and hazelnuts spreads",
"Confectionary based spreads"
],
"countries_sold": [
"Belgium",
"France",
"Germany"
],
"image": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.879.400.jpg",
"ingredients": "sugar, palm oil",
"allergens": [
"milk",
"nuts",
"soybeans"
],
"labels": [
"vegetarian",
"no gluten",
"triman"
],
"nutri_score": "E",
"nova_group": 3,
"nutrition_per_100g": {
"energy_kcal": 539,
"fat_g": 30.9,
"saturated_fat_g": 10.6,
"carbohydrates_g": 57.5,
"sugars_g": 56.3,
"fiber_g": 0,
"protein_g": 6.3,
"salt_g": 0.107
},
"serving_size": null,
"source_url": "https://world.openfoodfacts.org/product/3017620422003",
"attribution": "Product data from Open Food Facts (openfoodfacts.org), Open Database License; images CC BY-SA."
}
}
curl --location --request GET 'https://zylalabs.com/api/15325/barcode+and+book+lookup+api/40933/look+up+a+product+or+book+by+barcode&code=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"total": 124,
"count": 10,
"books": [
{
"title": "Dune",
"authors": [
"Frank Herbert"
],
"first_published": 1965,
"editions": 155,
"pages": 604,
"languages": [
"ukr",
"rus",
"fre"
],
"isbn13": "9780340960196",
"cover": "https://covers.openlibrary.org/b/id/11481354-L.jpg",
"source_url": "https://openlibrary.org/works/OL893414W"
},
{
"title": "Dune Messiah",
"authors": [
"Frank Herbert"
],
"first_published": 1969,
"editions": 101,
"pages": 279,
"languages": [
"fre",
"tur",
"vie"
],
"isbn13": "9780425018477",
"cover": "https://covers.openlibrary.org/b/id/980253-L.jpg",
"source_url": "https://openlibrary.org/works/OL893461W"
},
{
"title": "Children of Dune",
"authors": [
"Frank Herbert"
],
"first_published": 1976,
"editions": 77,
"pages": 504,
"languages": [
"fre",
"spa",
"pol"
],
"isbn13": "9788381880473",
"cover": "https://covers.openlibrary.org/b/id/6976407-L.jpg",
"source_url": "https://openlibrary.org/works/OL893516W"
}
],
"attribution": "Book data from Open Library (openlibrary.org)."
}
curl --location --request GET 'https://zylalabs.com/api/15325/barcode+and+book+lookup+api/40934/search+books+by+title+author+or+keyword?q=dune frank herbert&limit=10' --header 'Authorization: Bearer YOUR_API_KEY'
{
"isbn13": "9780140328721",
"isbn10": "0140328726",
"title": "Fantastic Mr. Fox",
"subtitle": null,
"authors": [
"Roald Dahl"
],
"publishers": [
"Puffin"
],
"publish_date": "October 1, 1988",
"pages": 96,
"subjects": [
"Animals",
"Hunger",
"Open Library Staff Picks"
],
"cover": "https://covers.openlibrary.org/b/id/15152634-L.jpg",
"source_url": "http://openlibrary.org/books/OL7353617M/Fantastic_Mr._Fox",
"attribution": "Book data from Open Library (openlibrary.org)."
}
curl --location --request GET 'https://zylalabs.com/api/15325/barcode+and+book+lookup+api/40935/look+up+a+book+by+isbn&isbn=Required' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Barcode and Book Lookup API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Validate UPC, EAN and ISBN barcodes, look up food products by barcode, and find books by ISBN or search.
Check digits are computed locally. Product data comes from Open Food Facts (Open Database License) and book data from Open Library.
Product lookup covers food and drink (community-entered, variable quality) and books. Other product types return found: false. The registration country is where the brand owner registered, not where the product was made.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund