使用 Admin REST 按标题搜索产品 API

Product search by title using Admin REST API

我正在尝试检索标题中包含特定关键字的产品。

可以像这样按完整标题搜索:

/admin/api/2019-10/products.json?title=Name of my product

但是我想用wildcard/regex表达式?我如何检索标题中包含“红色”的产品?


编辑:

示例产品:

查询: /admin/api/2019-10/products.json?title=Red

预期结果:红车红书

但它 returns 是一个 空数组

2019-07 API 版本开始无法使用。

Requests that pass a value for title will match only if the value is the same as the complete title. Partial matches aren't supported.

来源:2019-07 release notes

似乎唯一的方法是使用 GraphQL。请参阅以下建议的解决方案: