Shopify ストアの商品一覧
Shopify ストアの商品一覧 API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"store": "allbirds.com",
"size": 10
}{
"request_id": "90a140e3-2b30-4bdd-992c-d4c83d8efa9b",
"data": {
"products": [
{
"url": "https://allbirds.com/products/womens-recycled-tee-logo",
"tags": [
"allbirds::carbon-score => 5.9",
"allbirds::cfId => color-womens-allgd-ctn-script-tee-heathered-grey"
],
"image": "https://cdn.shopify.com/s/files/1/1104/4168/products/A10700W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Heathered_Grey.png?v=1698185497",
"price": 12,
"title": "Women's Recycled Tee - Logo - Heathered Grey",
"handle": "womens-recycled-tee-logo",
"images": [
"https://cdn.shopify.com/s/files/1/1104/4168/products/A10700W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Heathered_Grey.png?v=1698185497"
],
"on_sale": true,
"vendor": "Allbirds",
"in_stock": true,
"options": [
{
"name": "Size",
"values": [
"XS",
"S"
]
}
],
"currency": "USD",
"price_max": 12,
"variants": [
{
"sku": "A10700W000",
"price": 12,
"title": "XS",
"in_stock": true,
"options": [
"XS"
],
"list_price": 25,
"variant_id": "40260395532368"
},
{
"sku": "A10700W001",
"price": 12,
"title": "S",
"in_stock": false,
"options": [
"S"
],
"list_price": 25,
"variant_id": "40260395565136"
}
],
"list_price": 25,
"product_id": "6864321642576",
"created_at": "2023-08-09T10:02:52.000Z",
"updated_at": "2026-12-01T04:54:10.000Z",
"description": "A soft, easygoing tee that’s all about repping the Allbirds flock. Keeps you comfy in 100% recycled materials blend and graphics printed with water-based ink...",
"product_type": "Apparel",
"published_at": "2026-11-28T00:08:50.000Z"
},
{
"url": "https://allbirds.com/products/womens-recycled-tee-logo-natural-white",
"tags": [
"allbirds::carbon-score => 5.9",
"allbirds::cfId => color-womens-allgd-ctn-script-tee-natural-white"
],
"image": "https://cdn.shopify.com/s/files/1/1104/4168/products/A10709W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Natural_White.png?v=1698185517",
"price": 12,
"title": "Women's Recycled Tee - Logo - Natural White",
"handle": "womens-recycled-tee-logo-natural-white",
"images": [
"https://cdn.shopify.com/s/files/1/1104/4168/products/A10709W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Natural_White.png?v=1698185517"
],
"on_sale": true,
"vendor": "Allbirds",
"in_stock": true,
"options": [
{
"name": "Size",
"values": [
"XS",
"S"
]
}
],
"currency": "USD",
"price_max": 12,
"variants": [
{
"sku": "A10709W000",
"price": 12,
"title": "XS",
"in_stock": true,
"options": [
"XS"
],
"list_price": 25,
"variant_id": "40259210543184"
},
{
"sku": "A10709W001",
"price": 12,
"title": "S",
"in_stock": true,
"options": [
"S"
],
"list_price": 25,
"variant_id": "40259210575952"
}
],
"list_price": 25,
"product_id": "6864244310096",
"created_at": "2023-08-09T01:58:57.000Z",
"updated_at": "2026-12-01T04:54:10.000Z",
"description": "A soft, easygoing tee that’s all about repping the Allbirds flock. Keeps you comfy in 100% recycled materials blend and graphics printed with water-based ink...",
"product_type": "Apparel",
"published_at": "2026-11-28T00:08:45.000Z"
}
],
"has_more": true
}
}このページでは Ecommerce Data API の公開契約を説明します。フィールド名、パス、技術例はそのまま保持しているため、そのまま統合できます。
Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. Each call consumes 1 billing unit, including calls that find nothing (
RESULT_NOT_FOUND).
POST /v1/shopify/stores/products
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | shopify_stores_products |
クイック呼び出し
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/shopify/stores/products \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"store": "allbirds.com",
"size": 10
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Shopify Store Products" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/ja/docs/shopify/store-products
Endpoint: POST https://ecommercedataapi.com/v1/shopify/stores/products
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"store": "allbirds.com",
"size": 10
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/shopify/stores/products',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
store: 'allbirds.com',
size: 10,
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/shopify/stores/products",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"store": "allbirds.com",
"size": 10,
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
store | String | Yes | Shopify store domain or link, e.g. allbirds.com. | allbirds.com |
titleContains | String | No | Only products whose title contains this text. | runner |
productType | String | No | Only products whose type contains this text, e.g. Shoes. | Shoes |
vendor | String | No | Only products whose vendor (brand) contains this text. | Allbirds |
minPrice | Number | No | Lowest price, in the result currency. | 10 |
maxPrice | Number | No | Highest price, in the result currency. | 100 |
onlyOnSale | Boolean | No | Only products with a discounted variant. | true |
onlyInStock | Boolean | No | Only products with a variant in stock. | true |
publishedWithinDays | Integer | No | Only products published within this many days: new arrivals. | 30 |
page | Integer | No | Page of the store catalog, from 1. | 1 |
size | Integer | No | Products the store is asked for per page, 1–250. Default 50. Filters apply to that page, so a filtered page can hold fewer, even none while has_more is true. | 50 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
products | Array | Products on this page. | - |
products.url | String | Page link. | - |
products.tags | Array | Product tags. | - |
products.image | String | Main image. | - |
products.price | Integer | Price. | 12 |
products.title | String | Title. | Women's Recycled Tee - Logo - Heathered Grey |
products.handle | String | Product URL handle. | womens-recycled-tee-logo |
products.images | Array | Image links. | - |
products.on_sale | Boolean | At least one variant is discounted. | true |
products.vendor | String | Vendor (brand). | Allbirds |
products.in_stock | Boolean | In stock. | true |
products.options | Array | Option names and their values. | - |
products.options.name | String | Option name. | Size |
products.options.values | Array | Option values. | - |
products.currency | String | Currency. | USD |
products.price_max | Integer | Highest variant price. | 12 |
products.variants | Array | Variants (SKUs). | - |
products.variants.sku | String | Variant SKU code. | A10700W000 |
products.variants.price | Integer | Variant price. | 12 |
products.variants.title | String | Variant title. | XS |
products.variants.in_stock | Boolean | Variant in stock. | true |
products.variants.options | Array | Variant option values. | - |
products.variants.list_price | Integer | Variant price before discount. | 25 |
products.variants.variant_id | String | Variant ID. | 40260395532368 |
products.list_price | Integer | Price before discount. | 25 |
products.product_id | String | Product ID. | 6864321642576 |
products.created_at | String | Created, ISO 8601. | 2023-08-09T10:02:52.000Z |
products.updated_at | String | Last updated, ISO 8601. | 2026-12-01T04:54:10.000Z |
products.description | String | Description. | - |
products.product_type | String | Product type. | Apparel |
products.published_at | String | Published, ISO 8601. | 2026-11-28T00:08:50.000Z |
has_more | Boolean | Whether another page exists; raise page to get it. | true |
Response example
{
"request_id": "90a140e3-2b30-4bdd-992c-d4c83d8efa9b",
"data": {
"products": [
{
"url": "https://allbirds.com/products/womens-recycled-tee-logo",
"tags": [
"allbirds::carbon-score => 5.9",
"allbirds::cfId => color-womens-allgd-ctn-script-tee-heathered-grey"
],
"image": "https://cdn.shopify.com/s/files/1/1104/4168/products/A10700W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Heathered_Grey.png?v=1698185497",
"price": 12,
"title": "Women's Recycled Tee - Logo - Heathered Grey",
"handle": "womens-recycled-tee-logo",
"images": [
"https://cdn.shopify.com/s/files/1/1104/4168/products/A10700W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Heathered_Grey.png?v=1698185497"
],
"on_sale": true,
"vendor": "Allbirds",
"in_stock": true,
"options": [
{
"name": "Size",
"values": ["XS", "S"]
}
],
"currency": "USD",
"price_max": 12,
"variants": [
{
"sku": "A10700W000",
"price": 12,
"title": "XS",
"in_stock": true,
"options": ["XS"],
"list_price": 25,
"variant_id": "40260395532368"
},
{
"sku": "A10700W001",
"price": 12,
"title": "S",
"in_stock": false,
"options": ["S"],
"list_price": 25,
"variant_id": "40260395565136"
}
],
"list_price": 25,
"product_id": "6864321642576",
"created_at": "2023-08-09T10:02:52.000Z",
"updated_at": "2026-12-01T04:54:10.000Z",
"description": "A soft, easygoing tee that’s all about repping the Allbirds flock. Keeps you comfy in 100% recycled materials blend and graphics printed with water-based ink...",
"product_type": "Apparel",
"published_at": "2026-11-28T00:08:50.000Z"
},
{
"url": "https://allbirds.com/products/womens-recycled-tee-logo-natural-white",
"tags": [
"allbirds::carbon-score => 5.9",
"allbirds::cfId => color-womens-allgd-ctn-script-tee-natural-white"
],
"image": "https://cdn.shopify.com/s/files/1/1104/4168/products/A10709W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Natural_White.png?v=1698185517",
"price": 12,
"title": "Women's Recycled Tee - Logo - Natural White",
"handle": "womens-recycled-tee-logo-natural-white",
"images": [
"https://cdn.shopify.com/s/files/1/1104/4168/products/A10709W001-Graphic_SS-Logo-Tee-Front-Global-Womens-Natural_White.png?v=1698185517"
],
"on_sale": true,
"vendor": "Allbirds",
"in_stock": true,
"options": [
{
"name": "Size",
"values": ["XS", "S"]
}
],
"currency": "USD",
"price_max": 12,
"variants": [
{
"sku": "A10709W000",
"price": 12,
"title": "XS",
"in_stock": true,
"options": ["XS"],
"list_price": 25,
"variant_id": "40259210543184"
},
{
"sku": "A10709W001",
"price": 12,
"title": "S",
"in_stock": true,
"options": ["S"],
"list_price": 25,
"variant_id": "40259210575952"
}
],
"list_price": 25,
"product_id": "6864244310096",
"created_at": "2023-08-09T01:58:57.000Z",
"updated_at": "2026-12-01T04:54:10.000Z",
"description": "A soft, easygoing tee that’s all about repping the Allbirds flock. Keeps you comfy in 100% recycled materials blend and graphics printed with water-based ink...",
"product_type": "Apparel",
"published_at": "2026-11-28T00:08:45.000Z"
}
],
"has_more": true
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.