urlstring必填
Full Meijer page URL, e.g. https://www.meijer.com/shopping/product/highlighters-4pk/71928356637.html
https://api.sandbase.ai/v1/api/meijer/scrape/productExtract structured data from a Meijer product page URL: price, availability and product details, optionally localized by ZIP code.
您的输出将显示在这里
完成输入,然后点击运行。
Returns structured data for one Meijer product page, including name, brand, UPC, category, images and fulfillment flags. It needs the full product page url, and accepts an optional zipCode for localized results.
curl -X POST "https://api.sandbase.ai/v1/api/meijer/scrape/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.meijer.com/shopping/product/highlighters-4pk/71928356637.html"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full Meijer page URL, e.g. https://www.meijer.com/shopping/product/highlighters-4pk/71928356637.html |
zipCode | string | No | ZIP or postal code used for localized pricing and availability. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"product": {
"brandDescription": "Meijer",
"brandName": "MEIJER",
"category": "HARDLINES,SCHOOL HOME OFFICE,WRITING INSTRUMENTS,HIGHLIGHTERS",
"colorGeneral": "Assorte",
"colorSpecific": null,
"countryOfOrigin": null,
"descriptiveFeatures": "Thin Chisel Tip Highlighters Assorted 4PK",
"disclaimer": "Statements regarding dietary supplements have not been evaluated by the Food and…",
"eventType": null,
"hasMPerks": false,
"ingredients": null,
"isAlcohol": false
}
}
| Field | Meaning |
|---|---|
product.productName | Display name of the product on the Meijer page. |
product.productId / product.upc | Meijer's internal product ID and the product's UPC barcode number. upcTypeName gives the barcode type, such as UPCA. |
product.brandName / product.brandDescription | Brand of the product. |
product.category | Comma-separated category path from broad department to specific type. |
product.productDescription / product.productDetails / product.descriptiveFeatures | Short descriptive text for the product, in different lengths and wording. |
product.productMedia[].url | Image URL. Each entry also has width and height, so you can pick a size, and isDefault marks default images. |
product.isCurbsideEligible / product.isHomeDeliveryAvailable | Whether the item can be ordered for curbside pickup or home delivery. |
product.isFoodStampEligible / product.isAlcohol / product.isProductAgeRestricted | Eligibility and restriction flags for the item. |
product.productStatus / product.isBusinessActive | Listing status of the product. The sample value for productStatus is ACT. |
product.soldByUnit / product.unitOfMeasureQuantity | Unit the item is sold in and the quantity per unit. The sample shows EA and 1. |
url from a Meijer product page. The number before .html in the sample URL matches the upc value in the response.zipCode to localize the result. Fields that are not set for a product come back as null.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/meijer/scrape/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.meijer.com/shopping/product/highlighters-4pk/71928356637.html"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
urlstring必填Full Meijer page URL, e.g. https://www.meijer.com/shopping/product/highlighters-4pk/71928356637.html
zipCodestringZIP or postal code used for localized pricing and availability.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Meijer Product Page此 API Meijer | $0.01 每次调用 | 异步 JSON |
问题
向 https://api.sandbase.ai/v1/api/meijer/scrape/product 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.01,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:url (string)。 可选:zipCode (string)。 Parameters 表和本页的 Playground 列出了每个字段。
JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。 本页的 README 包含一个示例响应。
不需要。Meijer Product Page 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Meijer API 访问权限。