Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Shopify Store Products

Tài liệu API
https://api.sandbase.ai/v1/api/shopify/products

List the products of any public Shopify store by its domain, a page at a time, with title, vendor, type, tags, price range, sale price, stock, images, options and every variant's SKU, price and stock. Filter by vendor, type, tag, title, SKU, price, sale, stock or recent arrivals. A domain that is not a public Shopify store comes back not found.

Giá
Từ $0.00085USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 12 tùy chọn

Phòng thử nghiệm

Đầu vào
Domain or URL of a public Shopify store, e.g. allbirds.com or https://kith.com. A store on its own domain is addressed by that domain.
1-based page of the store's product list. Each page is billed as one request. Tối thiểu: 1.
Only products carrying at least one of these tags.
1250
Products the store is asked for per page (1-250, default 50). The filters below are applied to that page, so a filtered page can hold fewer, even none while hasMore is true. Phạm vi: 1 đến 250.
Only products whose vendor (brand) contains this text.
Only products priced at or below this, in the store's currency. Tối thiểu: 0.
Only products priced at or above this, in the store's currency. Tối thiểu: 0.
Only products with at least one discounted variant.
Only products with at least one variant in stock.
Only products whose product type contains this text, e.g. "Shoes".
Only products with a variant whose SKU code contains this text.
Only products whose title contains this text.
Only products published to the store within the last this many days. Tối thiểu: 1.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Shopify Store Products API

List the products of any public Shopify store by its domain, a page at a time, with title, vendor, type, tags, price range, sale price, stock, images, options and every variant's SKU, price and stock. Filter by vendor, type, tag, title, SKU, price, sale, stock or recent arrivals. A domain that is not a public Shopify store comes back not found.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "shopify/products", "limit": 10, "store": "allbirds.com"}'

The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.

Parameters

NameTypeRequiredDescription
storestringYesDomain or URL of a public Shopify store, e.g. allbirds.com or https://kith.com. A store on its own domain is addressed by that domain.
limitintegerNoProducts the store is asked for per page (1-250, default 50). The filters below are applied to that page, so a filtered page can hold fewer, even none while hasMore is true.
maxPricenumberNoOnly products priced at or below this, in the store's currency.
minPricenumberNoOnly products priced at or above this, in the store's currency.
onlyInStockbooleanNoOnly products with at least one variant in stock. Default false.
onlyOnSalebooleanNoOnly products with at least one discounted variant. Default false.
pageintegerNo1-based page of the store's product list. Each page is billed as one request. Default 1.
productTypestringNoOnly products whose product type contains this text, e.g. "Shoes".
publishedWithinDaysintegerNoOnly products published to the store within the last this many days.
skuContainsstringNoOnly products with a variant whose SKU code contains this text.
tagsarrayNoOnly products carrying at least one of these tags.
titleContainsstringNoOnly products whose title contains this text.
vendorstringNoOnly products whose vendor (brand) contains this text.

Pricing

Billed at the actual cost of each call, about $0.00085 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
ShopifyTừ $0.00085 mỗi lần gọiJSON
ShopifyTừ $0.00085 mỗi lần gọiJSON
ShopifyTừ $0.00085 mỗi lần gọiJSON
ShopifyTừ $0.00085 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Shopify Store Products?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/shopify/products với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Shopify Store Products có giá bao nhiêu?

Từ $0.00085 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Shopify Store Products chấp nhận những tham số nào?

Bắt buộc: store (string). Tùy chọn: page (integer), tags (array), limit (integer), vendor (string), maxPrice (number) và minPrice (number) và 6 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Shopify Store Products trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Shopify không?

Không. Shopify Store Products chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Shopify.