Hi,
is it possible to make an API call to get all products in JSON on our Shopify store page ? --> https://help.shopify.com/api/reference/product
I know that it's impossible through Public App cause the tokens are visible in JS code and it will not work.
Which steps should I make to solve this ?
There are ajax endpoints that can return info on products such as:
You can also create an alternate collection template (using a layout of none) and return a JSON string for use in your code.
I've successfully used the Ajax API for product calls but for articles the Ajax API doesn't exist.
I've found admin API here:
https://help.shopify.com/api/reference/article#index
I'm trying to make the following request on my store:
$.get('/admin/blogs/19692355/articles/229491718.json', function(data) {
console.log(data);
});
but the shopify tries to reach https://woolet-co.myshopify.com/admin/blogs/19692355/articles/229491718.json instead of https://woolet.co/admin/blogs/19692355/articles/229491718.json and this causes 404 error.
Which steps should I take to make this call properly ? I've tried absolute paths without results.
Thanks for your reply Jamie although Jason has found perfect solution for my issue in this similar topic :) -->
so problem is solved, we can close the thread :)
I can't find any documentation on what parameters the: "/collections/some-handle/products.json" endpoint accepts.
Do you know where I can find a link? The docs here seem incomplete: https://shopify.dev/docs/themes/ajax-api
User | Count |
---|---|
13 | |
12 | |
10 | |
8 | |
7 |