Search
Deprecated
This API is deprecated. Please use the Smart Search API instead.
GET
https://rebuyengine.com/api/v1/products/searchUse Cases
Use this endpoint to provide site-wide personalized product search.
Query Parameters¶
query· string- The term of Shopify Product ID to search for.
metafields· string- Valid values: yes. Returns product objects enriched with a metafields property.
limit· string- Used to limit the number of returned results.
format· string- Valid values: pretty. Use pretty to make the response easy to read.
Code Example¶
// GET https://rebuyengine.com/api/v1/products/search
const params = new URLSearchParams({
query: "YOUR_VALUE",
metafields: "YOUR_VALUE"
});
fetch(`https://rebuyengine.com/api/v1/products/search?${params}`)
.then(response => response.json())
.then(data => console.log(data));
Response Examples¶
200 - 200¶
{
"data": [
{
"id": 562407407652,
"title": "100 Cotton T",
"body_html": "100 Cotton T. Now dats wassup.",
"vendor": "Example Brand",
"product_type": "",
"created_at": "2018-03-20T14:17:32-04:00",
"handle": "hanes-100-cotton-t-shirt",
"updated_at": "2019-12-31T16:20:09-05:00",
"published_at": "2019-06-13T15:11:18-04:00",
"template_suffix": "",
"published_scope": "web",
"tags": "clothing",
"admin_graphql_api_id": "gid://shopify/Product/562407407652",
"variants": [
{
"id": 7162542751780,
"product_id": 562407407652,
"title": "White",
"price": "12.00",
"sku": "H100CTS-1",
"position": 1,
"inventory_policy": "continue",
"compare_at_price": null,
"fulfillment_service": "manual",
"inventory_management": null,
"option1": "White",
"option2": null,
"option3": null,
"created_at": "2018-03-20T14:17:33-04:00",
"updated_at": "2020-01-24T18:43:25-05:00",
"taxable": true,
"barcode": "",
"grams": 0,
"image_id": 2155963711524,
"weight": 0,
"weight_unit": "lb",
"inventory_item_id": 7159766548516,
"inventory_quantity": -12,
"old_inventory_quantity": -12,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/7162542751780"
},
{
"id": 7162542784548,
"product_id": 562407407652,
"title": "Yellow",
"price": "14.00",
"sku": "H100CTS-2",
"position": 2,
"inventory_policy": "continue",
"compare_at_price": null,
"fulfillment_service": "manual",
"inventory_management": null,
"option1": "Yellow",
"option2": null,
"option3": null,
"created_at": "2018-03-20T14:17:33-04:00",
"updated_at": "2020-01-10T12:28:40-05:00",
"taxable": true,
"barcode": "",
"grams": 0,
"image_id": 2155964530724,
"weight": 0,
"weight_unit": "lb",
"inventory_item_id": 7159766581284,
"inventory_quantity": -2,
"old_inventory_quantity": -2,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/7162542784548"
}
],
"options": [
{
"id": 833049690148,
"product_id": 562407407652,
"name": "Color",
"position": 1,
"values": [
"White",
"Yellow"
]
}
],
"images": [
{
"id": 2155963711524,
"product_id": 562407407652,
"position": 1,
"created_at": "2018-03-20T14:17:36-04:00",
"updated_at": "2019-11-15T23:59:46-05:00",
"alt": null,
"width": 1528,
"height": 1528,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Hanes_100__Cotton_T-shirt-white-A.png?v=1573880386",
"variant_ids": [
7162542751780
],
"admin_graphql_api_id": "gid://shopify/ProductImage/2155963711524"
},
{
"id": 2155963744292,
"product_id": 562407407652,
"position": 2,
"created_at": "2018-03-20T14:17:38-04:00",
"updated_at": "2019-11-15T23:59:46-05:00",
"alt": null,
"width": 1528,
"height": 1528,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Hanes_100__Cotton_T-shirt-white-B.png?v=1573880386",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/2155963744292"
},
{
"id": 2155964530724,
"product_id": 562407407652,
"position": 3,
"created_at": "2018-03-20T14:17:46-04:00",
"updated_at": "2019-11-15T23:59:46-05:00",
"alt": null,
"width": 1528,
"height": 1528,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Hanes_100__Cotton_T-shirt-yellow-A.png?v=1573880386",
"variant_ids": [
7162542784548
],
"admin_graphql_api_id": "gid://shopify/ProductImage/2155964530724"
},
{
"id": 2155964629028,
"product_id": 562407407652,
"position": 4,
"created_at": "2018-03-20T14:17:48-04:00",
"updated_at": "2019-11-15T23:59:46-05:00",
"alt": null,
"width": 1528,
"height": 1528,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Hanes_100__Cotton_T-shirt-yellow-B.png?v=1573880386",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/2155964629028"
}
],
"image": {
"id": 2155963711524,
"product_id": 562407407652,
"position": 1,
"created_at": "2018-03-20T14:17:36-04:00",
"updated_at": "2019-11-15T23:59:46-05:00",
"alt": null,
"width": 1528,
"height": 1528,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Hanes_100__Cotton_T-shirt-white-A.png?v=1573880386",
"variant_ids": [
7162542751780
],
"admin_graphql_api_id": "gid://shopify/ProductImage/2155963711524"
},
"metafields": [
{
"id": 4913915985956,
"namespace": "subscriptions",
"key": "shipping_interval_unit_type",
"value": "Days",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913915985956"
},
{
"id": 4913916018724,
"namespace": "subscriptions",
"key": "discount_percentage",
"value": "0E-10",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916018724"
},
{
"id": 4913916051492,
"namespace": "subscriptions",
"key": "is_subscription_only",
"value": "false",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916051492"
},
{
"id": 4913916084260,
"namespace": "subscriptions",
"key": "subscription_id",
"value": "186036",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916084260"
},
{
"id": 4913916117028,
"namespace": "subscriptions",
"key": "has_subscription",
"value": "True",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916117028"
},
{
"id": 4913916149796,
"namespace": "subscriptions",
"key": "shipping_interval_frequency",
"value": "30",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:13-05:00",
"updated_at": "2019-01-31T22:45:13-05:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916149796"
},
{
"id": 4913916641316,
"namespace": "subscriptions",
"key": "discount_product_id",
"value": "4552302493732",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2019-01-31T22:45:31-05:00",
"updated_at": "2020-03-19T08:58:53-04:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/4913916641316"
},
{
"id": 11776810057764,
"namespace": "subscriptions",
"key": "original_to_hidden_variant_map",
"value": "{\"7162542751780\": {\"discount_variant_id\": 31766602743844, \"discount_variant_price\": \"12.00\"}, \"7162542784548\": {\"discount_variant_id\": 31766602776612, \"discount_variant_price\": \"14.00\"}}",
"value_type": "json_string",
"description": null,
"owner_id": 562407407652,
"created_at": "2020-03-19T08:58:53-04:00",
"updated_at": "2020-03-19T08:58:53-04:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/11776810057764"
},
{
"id": 11808290177060,
"namespace": "subscriptions",
"key": "last_sync_timestamp",
"value": "2020-04-09 01:48:51.417839",
"value_type": "string",
"description": null,
"owner_id": 562407407652,
"created_at": "2020-03-31T18:00:48-04:00",
"updated_at": "2020-04-08T21:48:51-04:00",
"owner_resource": "product",
"admin_graphql_api_id": "gid://shopify/Metafield/11808290177060"
}
]
}
]
}