{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"e1f6f5f9-245d-45b3-a802-c97e945e2bfa","catalogType":"api","categories":["e-commerce","data"],"dataPlatform":"barcode-lookup","dataPlatformLogoUrl":"https://api.sh/logos/barcode-lookup.png","dataPlatformTranslations":{},"dataProduct":"barcodes","description":"Look up products by GTIN, EAN or UPC strings via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as gtin, output, raw, and retrieve structured data including normalised barcode string, barcode check-digit validation result, product display name, underlying database product reference, and source licence reference text for product catalogue, and source lineage.","descriptionTranslations":{"ar":"ابحث عن بيانات منتج معبأ بسلسلة أرقام باركود مدعومة وقاعدة بيانات اختيارية، واسترجع هوية المنتج والسمات المتاحة ومراجع المصدر والترخيص لإثراء الفهرس. استخدم المعرّفات ومراجع المصدر لإثراء فهرس منظم أو ربط السجلات، مع حفظ نطاق كل حقل ومعناه؛ تتوفر أمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة التفاصيل.","ja":"対応するバーコード数字列と任意のデータベース指定から包装商品の情報を検索し、商品 ID、取得可能な属性、出典とライセンス参照を取得できます。 返された識別子と出典参照を構造化カタログの補完や関連レコードの連携に使い、各項目の範囲と意味を保持できます。詳細ページにはリクエスト例と実装料金があります。","zh":"使用支持的条码数字字符串和可选数据库查找包装商品元数据，获取商品标识、可用属性及来源与许可引用，补充商品目录。 可利用返回的标识和来源引用补充结构化目录或关联记录，保留各字段的范围与含义；详情页提供受支持的请求示例和当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"9d5ae585-0b04-47b1-b772-e464097cb31e","includedContentHtml":"","inputs":[{"description":"Barcode digits (8, 12, 13 or 14).","location":"query","name":"gtin","nullable":false,"required":true,"type":"string"},{"description":"Which database to ask.","enum_values":["all","food","beauty","petfood","products"],"location":"query","name":"source","nullable":false,"required":false,"type":"string"},{"description":"Also return the full record.","location":"query","name":"raw","nullable":false,"required":false,"type":"boolean"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/barcode-lookup.png","method":"GET","name":"Product by barcode (GTIN / EAN / UPC) API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eGTIN/EAN/UPC Barcode Lookup API\u003c/h2\u003e\n\u003cp\u003ePass required gtin as an 8-, 12-, 13- or 14-digit string and optionally select source. Keep check-digit validation, found and source product identity separate; category-specific attributes depend on the returned database record.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired: gtin. Optional: source. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Product by barcode (GTIN / EAN / UPC) API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eProduct catalogue\u003c/strong\u003e: Connect supported barcode strings to returned product metadata.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSource lineage\u003c/strong\u003e: Keep database references, attribute units and licence text with each record.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egtin_normalized\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNormalised barcode string\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003echeck_digit_valid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBarcode check-digit validation result\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efound\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWhether a database product was found\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eproduct.name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eProduct display name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eproduct.source_url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUnderlying database product reference\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eproduct.license\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource licence reference text\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/barcode/v1/lookup \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode gtin=3017624010701 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=false\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/9d5ae585-0b04-47b1-b772-e464097cb31e\"\u003ePublished GTIN/EAN/UPC Barcode Lookup API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eShould the barcode be stored as a number?\u003c/h3\u003e\n\u003cp\u003eKeep it as a digit string to preserve leading zeroes. The exposed gtin input accepts 8, 12, 13 or 14 digits.\u003c/p\u003e\n\u003ch3\u003eDoes a valid check digit guarantee a database match?\u003c/h3\u003e\n\u003cp\u003eNo. check_digit_valid concerns the barcode check, while found reports whether a product record was found. Keep both results separate.\u003c/p\u003e\n\u003ch3\u003eWhich database selections are exposed?\u003c/h3\u003e\n\u003cp\u003esource accepts all, food, beauty, petfood or products. Retain the returned product.source and source_url instead of assuming every result comes from one database.\u003c/p\u003e\n\u003ch3\u003eDo all products have the same attributes and reuse terms?\u003c/h3\u003e\n\u003cp\u003eNo. Category-specific attributes can differ. Preserve nutrition_per and quantity units when present, along with the returned source and licence references.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/timeanddate/timeanddate-countries-with-holiday-lists-api\"\u003etimeanddate countries with holiday lists API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/barcode-lookup/barcode-lookup-product-by-barcode-gtin-ean-upc-api?offering=9d5ae585-0b04-47b1-b772-e464097cb31e","providerId":"apish","publicPath":"/v1/agent-apis/apish/barcode/v1/lookup","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"gtin":"3017624010701","output":"json","raw":"false"}},"response_body":{"cached":false,"check_digit_valid":true,"credits_used":1,"fetched_at":"2026-11-19T12:29:45.489Z","found":true,"gtin":"3017624010701","gtin_normalized":"3017624010701","product":{"additives":[],"allergens":["nuts"],"brand_owner":null,"brands":["Ferrero"],"categories":["breakfasts","spreads","sweet spreads","pates a tartiner","hazelnut spreads","chocolate spreads","cocoa and hazelnuts spreads","Other"],"completeness":0.7625,"countries":["france","united kingdom"],"created_at":"2020-10-13T19:33:21.000Z","ecoscore_grade":"d","ecoscore_score":35,"food_groups":["sugary snacks","sweets"],"generic_name":null,"gtin":"3017624010701","images":{"front":"https://images.openfoodfacts.org/images/products/301/762/401/0701/front_en.100.400.jpg","ingredients":"https://images.openfoodfacts.org/images/products/301/762/401/0701/ingredients_en.60.400.jpg","nutrition":"https://images.openfoodfacts.org/images/products/301/762/401/0701/nutrition_en.63.400.jpg","packaging":"https://images.openfoodfacts.org/images/products/301/762/401/0701/packaging_en.65.400.jpg"},"ingredients":"sugar, palm oil, hazelnuts (13%), skimmed milk powder (8.7%), fat reduced cocoa (7.4%), emulsifier: lecithins (soya), vanillin","ingredients_count":7,"ingredients_detail":[{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:sugar","labels":null,"origins":null,"percent":null,"percent_estimate":58.62,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"sugar","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:palm oil","labels":null,"origins":null,"percent":null,"percent_estimate":18.04,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"palm oil","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:hazelnuts","labels":null,"origins":null,"percent":null,"percent_estimate":9.06,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"hazelnuts","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:skimmed milk powder","labels":null,"origins":null,"percent":null,"percent_estimate":5.55,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"skimmed milk powder","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:fat reduced cocoa","labels":null,"origins":null,"percent":null,"percent_estimate":3.8,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"fat reduced cocoa","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"de:emulsifier","labels":null,"origins":null,"percent":null,"percent_estimate":2.79,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"emulsifier","vegan":null,"vegetarian":null},{"additive_class":null,"e_number":null,"from_palm_oil":null,"id":"en:vanillin","labels":null,"origins":null,"percent":null,"percent_estimate":2.14,"percent_max":null,"percent_min":null,"processing":null,"sub_ingredients":[],"text":"vanillin","vegan":true,"vegetarian":true}],"labels":["no gluten"],"languages":["de","en","it","ro"],"license":"ODbL 1.0 (database), CC BY-SA 3.0 (images)","manufacturer_url":null,"manufacturing_places":null,"name":"Nutella","net_quantity":400,"net_quantity_unit":"g","nova_group":null,"nutriscore_grade":"e","nutriscore_score":31,"nutrition_100g":{"added_sugars_g":0,"carbohydrates_g":57.5,"energy_kcal":539,"energy_kj":2228,"fat_g":30.9,"proteins_g":6.3,"salt_g":0.1075,"saturated_fat_g":10.6,"sodium_g":0.043,"sugars_g":56.3},"nutrition_per":"100g","nutrition_serving":null,"obsolete":false,"origins":null,"packager_codes":[],"packaging":["glass jar"],"palm_oil_free":false,"period_after_opening":null,"quantity":"400.0 g","scans":46,"serving_size":null,"source":"Open Food Facts","source_url":"https://world.openfoodfacts.org/product/3017624010701","stores":["Sainsbury's","Tesco"],"traces":["milk","nuts","soybeans"],"updated_at":"2026-10-02T17:52:32.000Z","vegan":false,"vegetarian":false}}}],"seoDescription":"Look up products by GTIN, EAN or UPC strings via REST or MCP powered by Apish. Pay per call, no subscription. Built for product catalogue workflows.","updatedAt":"2026-12-03T02:48:48.221Z","usageInstructionsHtml":""}}