Static
GET
https://rebuyengine.com/api/v1/products/staticUse Cases
This endpoint is configured entirely by the client making the call. For example, pass two Shopify product IDs via ids, get two Shopify product objects returned.\
Filtering Results
Use shopify_product_ids to filter the results based on context.
Query Parameters¶
ids· string- Comma separated list of Shopify product IDs to return. If omitted shopify_product_ids will be used in lieu of this argument.
handles· string- Comma separated list of Shopify product handles to return. If omitted shopify_product_ids will be used in lieu of this argument.
shopify_product_ids· string- Comma separated list of Shopify product IDs. This will filter the result set to retrieve Shopify data specifically for the listed product IDs
shopify_collection_id· string- Shopify collection ID. If provided, products belonging to this collection will be returned.
excluded_ids· string- Comma separated list of Shopify product IDs. Any IDs provided in this list will be excluded from the result set, ensuring they are not included in the response.
metafields· string- Valid values: yes. Returns product objects enriched with a metafields property.
filter_oos· string- Excludes products that are out of stock (OOS) from the response. To include OOS products, set the parameter to equal no.
filter_unpublished· string- Valid values: yes. Excludes products that aren't published.
bust_cache· string- Valid values: yes. Deletes cached response and generates a new one.
limit· string · Default:5- Used to limit the number of returned results.
format· string- Valid values: pretty. Use pretty to make the response easy to read.
selling_plans· string- Valid values: yes. Retrieves selling plans for product objects with an enriched
variant.selling_plan_allocationsproperty. country_code· string-
The ISO 3166-1 alpha-2 country code (e.g.,
US,CA,GB) corresponding to a Market region. Retrieves variant pricing from the Market’s catalog. The prices returned reflect the shop’s first active Market that matches the providedcountry_code. Only products included in that Market’s catalog will be returned in the response — products excluded from the catalog will not appear.Required Shopify Scope:
read_marketsReplaces the deprecated
presentment_pricesquery parameter.
Code Example¶
// GET https://rebuyengine.com/api/v1/products/static
const params = new URLSearchParams({
ids: "YOUR_VALUE",
handles: "YOUR_VALUE"
});
fetch(`https://rebuyengine.com/api/v1/products/static?${params}`)
.then(response => response.json())
.then(data => console.log(data));
Response Examples¶
200 - 200¶
{
"data": [
{
"id": 1058469249060,
"title": "Caesar Dressing",
"body_html": "Longing for a taste-fulfilling Caesar that you can feel good about? Look no further than our dairy-free Caesar Dressing.",
"vendor": "Primal Kitchen",
"product_type": "Salad Dressing",
"created_at": "2018-12-14T15:49:57-05:00",
"handle": "caesar-dressing",
"updated_at": "2019-01-31T22:47:22-05:00",
"published_at": "2018-12-14T15:49:54-05:00",
"template_suffix": null,
"tags": "cage-free-eggs, certified-gluten-free, dairy-free, Keto, keto-product-tag, paleo_friendly, soy-canola-free, sugar-free, Whole30, whole30-approved",
"published_scope": "web",
"admin_graphql_api_id": "gid://shopify/Product/1058469249060",
"variants": [
{
"id": 9896966455332,
"product_id": 1058469249060,
"title": "8 oz",
"price": "7.95",
"sku": "PKDRESS-CAE1",
"position": 1,
"inventory_policy": "deny",
"compare_at_price": null,
"fulfillment_service": "manual",
"inventory_management": null,
"option1": "8 oz",
"option2": null,
"option3": null,
"created_at": "2018-12-14T15:49:57-05:00",
"updated_at": "2019-01-31T22:47:22-05:00",
"taxable": false,
"barcode": "",
"grams": 544,
"image_id": null,
"weight": 1.1993,
"weight_unit": "lb",
"inventory_item_id": 10737418764324,
"inventory_quantity": -1,
"old_inventory_quantity": -1,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/9896966455332"
}
],
"options": [
{
"id": 1868270731300,
"product_id": 1058469249060,
"name": "Size",
"position": 1,
"values": [
"8 oz"
]
}
],
"images": [
{
"id": 3865687621668,
"product_id": 1058469249060,
"position": 1,
"created_at": "2018-12-14T15:49:57-05:00",
"updated_at": "2018-12-14T15:49:57-05:00",
"alt": null,
"width": 2048,
"height": 2048,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Caesar.jpg?v=1544820597",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/3865687621668"
},
{
"id": 3865687654436,
"product_id": 1058469249060,
"position": 2,
"created_at": "2018-12-14T15:49:57-05:00",
"updated_at": "2018-12-14T15:49:57-05:00",
"alt": null,
"width": 2048,
"height": 2048,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Caesar_3Pack.jpg?v=1544820597",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/3865687654436"
}
],
"image": {
"id": 3865687621668,
"product_id": 1058469249060,
"position": 1,
"created_at": "2018-12-14T15:49:57-05:00",
"updated_at": "2018-12-14T15:49:57-05:00",
"alt": null,
"width": 2048,
"height": 2048,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/Caesar.jpg?v=1544820597",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/3865687621668"
}
},
{
"id": 1058468429860,
"title": "OLD - Coconut Cashew Collagen Protein Bar",
"body_html": "Cashews and roasted pumpkin seeds satisfy with a nutty crunch, while creamy coconut adds a hint of sweetness.",
"vendor": "Primal Kitchen",
"product_type": "Collagen Nut & Seed Bar",
"created_at": "2018-12-14T15:49:27-05:00",
"handle": "coconut-cashew-bar",
"updated_at": "2018-12-14T15:49:27-05:00",
"published_at": null,
"template_suffix": null,
"tags": "15g-protein, 3g-sugar, 6-8g-fiber, Bars, Collagen, dairy-whey-free, gluten-free, paleo-approved, Sold Out, soy-free",
"published_scope": "web",
"admin_graphql_api_id": "gid://shopify/Product/1058468429860",
"variants": [
{
"id": 9896965701668,
"product_id": 1058468429860,
"title": "12-Pack",
"price": "35.95",
"sku": "PKBAR-CCO12",
"position": 1,
"inventory_policy": "deny",
"compare_at_price": null,
"fulfillment_service": "manual",
"inventory_management": "shopify",
"option1": "12-Pack",
"option2": null,
"option3": null,
"created_at": "2018-12-14T15:49:27-05:00",
"updated_at": "2018-12-14T15:49:27-05:00",
"taxable": false,
"barcode": "",
"grams": 726,
"image_id": null,
"weight": 1.6006,
"weight_unit": "lb",
"inventory_item_id": 10737415913508,
"inventory_quantity": 0,
"old_inventory_quantity": 0,
"requires_shipping": true,
"admin_graphql_api_id": "gid://shopify/ProductVariant/9896965701668"
}
],
"options": [
{
"id": 1868269322276,
"product_id": 1058468429860,
"name": "Size",
"position": 1,
"values": [
"12-Pack"
]
}
],
"images": [
{
"id": 3865685753892,
"product_id": 1058468429860,
"position": 1,
"created_at": "2018-12-14T15:49:27-05:00",
"updated_at": "2018-12-14T15:49:27-05:00",
"alt": null,
"width": 1080,
"height": 1080,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/ccoold.png?v=1544820567",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/3865685753892"
}
],
"image": {
"id": 3865685753892,
"product_id": 1058468429860,
"position": 1,
"created_at": "2018-12-14T15:49:27-05:00",
"updated_at": "2018-12-14T15:49:27-05:00",
"alt": null,
"width": 1080,
"height": 1080,
"src": "https://cdn.shopify.com/s/files/1/0011/0746/0132/products/ccoold.png?v=1544820567",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/3865685753892"
}
}
]
}