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

Trader Joe's Product

Tài liệu API
https://api.sandbase.ai/v1/api/trader-joes/product

Get a Trader Joe's product by product ID with name, price, size, description, ingredients, nutrition and dietary tags.

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

Phòng thử nghiệm

Đầu vào
Parameter defines the Trader Joe's product to get results for. It's the number at the end of the product page URL (e.g., `080794` in `https://www.traderjoes.com/home/products/pdp/cold-brew-coffee-black-080794`).
Parameter defines the Trader Joe's store to check the product availability in. It's the number at the end of the store page URL on the Trader Joe's store locator (e.g., `454` in `https://locations.traderjoes.com/tx/austin/454/`). When the product isn't sold in the store, `available` is `false` and the price is not returned, as on the Trader Joe's website.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Đầ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

Trader Joe's Product

Get a Trader Joe's product by product ID with name, price, size, description, ingredients, nutrition and dietary tags.

Request

curl -X POST "https://api.sandbase.ai/v1/api/trader-joes/product" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "097234"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
product_idstringYesParameter defines the Trader Joe's product to get results for. It's the number at the end of the product page URL (e.g., 080794 in https://www.traderjoes.com/home/products/pdp/cold-brew-coffee-black-080794).
store_idstringNoParameter defines the Trader Joe's store to check the product availability in. It's the number at the end of the store page URL on the Trader Joe's store locator (e.g., 454 in https://locations.traderjoes.com/tx/austin/454/). When the p
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Trader Joe's$0.01 mỗi lần gọiJSON
Trader Joe's$0.01 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Trader Joe's Product?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/trader-joes/product 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 Trader Joe's Product có giá bao nhiêu?

$0.01 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 Trader Joe's Product chấp nhận những tham số nào?

Bắt buộc: product_id (string). Tùy chọn: store_id (string) và json_restrictor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Trader Joe's Product 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 Trader Joe's không?

Không. Trader Joe's Product 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 Trader Joe's.