Product Search By Title Using API

Topic summary

Goal: find a way to search Shopify products by title via API.

Key approaches and limitations:

  • REST Admin API: Using /admin/api/{version}/products.json?title=&limit=250&fields=id,title is possible, but matching is limited. Reports vary: some see basic contains matches; others say it only exact-matches (case sensitivity issues) and no wildcards. Pagination has changed—use versioned endpoints and cursor-based pagination (page param deprecated). Syntax must use & between params.
  • CORS: Admin API calls should be made from your authenticated server, not via browser Ajax. For client-side needs, avoid direct Admin API calls; consider backend proxy/App Proxy (not fully resolved in thread).

Workarounds shared:

  • Fetch all products (limit 250 with since_id/cursor) and filter locally; some maintain a local datastore (e.g., SQLite) for faster lookup.
  • GraphQL Admin API: products query supports a query string (e.g., query: “title="example produ"”) for more flexible searching.
  • Storefront API: predictiveSearch via GraphQL can be called client-side with a Storefront access token for search-like results (not title-only).

Status: No definitive, robust title search in REST. Consensus leans to backend filtering or switching to GraphQL (Admin or Storefront predictive search). The discussion remains open with noted constraints and alternatives.

Summarized with AI on December 19. AI used: gpt-5.

perhaps the api changed, but i wanted to note this is not correct

/admin/products.json?title=<searchString>,limit=250,page=1,fields="id,title,etc"

rather, you want the extra options added with & and not " so instead

/admin/api/2020-04/products.json?title=<searchString>&limit=250&fields=id,title

also page=1 isn’t supported anymore, see here for updated pagination docs https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api