# Shopify API：商品、集合与变体 | Anysite

> 任意公开 Shopify 店铺的商品、集合、变体、价格和库存，4 个接口、一把 key 全通。7 天免费试用。

URL: https://anysite.io/zh/sources/shopify/
Canonical: https://anysite.io/zh/sources/shopify/
Language: zh-Hans
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// 数据源 · 电商平台

# Shopify API， 任意店铺，一次请求

Shopify 支撑着 400 多万家店铺，却没有公开的商品目录 API。调研要跨几百家商户时，一家一套 OAuth 根本走不通。这 4 个接口读取任意公开店铺，把商品、变体、价格和库存返回成干净的 JSON。

[免费开始](https://app.anysite.io/register?lang=zh) 7 天免费试用

## Shopify 能拉到什么

/api/shopify/products 完整商品记录：标题、品牌、类型、标签、描述、图片、选项，以及全部变体，每个变体带 price、list_price、SKU、条码、库存数量与库存策略、重量和物流标记

/api/shopify/products/search 某家店的商品列表：字段与单品接口相同，用 count 参数分页

/api/shopify/collections 集合的元数据：标题、描述、图片、product_count、published_at、updated_at

/api/shopify/collections/products 某个集合里的商品：变体和价格细节与单品接口相同，返回数量按请求的 count 为准

## 返回什么

```
{
  "title": "Men’s wool runner",
  "brand": "Allbirds",
  "product_type": "Shoes",
  "variants": [
    {
      "sku": "WR-M-10-GRY",
      "price": 98,
      "list_price": 125,
      "available": true,
      "inventory_quantity": 42
    }
  ]
}
```

## 适合这些活儿

[电商情报](https://anysite.io/zh/use-cases/e-commerce-intelligence/) [竞品分析](https://anysite.io/zh/use-cases/competitor-analysis/) [市场调研](https://anysite.io/zh/use-cases/market-research/)

## 任意店铺目录，读当下这一刻

用 MCP 或 API 接进来，你盯的每家店，价格、变体和断货情况一起跟。7 天免费试用。

[免费开始](https://app.anysite.io/register?lang=zh)

## 常见问题

哪些 Shopify 店铺能取到？

只要店铺前台公开可访问就行，接口读到的商品和集合数据，和访客在浏览器里看到的一样。需要登录才能看商品的店铺取不到。

需要 Shopify 合作伙伴账号或应用审核吗？

不需要。这些接口不碰 Shopify 的 Partner Program，也不碰 Admin API，你只用 Anysite 的 key 鉴权，不用在 Shopify 注册。

怎么把一家店的全部商品拉下来？

先调 /api/shopify/products/search，传店铺域名和 count，把整个目录的商品列出来；再对任意 handle 调 /api/shopify/products 取完整变体详情。目录很大时，用 /api/shopify/collections/products 按集合分页。数据都在请求时现读。