FM Barcode

UPC-A barcode API

The 12-digit retail product barcode used in the United States and Canada (GTIN-12).

UPC-A barcode for 01234567890

What UPC-A is for

UPC-A is the barcode scanned at checkouts across North America. It carries a 12-digit GTIN whose last digit is a check digit, and is printed with the first and last digits outside the bars.

Make one from a URL

Send the text and get the image back. Your API key goes in a header.

curl
curl "https://barcode.fmdeploy.com/v2/barcode/upca?text=01234567890&label=true" \
  -H "Authorization: Bearer bc_live_your_key" -o upca.png

Add &output=svg for a vector image that stays sharp at any print size.

From FileMaker

Insert from URL
Insert from URL [ Select ; With dialog: Off ; Target: Items::Barcode ;
  "https://barcode.fmdeploy.com/v2/barcode/upca?label=true&text=" & GetAsURLEncoded ( Items::Code ) ;
  cURL options: "--header \"Authorization: Bearer " & $$BARCODE_KEY & "\"" ]

What it accepts

11 digits; the check digit is calculated. If you send 12, the last one is recalculated. Example: 01234567890

If the text can’t be encoded, the API answers with a clear message instead of a broken image.

Options

Set the bar width with scale, the bar height with thickness, and turn the text under the bars on with label. You can also choose the label font and size, rotate the image in quarter turns, set the DPI stored in a PNG, or ask for SVG. The documentation lists every parameter and its default.

Related formats

Try UPC-A with a free key

200 barcodes free every month. No card needed.