Snappfood & SnappMarket
v0.4.2Unofficial read-only Snappfood & SnappMarket: search food and groceries, compare prices, deals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_location Find location
Turn a place name or address into latitude/longitude. Biased toward near_lat/near_long (default Tehran): pass a city center for other cities.
| Parameter | Type | Description |
|---|---|---|
query * | string | Place or landmark, e.g. 'میدان ونک'. |
limit | integer | Max places. |
near_lat | number | null | Bias latitude, e.g. a city center. |
near_long | number | null | Bias longitude. |
reverse_geocode Describe coordinates
Describe coordinates in words (point of interest, street, neighbourhood).
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
list_cities List cities
List cities Snappfood serves, with id, names and center coordinates. Centers work as a rough delivery point.
| Parameter | Type | Description |
|---|---|---|
query | string | null | Persian title or English code, e.g. 'شیراز'. |
food_search Search dishes
Search dishes by name near a delivery point, with price, discount and restaurant. relevance is one fast index call; cheapest / biggest_discount confirm prices on live menus. For the cheapest X across many menus use food_find_cheapest.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
query * | string | Dish word, e.g. 'پیتزا'. |
discounted_only | boolean | Discounted only. |
include_protein | boolean | Include protein stores (butchers, eggs). |
limit | integer | Max dishes. |
sort | string | Result order. |
food_find_cheapest Find cheapest dish
Find the cheapest way to get a dish: scans menus of nearby open restaurants plus FoodParty deals. Ranks by total = food price after discount + packaging + delivery fee; check min_order. Slower than food_search.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
query * | string | Dish word, e.g. 'پیتزا'. |
limit | integer | Max dishes. |
max_restaurants | integer | Menus to scan (more = slower). |
food_restaurants List restaurants
List restaurants delivering to a point, with rating, delivery fee, ETA and coupon info. Also finds a vendor code by name. No dish prices: use food_menu.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
free_delivery | boolean | Free delivery only. |
has_coupon | boolean | With a coupon only. |
has_discount | boolean | Discounted only. |
open_only | boolean | Hide closed/non-delivering. |
page | integer | Page of 20, from 0. |
query | string | null | Name filter, e.g. 'پیتزا'. |
sort | string | *_expensive rank by price class, not delivery fee. |
food_order_costs Order costs
Get the extra costs and conditions of ordering from one restaurant. Delivery fee, ETA, minimum order and coupons (basket total needed, first-order only). Packaging is in food_menu.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
vendor_code * | string | Vendor code, e.g. '947evd'. |
food_reviews Restaurant reviews
Read recent customer reviews of a restaurant (rating, text, what they ordered, vendor reply).
| Parameter | Type | Description |
|---|---|---|
vendor_code * | string | Vendor code, e.g. '947evd'. |
full_text | boolean | Text uncut (default 400 chars). |
page | integer | Page of 10, newest first, from 0. |
food_party_deals FoodParty deals
List today's FoodParty flash deals (deep discounts, limited stock, time window) still in stock. Deals run only inside starts/ends; outside it the list is empty.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
limit | integer | Max deals. |
query | string | null | Title contains this. |
sort | string | Deal order. |
food_meal_for_one Meals for one
List single-person meals (at most 299k Toman, free delivery), cheapest first. Check min_order.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
limit | integer | Max meals. |
max_price | integer | null | Max final price, Toman. |
food_discounted_vendors Discounted restaurants
List restaurants running a discount now, plus the short "Gem" hunt discount if one is live. Vendor-level only: food_menu has prices.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
market_search Search groceries
Search a grocery product across all SnappMarket stores delivering to the point. Stores (open or not) with up to ~5 matching products each. For one flat cheapest-first list use market_find_cheapest.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
query * | string | Product name, e.g. 'شیر'. |
limit | integer | Stores per page. |
page | integer | Page, from 0. |
market_find_cheapest Find cheapest groceries
Find the cheapest in-stock offers for a grocery product near the point. Scans open delivering stores; one flat list by final price. Check delivery_fee and min_order.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
query * | string | Product name, e.g. 'شیر کم چرب'. |
limit | integer | Max offers. |
pages | integer | Pages to scan, 12 stores each. |
market_stores List grocery stores
List SnappMarket stores delivering to the point, with delivery fee, minimum order and rating.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
page | integer | Page, from 0. |
sort | string | Store order. |
market_store_info Grocery store details
Get one store's delivery fee, minimum order, opening hours, rating and coupons for the point. Basket cost = sum(final prices) + delivery_fee - coupon, and must reach min_order. is_applicable is false when logged out.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
vendor_code * | string | Store code, e.g. '32xxwe'. |
market_store_products Browse a grocery store
Browse or search the products of one store. - query: search the store (wins over category ids). - category_id (+ optional subcategory_id): that category's products. - neither: the store's categories and sub-categories with ids.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
vendor_code * | string | Store code, e.g. '32xxwe'. |
category_id | integer | null | Category id (call without ids to list). |
page | integer | Page, from 0. |
query | string | null | Search in this store, e.g. 'ماست'. |
subcategory_id | integer | null | Sub-category id; needs category_id. |
market_categories Grocery categories
List SnappMarket product categories and sub-categories with their ids. Ids work as category_id / subcategory_id in market_store_products. 99999999 is the kalabarg e-coupon category.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
market_product Grocery product details
Get one product's details and price in one store.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | Product id from a market_* list. |
vendor_code * | string | Store code, e.g. '32xxwe'. |
full_text | boolean | Text uncut (default 400 chars). |
market_party_deals Grocery party deals
List current SnappMarket "market party" flash deals near the point, biggest discount first. An order holds at most capacity_per_order deal items; segment 'new_user' is for new customers only.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Delivery latitude. |
long * | number | Delivery longitude. |
limit | integer | Max deals. |
market_reviews Grocery store reviews
Read a store's 30 most relevant customer comments, rating 0-5. No paging.
| Parameter | Type | Description |
|---|---|---|
vendor_code * | string | Store code, e.g. '32xxwe'. |
full_text | boolean | Text uncut (default 400 chars). |