Product by barcode (GTIN / EAN / UPC) API

Use the Product by barcode (GTIN / EAN / UPC) API to retrieve product identity, brands and package quantities, available category-specific product attributes and source and licence references as structured JSON from Barcode Lookup. Supply product barcode in the query. Use these results to identify packaged products from barcodes and enrich catalogues with the returned product attributes. Supported EAN, UPC and GTIN barcodes are checked before lookup; records retain their open-database source and licence references. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Barcode digits (8, 12, 13 or 14).
Optional parameters (6)
Which database to ask.
Also return the full record.
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

{
  "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
  }
}

Response result

Response structure

Inferred from examples
  • cachedboolean
  • check_digit_validboolean
  • credits_usedinteger
  • fetched_atstring
  • foundboolean
  • gtinstring
  • gtin_normalizedstring
  • productobject
    • additivesunknown[]
    • allergensstring[]
    • brand_ownernull
    • brandsstring[]
    • categoriesstring[]
    • completenessnumber
    • countriesstring[]
    • created_atstring
    • ecoscore_gradestring
    • ecoscore_scoreinteger
    • food_groupsstring[]
    • generic_namenull
    • gtinstring
    • imagesobject
      • frontstring
      • ingredientsstring
      • nutritionstring
      • packagingstring
    • ingredientsstring
    • ingredients_countinteger
    • ingredients_detailobject[]
      • additive_classnull
      • e_numbernull
      • from_palm_oilnull
      • idstring
      • labelsnull
      • originsnull
      • percentnull
      • percent_estimatenumber
      • percent_maxnull
      • percent_minnull
      • processingnull
      • sub_ingredientsunknown[]
      • textstring
      • vegannull | boolean
      • vegetariannull | boolean
    • labelsstring[]
    • languagesstring[]
    • licensestring
    • manufacturer_urlnull
    • manufacturing_placesnull
    • namestring
    • net_quantityinteger
    • net_quantity_unitstring
    • nova_groupnull
    • nutriscore_gradestring
    • nutriscore_scoreinteger
    • nutrition_100gobject
      • added_sugars_ginteger
      • carbohydrates_gnumber
      • energy_kcalinteger
      • energy_kjinteger
      • fat_gnumber
      • proteins_gnumber
      • salt_gnumber
      • saturated_fat_gnumber
      • sodium_gnumber
      • sugars_gnumber
    • nutrition_perstring
    • nutrition_servingnull
    • obsoleteboolean
    • originsnull
    • packager_codesunknown[]
    • packagingstring[]
    • palm_oil_freeboolean
    • period_after_openingnull
    • quantitystring
    • scansinteger
    • serving_sizenull
    • sourcestring
    • source_urlstring
    • storesstring[]
    • tracesstring[]
    • updated_atstring
    • veganboolean
    • vegetarianboolean

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Product by barcode (GTIN / EAN / UPC) API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.