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 Search

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

Search one public Shopify store's products by keyword with the store's own search and get its top matches with title, vendor, type, tags, price range, sale price, stock and images. 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ố
2 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Search keywords, e.g. "wool" or "hoodie".
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.
Đầ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 Search API

Search one public Shopify store's products by keyword with the store's own search and get its top matches with title, vendor, type, tags, price range, sale price, stock and images. 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/search", "query": "wool", "store": "allbirds.com"}'

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

Parameters

NameTypeRequiredDescription
querystringYesSearch keywords, e.g. "wool" or "hoodie".
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.

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 Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/shopify/search 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 Search 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 Search chấp nhận những tham số nào?

Bắt buộc: query (string) và store (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Shopify Store Search 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 Search 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.