BarcodesDocs

V2 API Overview

This section documents the V2 API routes with prefix:

/api/v2

Authentication

  • Include your API token as a Bearer token in the Authorization header.

Global Response Fields

All V2 JSON responses include:

{
  "response_time": "XXXms",
  "request_fulfilled": true,
  "request_debited": false
}

Meaning:

  • response_time: runtime of the request.
  • request_fulfilled: true when HTTP status is less than 400.
  • request_debited: true only when usage was debited on success.

Why UID Routes Exist

Some products can share the same SKU while still having meaningful differences (for example color variants). In those cases, SKU-based lookups may not be specific enough.

Use product_unique_id from search responses when you need exact product targeting:

  • Product lookup by UID: /api/v2/product/lookup/uid/{product_unique_id}
  • Image lookup by UID: /api/image/uid/{product_unique_id}

This gives you a stable way to fetch the exact product details and image for one specific variant.

The V2 routes at a glance

RouteAnswersPage
/api/v2/barcode/lookup/{barcode}One barcode -> product and sizeLookup by barcode
/api/v2/barcode/lookup/sku/{style_code}One style code -> its barcodes per sizeBarcodes by SKU
/api/v2/product/searchKeywords or a style code -> productsSearch products
/api/v2/product/search/bulkMany style codes in one callSearch bulk
/api/v2/product/lookup/sku/{style_code}One style code -> every variantLookup by SKU
/api/v2/product/lookup/uid/{uid}One unique ID -> exactly one variantLookup by UID
/api/v2/product/details/{style_code}Style code -> full record with size runProduct details
/api/v2/product/latestRecently added or recently releasedLatest products
/api/v2/product/upcomingRelease dates after todayUpcoming products
/api/v2/product/alternatives/{style_code}StockX and GOAT slugs for a productProduct alternatives
/api/v2/prices/{style_code}, /api/v2/prices/barcode/{barcode}StockX and Alias resale prices per sizeResale prices
/api/v2/token/usageRemaining calls and plan limits, not debitedToken usage

The V1 routes with prefix /api/v1 stay up for existing integrations; new work should use V2.