{
  "info": {
    "_postman_id": "29fd7b9b-2b0f-52b6-ac64-625435f47022",
    "name": "Barcode Report API",
    "description": "Look up products by UPC, EAN, GTIN or ISBN across 500M+ barcodes.\n\n1. Get a free key (100 lookups a month) at https://barcodereport.com/register\n2. Set the collection variable `apiKey` to your key.\n\nDocs: https://barcodereport.com/barcode-api/documentation\nOpenAPI: https://barcodereport.com/openapi.json",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://barcodereport.com/api",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Look up one barcode",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/search_barcode?barcode=049000050103",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "search_barcode"
          ],
          "query": [
            {
              "key": "barcode",
              "value": "049000050103"
            }
          ]
        },
        "description": "One product by UPC, EAN, GTIN or ISBN. Costs one lookup, including a miss."
      }
    },
    {
      "name": "Look up up to 100 barcodes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/lookup",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "lookup"
          ]
        },
        "description": "Each distinct code costs one lookup; all-or-nothing against your allowance.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"barcodes\": [\n    \"049000050103\",\n    \"3017620422003\",\n    \"860999888771\"\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Search products by name",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/search?q=nutella&page=1&per_page=20",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "search"
          ],
          "query": [
            {
              "key": "q",
              "value": "nutella"
            },
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "per_page",
              "value": "20"
            }
          ]
        },
        "description": "Full-text search over title, brand and category. One lookup per call."
      }
    },
    {
      "name": "Account and remaining allowance",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/account",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "account"
          ]
        },
        "description": "Plan, allowance and usage. Free; 30 requests a minute."
      }
    }
  ]
}
