Automatically scanning for product tag changes

Solved
samsungjoe
Shopify Partner
16 1 2

What is the best practice to automatically scan for product tag changes?

We have an app that relies on product tags, and need to get (near) real-time updates to product tags or new products. 

 

Thank you,

Joe

0 Likes
Tomas_K
Shopify Partner
18 4 12

Can you elaborate more on what your app does? Is it a custom app or public?

Did I help in any way? Consider a ? and/or ✔️
Contact me ✉️ nosheep6@gmail.com
Buy me a coffee ☕ Paypal link
0 Likes
samsungjoe
Shopify Partner
16 1 2

We have let shoppers buy via text messaging using the product tag. For example "buy <tagid>"

 

Thus we need to know when a merchant updates his tags or adds a new product+tag.

 

Currently we look at the updated_at field for each product through a cron script every 2 hours. We'd like to do this every 1-2 mins though, and this approach doesn't really scale when merchants have thousands of products.

0 Likes
Tomas_K
Shopify Partner
18 4 12

This is an accepted solution.

In my opinion WebHooks would fit your use case. From your app you can subscribe to events which happen in merchants store.  Checkout, cart, inventory updates, removals etc.  Here is a link to documentation:
https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api[version]=2020-04

Good luck

Did I help in any way? Consider a ? and/or ✔️
Contact me ✉️ nosheep6@gmail.com
Buy me a coffee ☕ Paypal link
samsungjoe
Shopify Partner
16 1 2

Thank you! We'll try this and let you know

0 Likes