如何在没有 api-密钥和密码的情况下通过 API 访问 shopify 产品?

how to access shopify Products via API without api-key and password?

我想开发一个 chrome 扩展来查看在 shopify 中开发的任何商店的统计信息,我可以在没有 API-key 和 shopify 密码的情况下访问任何商店产品吗?

,如果不使用 api-密钥或商店的永久令牌,您将无法访问产品 json。 但是您仍然想要访问产品详细信息,您至少需要产品的处理程序。

假设您的商店是 "abc.myshopify.com" 并且您的产品的处理程序是 "xyz",那么您可以通过以下 url 中的 HTTP GET 调用来生产 xyz 的 json =12=]

https://www.abc.myshopify.com/products/xyz.json

一般

https://www.[storename]/products/[product-handle].json

您可以尝试使用 Shopify StoreFront API

它允许从您自己的网站或自定义应用程序获取您商店的信息。虽然它不需要 API 密码,但它需要一个 Api 不需要是秘密的密钥。

文档是这样说的(第一点很重要):

Using the Storefront API, you can:

  • Fetch data about a single product or a collection of products to display on any website or device.
  • Create unique checkout experiences with full control over the shopping cart.
  • Create new customers or modify existing ones, including address information.
  • Allow customers to select unique product options.

没有 api 身份验证,shopify 将无法提供商店详细信息(产品列表)。

根据您的要求,我建议创建一个 shopify 应用程序,它将所有产品详细信息同步到您的存储空间,您可以从那里访问数据。