Zabars APIzabars.com ↗
Search Zabar's product catalog, get autocomplete suggestions, and retrieve full product details including price, images, and gift basket contents via API.
What is the Zabars API?
The Zabar's API provides 3 endpoints for accessing product data from Zabar's New York gourmet food store. Use search_products to run paginated keyword searches across the catalog, returning fields like name, price, brand, category, badge, and image URL. get_product_details goes deeper, surfacing full descriptions, all product images, availability status, and a whats_inside contents list for gift baskets and bundles.
curl -X GET 'https://api.parse.bot/scraper/8d0e614c-2183-487f-9d8b-19b8b48b8500/search_products?page=1&query=chocolate&page_size=5' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace zabars-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Zabar's Product Search — bounded, re-runnable; every call capped."""
from parse_apis.zabars_product_search_api import Zabars, ProductNotFound
client = Zabars()
# Search for chocolate products — limit= caps TOTAL items fetched across pages.
for product in client.productsummaries.search(query="chocolate", limit=5):
print(product.name, product.price, product.brand)
# Drill into the first result's full details via the typed navigation op.
summary = client.productsummaries.search(query="gift basket", limit=1).first()
if summary:
detail = summary.details()
print(detail.name, detail.price, detail.availability)
if detail.whats_inside:
print("Contents:", len(detail.whats_inside), "items")
# Autocomplete suggestions for search-as-you-type UIs.
suggestions = client.suggestions.lookup(query="coffee")
for cat in suggestions.categories:
print(cat.name, cat.parent, cat.url)
# Typed error handling when a product URL is stale or removed.
try:
bad = client.productsummaries.search(query="nonexistent-xyz-000", limit=1).first()
if bad:
bad.details()
except ProductNotFound as exc:
print(f"Product gone: {exc.product_url}")
print("exercised: productsummaries.search / details / suggestions.lookup / ProductNotFound")
Full-text search over Zabar's product catalog. Returns paginated product summaries including name, price, brand, category, and image. Server-side filtering is keyword-only; finer filtering (brand, price range) is client-side. Pagination via page number; each page returns up to page_size items.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number (1-based) |
| queryrequired | string | Search keyword(s) (e.g., 'chocolate', 'gift basket', 'coffee') |
| page_size | integer | Number of results per page (1-120) |
{
"type": "object",
"fields": {
"page": "integer, current page number",
"query": "string, the search query used",
"products": "array of product objects with id, name, url, price, original_price, currency, brand, category, image_url, badge",
"page_size": "integer, results per page",
"total_pages": "integer or null, total number of pages",
"total_results": "integer or null, total number of matching products"
}
}About the Zabars API
Search and Browse the Catalog
The search_products endpoint accepts a required query string and optional page (1-based) and page_size (1–120) parameters. Each product in the response includes id, name, url, price, original_price, currency, brand, category, image_url, and badge. The response also returns total_results and total_pages (either integers or null) so you can build paginated UIs. Note that server-side filtering is keyword-only — filtering by brand or price range has to be done client-side on the returned results.
Autocomplete and Search Suggestions
get_suggestions takes a single query string and returns three arrays: products (name, URL, image), categories (name, parent category, URL), and popular_searches (strings). This is a single-page response with no pagination, suited for search-as-you-type interfaces or for discovering category structure and trending terms before issuing a full search.
Full Product Details
get_product_details accepts a product_url — either the path segment (e.g. /zabars-chocolate-bundle/C11014V.html) or a full URL, obtainable from search_products results. It returns the complete description, all images as an array of URLs, price, availability status, and a whats_inside array for products that are gift baskets or curated bundles. Fields like price may be null if the product is unavailable.
The Zabars API is a managed, monitored endpoint for zabars.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when zabars.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official zabars.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a gift basket finder that searches by occasion keyword and shows
whats_insidecontents for each bundle result - Track price changes on specific Zabar's products by polling
get_product_detailsand comparing thepricefield over time - Implement a search-as-you-type UI using
get_suggestionsto surface matching products, categories, and popular search terms - Aggregate
brandandcategoryfields fromsearch_productsto map Zabar's specialty food taxonomy - Monitor
availabilitystatus across a list of product URLs to alert when out-of-stock items return - Cross-reference
original_pricevspricefields fromsearch_productsto identify discounted or sale items - Discover trending gourmet food terms by reading the
popular_searchesarray fromget_suggestions
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Zabar's have an official developer API?+
What does the `whats_inside` field contain, and which products include it?+
whats_inside field is an array of strings listing the individual items included in a product. It is populated for gift baskets and bundle products. For standard single-item products it returns null.Can I filter search results by brand or price range in the `search_products` request?+
search_products endpoint accepts only query, page, and page_size as inputs. The response does include brand, price, and original_price per product, so filtering by those dimensions must be applied client-side after results are returned.Are product reviews or customer ratings available through this API?+
How does pagination work in `search_products`, and is `total_pages` always populated?+
search_products uses 1-based page numbering with a configurable page_size between 1 and 120. The total_pages and total_results fields are integers when the source provides a count, but may return null for certain queries. It is safer to stop paginating when the returned products array is empty rather than relying solely on total_pages.