Barcodes.GG Product data & API

Getting Started With the Barcodes.GG API

If you have never called the Barcodes.GG API before, this is the shortest path from an empty terminal to a full product record. You create a token, send one authenticated request, and read the structured fields that come back.

The Barcodes.GG team 3 min read

What the API does

The Barcodes.GG API turns a barcode into structured product data. You send a GTIN, and the response is a clean record - name, brand, category, style code, colorway, release date, retail price, sizing and an image - drawn from the same catalog that powers the public lookup pages. The difference is that the API hands you every field as machine-readable JSON so an application can act on it.

Think of it as the programmatic counterpart to the free public barcode lookup. The public page is for a person checking a single code. The API is for software that needs to resolve many codes into product records without a human in the loop.

Everything below uses the version 2 endpoints. The authoritative parameter and field reference lives in the API documentation; this article is the guided first pass.

Create a token

Every request is authenticated with a bearer token. Create one from the tokens section of your dashboard, then send it in an Authorization header on each call.

Tokens carry abilities. An ability is permission to call a particular family of endpoints - the barcode lookup, for example, requires the lookup-barcode ability. Grant a token only the abilities it needs, and keep it server-side. A token embedded in a mobile binary or a front-end bundle can be extracted and drained, so proxy your calls through a backend you control.

Keep it secret

Treat a token like a password. Do not commit it to a repository, ship it in an app, or paste it into client-side code. Rotate it from the dashboard if it is ever exposed.

Your first request

A lookup is a single GET request. You pass the barcode in the path and a fields parameter that selects which columns you want back. Use fields=* to receive everything, or a comma-separated list to receive only what you need and keep the payload small.

curl -H "Authorization: Bearer YOUR_TOKEN" \
  "https://barcodes.gg/api/v2/barcode/lookup/0194501074735?fields=*"

That is the whole call. The path segment is the GTIN you are resolving, and the header carries the token you created. Before you spend a request on a code you are unsure about, run it through the barcode validation tool so a mistyped digit does not cost you a lookup.

Reading the response

A successful response is JSON split into three parts. Knowing the shape up front makes it easy to map into your own models.

  • Product - the descriptive fields: product_name, product_brand, product_category, product_style_code, product_colorway, product_release_date, product_retail_price, product_image and sizing arrays such as product_sizes and us_sizes.
  • Barcode - facts about the code itself: barcode_type, barcode_value and, where a code maps to one size, a product_size block with US, UK and EU mappings.
  • Metadata - error, response_time, request_fulfilled and request_debited, which tells you whether the call counted against your quota.

A code that is not in the catalog returns a 404 with a clear message rather than an empty product, so branch on the status and the error flag rather than assuming every call succeeds. We break the response down field by field in what data a barcode lookup API returns.

Beyond the lookup

The lookup is the entry point, but the version 2 surface covers a full product-data workflow. These are the endpoints you reach for next:

EndpointWhat it does
search-productsFind products by name or keyword when you do not have a code
reverse-barcode-lookupGo from a known product back to its barcodes
product-detailsPull the full record for a product you have already identified
product-alternativesRetrieve related or alternative products
get-imageFetch the product image for a style code
latest-products and upcoming-productsTrack new and upcoming releases
token-usageCheck how much of your quota a token has spent

For the exact parameters, abilities and response schema of each, the API documentation is the source of truth. When you are ready to design the integration around these calls rather than test them one by one, the barcode API guide walks through the architecture.

Frequently asked questions

Do I need a paid plan to use the API?

API access is authenticated with a token tied to your account, and each token carries the abilities and quota of your plan. You create and manage tokens from the tokens section of your dashboard.

What is the difference between the API and the public barcode page?

The public page resolves a single code for a person to read. The API returns the same product data as structured JSON so software can resolve codes in bulk and act on the fields programmatically.

What happens if a barcode is not found?

The API returns a 404 with a message explaining that no product is held for that barcode, rather than an empty record. Branch on the status code and the error flag so a miss is handled cleanly.

How do I control which fields come back?

Pass the fields parameter. Use fields=* for the full record, or a comma-separated list of field names to receive only the columns you need and keep responses small.