Pull reports using API

New Member
2 0 0

Hi everybody, I am a new to shopify. I have a quick question.  I created custom report and was wondering if there is the way to pull it automatically by using API. I could not find much information on this. 

 

Thanks,

AskarK

 

0 Likes
Highlighted
New Member
1 0 0

I have same question, but I think it's impossible access to the reports by API :(

0 Likes
Highlighted
New Member
2 0 0

Yeah it looks like Pablo. I think you can try curl it might work. I have not tested yet.  It will not be clean solution but at least should work. 

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

For report it might look like this:

curl -H "Content-Type: application/json" \
https://user:pass@yourshop.myshopify.com/admin/reports/'ID_OF_REPORT'

 

-Askar

 

0 Likes