> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/search/food-search-for-food-log/legacy/barcode-search.md).

# Barcode Search

{% hint style="warning" %}
Please refer to the new [Branded Foods Search](/graphql/query/search/food-search-for-food-log/branded-foods-search.md#get-the-list-of-milk-recipes-with-a-specific-barcode) section for an updated and improved way of searching for branded foods using barcodes.
{% endhint %}

Use `barcodeSearch` to find products by their barcode.

### Required Argument

| Argument  | Type   | Description    |
| --------- | ------ | -------------- |
| `barcode` | String | Barcode number |

### **Available Fields**

| Field         | Type     | Description               |
| ------------- | -------- | ------------------------- |
| `name`        | `String` | Product name              |
| `displayName` | `String` | Product display name      |
| `brand`       | `String` | Name of the product brand |

{% tabs %}
{% tab title="Query" %}

```graphql
{
  barcodeSearch(barcode: "8024370054144") {
    name
    displayName
    brand
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "barcodeSearch": {
      "name": "Cracker Riso su riso Galbusera",
      "displayName": "Cracker Riso su riso Galbusera",
      "brand": "Galbusera"
    }
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suggestic.com/graphql/query/search/food-search-for-food-log/legacy/barcode-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
