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; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Meijer Product PageЭтот API Meijer | $0.01 за запрос | Асинхронный JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/meijer/scrape/product, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). Необязательные: zipCode (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-результат. Этот endpoint работает асинхронно, поэтому ответ подсказывает, как получить готовый результат. В README на этой странице приведен пример ответа.
Нет. Meijer Product Page работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Meijer.