Admin products search [API] That action is not currently supported

Highlighted
Shopify Partner
13 0 2

I want to make JSON requests for admin products search. I am getting '[API] That action is not currently supported' when I try to access this json api through curl

curl -H "Content-Type: application/json" \
https://user:pass@yourshop.myshopify.com/admin/products/search.json?query=sku:abracadabra

reference: https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/find-product-variant-by-sku-value-1532...

The JSON request only works if I logged in to the myshopify admin, but it does not work when I authenticate with my app api key.
Is there a way around it? I need to search for products / orders in my rails app.

0 Likes
Highlighted
Shopify Partner
13 0 2

I ended up following this post to authenticate with cookies to access the admin api.

https://ecommerce.shopify.com/c/shopify-discussion/t/importing-products-with-curl-4111

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
130 0 18

The search API endpoint is not currently part of the public API, we're working on adding it soon though! In the mean time you can request all the products and store them in your app at which point you can search them.

1 Like
Highlighted
New Member
1 0 0

Is it available now, i am looking for product search by sku. Pls reply

0 Likes