import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});
const merchants = await client.merchants.list();
console.log(merchants.data);{
"success": true,
"status": "<string>",
"message": "<string>",
"data": [
{
"host": "<string>",
"name": "<string>",
"description": "<string>",
"website": {
"urls": [
{
"value": "<string>",
"type": "landing"
}
]
},
"logo": {
"urls": [
{
"value": "<string>"
}
]
},
"categories": [
"automotive"
]
}
]
}Fetch a list of merchants with optional filtering and pagination.
import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});
const merchants = await client.merchants.list();
console.log(merchants.data);{
"success": true,
"status": "<string>",
"message": "<string>",
"data": [
{
"host": "<string>",
"name": "<string>",
"description": "<string>",
"website": {
"urls": [
{
"value": "<string>",
"type": "landing"
}
]
},
"logo": {
"urls": [
{
"value": "<string>"
}
]
},
"categories": [
"automotive"
]
}
]
}Cursor returned from the previous response
"2023-01-01T00:00:00Z"
Limit the number of results
1 <= x <= 10020
Filter merchants by host
1"nike.com"
Filter merchants by name (partial match)
1"nike"
1automotive, baby_and_kids, ecommerce, electronics_and_gadgets, fashion_and_accessories, finance, food, health_and_beauty, home_and_living, lifestyle_and_entertainment, other, sports_and_outdoor, travel, education Was this page helpful?