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

Shop Search Products

Tài liệu API
https://api.sandbase.ai/v1/api/shop-app/search-products

Searches shop.app products globally by a free-text keyword and returns one page of matching products from the site's global search results (actual product records, not autocomplete suggestions or merchant-only results).

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

Phòng thử nghiệm

Đầu vào
Free-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
Pagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page.
Number of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies.
Legacy page-size control (1-100), used only when first is omitted.
Đầ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

Shop Search Products API

Searches shop.app products globally by a free-text keyword and returns one page of matching products from the site's global search results (actual product records, not autocomplete suggestions or merchant-only results).

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "shop-app/search-products", "first": 10, "query": "running shoes"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesFree-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
afterstringNoPagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page.
firstintegerNoNumber of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies.
page_sizeintegerNoLegacy page-size control (1-100), used only when first is omitted.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

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

Câu hỏi

FAQ

Làm thế nào để dùng API Shop Search Products?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/shop-app/search-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 Shop Search Products có giá bao nhiêu?

$0.03 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 Shop Search Products chấp nhận những tham số nào?

Bắt buộc: query (string). Tùy chọn: after (string), first (integer) và page_size (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Shop Search 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 Shop không?

Không. Shop Search 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 Shop.