All things Shopify and commerce
Hi,
I am new at shopify, I need to get all the customers email who's first name contain "www". I have more than 4000 customers. I am using following query.
[Storename].myshopify.com/admin/customers/search.json?query=www.cutt&fields=email,id,first_name,last_name
Regards
Saleem
Hey @ksaleem
Search API allows you to do only a full-text search (in all customer fields). In this case, your request URI has to look like this:
https://test.myshopify.com/admin/api/2021-07/customers/search.json?query=www&fields=email,id,first_name,last_name
Alternatively, you can do a search in the first name, but it only return results that are full-match to your query (case insensitive). So you will get only customers whose first name is www. The request URI looks like this:
https://test.myshopify.com/admin/api/2021-07/customers/search.json?query=first_name:www&fields=email,id,first_name,last_name
Also, keep in mind that customer search API endpoint uses pagination.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024