The Tools API allows you to convert between various data sources, such as barcode, SKU, ASIN, and top merchant URLs. This is useful for situations where you have a specific known source of product data and you need different identifiers for the same product(s).
Endpoints:
/tools/convert/ASIN-to-barcode
/tools/convert/barcode-to-sku
/tools/convert/sku-to-barcode
/tools/convert/url-to-barcode
/tools/convert/barcode-to-asin
Method: POST
Headers:
Content-Type: application/jsonAuthorization: Bearer {your_api_key}| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
| data | Array of Strings | Yes | The known values that you want to convert FROM |
|
| config | Array of Strings | Sometimes (see to right) |
|
|
|
|
The response will return results that it fins that match the criteria you provided. If a conversion cannot be made, it will return null
Barcode to SKU
{
"meta": {
"from": "barcode",
"to": "sku",
"from_total": 5,
"to_total": 4,
"config": {
"merchant": {
"name": "walmart"
}
},
"trace_id": "0192e7de-ee66-72ad-9a8c-95f8055238da"
},
"data": {
"9349520733755": "12987717129",
"648093563899": "9853123116",
"1234567890123": null,
"648093561147": "9885868036",
"648093562182": "9899956927"
}
}
SKU to Barcode
{
"meta": {
"from": "sku",
"to": "barcode",
"from_total": 4,
"to_total": 4,
"config": {
"merchant": {
"name": "walmart"
}
},
"trace_id": "0192e388-d982-720f-9f5d-172e335160fd"
},
"data": {
"12987717129": "9349520733755",
"9853123116": "648093563899",
"9885868036": "648093561147",
"9899956927": "648093562182"
}
}
ASIN to Barcode
{
"meta": {
"from": "asin",
"to": "barcode",
"from_total": 3,
"to_total": 2,
"config": {
"asin": {
"locale": "US"
}
},
"trace_id": "0192f58a-0fde-7201-9bc7-653d0a6c4168"
},
"data": {
"B0C792QRW6": [
"0887276760049",
"8806095074122"
],
"B00AQUO5RI": [
"0706487014362",
"0615822003643"
],
"B0C792QRW9": []
}
}
URL to Barcode
{
"meta": {
"from": "url",
"to": "barcode",
"from_total": 2,
"to_total": 2,
"trace_id": "0192f58a-927a-7320-b9db-6ad8e875b4df"
},
"data": {
"https://www.cabelas.com/shop/en/jbl-by-harman-charge-5-waterproof-speaker-with-partyboost": ["50036380232"],
"https://www.abt.com/JBL-Charge-5-Black-Portable-Waterproof-Speaker-With-Powerbank-JBLCHARGE5BLKAM/p/159497.html": ["50036380218"]
}
}
Barcode to ASIN
{
"meta": {
"from": "barcode",
"to": "asin",
"from_total": 2,
"to_total": 1,
"trace_id": "0196f461-079d-73c5-9c4e-aab8c4834d53"
},
"data": {
"8806095074122": [
{
"asin": "B0C792QRW6",
"locale": "us"
}
]
}
}
| Field Name | Type | Description |
|---|---|---|
meta | object | Metadata about the number of results. |
data | object | The conversion pairs. |
meta Object| Field Name | Type | Description |
|---|---|---|
from | string | The source of the conversoin |
to | strin | The target of the conversion |
from_total | integer | Number of known sources that were given |
to_total | integer | Number of coversions that were found and returned |
config | object | The config that was used in the request |
data Object"data": {
*source* : *target*
}
For ASINs and Amazon URLs the results can contain an array of barcodes. If no barcodes are found for a given URL, an empty array will be returned []:
"data": {
*url* : [*barcode*],
*url* : [*barcode*, *barcode*,],
*url*: []
}