Ninja Grocery Product Scraper: Prices and Catalog avatar

Ninja Grocery Product Scraper: Prices and Catalog

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Ninja Grocery Product Scraper: Prices and Catalog

Ninja Grocery Product Scraper: Prices and Catalog

Read the grocery, beauty and pharmacy catalog that Ninja serves in Saudi Arabia: find the stores at a delivery point, then search products, browse a category or brand, and get prices, discounts, units, categories and brands for price monitoring.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Happy Endpoint

Happy Endpoint

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 hours ago

Last modified

Categories

Features

Limited permissions

Share

What this Actor does

Supermarket shelves in Saudi Arabia are online on Ninja, and this Actor turns them into a table. Start with the delivery point to find the store that serves each catalog, then use that store number to search products by keyword, list a whole category or brand, or look up products by ID. Each product row carries the price in riyals and in halalas, whether it is discounted, the unit it is sold in and its brand and category numbers; a detail lookup adds the stock count, the price before the discount and availability. Categories, brands, category sections and product bundles complete the picture.

The rows are the catalog that the Ninja grocery, beauty and pharmacy stores show for a store number: products, prices, categories, brands and bundles.

Use cases

  • Track the shelf price of staple goods in several cities and see when a discount starts.
  • Build a price index of one brand across its products in a store.
  • Map the category tree of the grocery, beauty or pharmacy catalog before a product-matching project.
  • Check which products of a basket are available now and how many units the store holds.
  • Find the bundles a store sells and the products inside each.

How to use

  1. Open the Actor's input form in Apify Console, or prepare a JSON input for the API.
  2. Pick an operation: each one is a different kind of request to Ninja.
  3. Set maxItems to the number of results you need. It is the only quantity setting; paging is handled for you.
  4. Start the run. The results land in the run's dataset, where you can download them as JSON, CSV, Excel and other formats, or read them through the Apify API.

This is the example input, the one the input form starts with:

{
"operation": "verticals",
"maxItems": 10,
"latitude": 24.7136,
"longitude": 46.6753
}

Input

FieldTypeDescriptionUsed by
operationstringWhich data to fetch. Each option is one kind of request.all operations
maxItemsintegerThe most results to return. The run stops once it has this many.all operations
storeIdstringThe number of the store whose shelves to read. Run Stores at a point for your delivery point and take the store_id of the catalog you want: the number differs by place and by catalog.Search products, Products of a category, Products of a brand, Product details, Categories, Brands
verticalstringWhich part of the store to read: grocery, beauty or pharmacy. Required for Categories and Category sections.Search products, Products of a category, Products of a brand, Product details, Categories, Category sections, Brands
productIdsstringOne or more catalog product numbers, with a comma between them, up to 50. Use the product_id of a search row, not its store-specific id.Product details
productIdstringThe catalog number of the product that has a bundle, as the product_id of a search row.Product bundle
latitudenumberNorth-south position of the place where goods would be delivered, as a decimal number. Stores are found for that point.Stores at a point
longitudenumberEast-west position of the delivery place, as a decimal number.Stores at a point
languagestringThe language of names and labels in the rows. Leave it empty for English. Product rows keep both the English and the Arabic name where the site has them.Stores at a point, Search products, Products of a category, Products of a brand, Product details, Categories, Category sections, Brands, Product bundle
countrystringThe country whose category sections to read.Category sections
querystringA product name or word, in Arabic or English, to look for in the store. For Brands it narrows the list to brand names that match.Search products, Brands
categoryIdsstringOne or more category numbers from Categories, with a comma between them, up to 20.Products of a category
subCategoryIdsstringNarrow the chosen categories to these subcategory numbers, with a comma between them, up to 20.Products of a category
brandCodestringThe short code of one brand, as Brands returns it in the code of each row. It is a code, not the brand number or its display name.Products of a brand, Brands
parentCategoryIdstringReturn only the direct children of this category number. Leave it empty to list every level.Categories
topLevelOnlybooleanReturn only the root categories, a short overview of the whole tree.Categories
includePrescriptionbooleanAllow products that need a prescription in pharmacy results. Leave it empty for the site default.Search products, Products of a category, Products of a brand, Product details

What each field accepts, the fields each operation requires and an example input for each are under Request and response schemas below.

Output

Every row holds the run's own fields first (operation, scrapedAt and sourceUrl), then the core fields id, url, title, price, currency, location, and then every field of the source item as Ninja returns it. A field with no value on Ninja is empty in the row; the example below shows only fields that have a value. The dataset has an overview view and one view per operation.

The fields of each operation's rows are under Request and response schemas below.

An example of Stores at a point results. Long lists show only their first items and long texts are cut short here; a real row holds everything in full:

[
{
"operation": "verticals",
"scrapedAt": "2026-11-23T07:18:57.519Z",
"id": "19",
"title": "RETAIL",
"vertical": "RETAIL",
"status": "ENABLED",
"is_default": true,
"store_id": "19",
"store": {
"id": "19",
"code": "JED-RAW001",
"status": "READY",
"country": "sa",
"delayed_delivery": false,
"delayed_delivery_notice": {
"title": "Heavy traffic notice",
"description": "You can place your order now, but it might take a bit longer than usual due to high demand. Rest assured, we're working tirelessly and are excited to get your order to you as soon as possible.\nThank y…"
},
"working_hours": [
{
"weekday": 0,
"start_minutes": 0,
"end_minutes": 1440,
"start_time": "00:00",
"end_time": "24:00",
"open_24h": true
},
{
"weekday": 1,
"start_minutes": 0,
"end_minutes": 1440,
"start_time": "00:00",
"end_time": "24:00",
"open_24h": true
},
{
"weekday": 2,
"start_minutes": 0,
"end_minutes": 1440,
"start_time": "00:00",
"end_time": "24:00",
"open_24h": true
}
]
},
"on_demand_delivery": true,
"scheduled_delivery": false,
"contact_numbers": [
{
"number": "+1 202 555 0143"
}
]
}
]

Pricing

This Actor uses pay-per-event pricing: a start fee of $0.002 for each run, plus $0.002 for each result in the dataset. Every operation is priced the same way.

OperationStart fee per runPrice per result
Stores at a point$0.002$0.002
Search products$0.002$0.002
Products of a category$0.002$0.002
Products of a brand$0.002$0.002
Product details$0.002$0.002
Categories$0.002$0.002
Category sections$0.002$0.002
Brands$0.002$0.002
Product bundle$0.002$0.002

Worked examples for one run:

ResultsTotal cost
10$0.022
100$0.202
1,000$2.002

Invalid input, a not-found answer or an internal error adds no charge of its own: such a run pays the start fee plus only the results it delivered before it stopped (none for invalid input). To cap what one run may cost, set the maximum cost per run when you start it.

Limits and tips

  • One run returns at most 1,000 results; the input form allows no higher maxItems.
  • Set maxItems to what you need: you pay per result, and a smaller run finishes sooner.
  • A request that matches nothing ends with an empty dataset and costs only the start fee.
  • A store number belongs to a place and a catalog. Take it from Stores at a point for the delivery point you care about, and expect an empty result for an unknown store.
  • Product search returns up to 1,000 products and the Actor never reads more than that in one run. A very broad category can hold more rows than a run returns.
  • Product IDs, category IDs and brand codes come from earlier results: copy them from a search, category or brand row.
  • Category sections and category lists use the catalog setting. Prescription products appear only when you allow them.

Resume a run that stopped at your cost limit

If you set a maximum cost per run and a run reaches it, the run stops early. To get the rest, resurrect the run in Apify Console, or through the API, with a higher limit. The Actor resumes where it stopped: results already in the dataset are not fetched or charged again, and the run still ends at maxItems. Resurrecting can charge the start fee again.

Running without input

The example input above is also this Actor's example run input. Apify's API documents that a run started with no input at all uses the example run input: Stores at a point, at most 10 results, which costs at most $0.022 (the start fee plus 10 results). For your own runs, always send an input with the fields you need.

FAQ

Do I need an account on Ninja?

No. The Actor reads public data, so an Apify account is all you need.

How do I get the data into my own tools?

Download the dataset from the run's page, or read it through the Apify API and its integrations.

How do I find the store number?

Run Stores at a point with your latitude and longitude. Each row is one catalog with its store_id, which you pass as Store ID to every product, category and brand operation.

Which prices do I get, and in what currency?

Each product has a price in riyals, the same price in halalas, and the currency. The detail lookup also shows the price before a discount.

What is the difference between id and product_id on a product row?

The id is tied to the store, while the product_id is the catalog number shared across stores. Use product_id for lookups and bundles.

Can I read Arabic names?

Yes. Set the language to Arabic, and category and brand rows also keep the Arabic name in a field of its own.

Request and response schemas

This section lists every input field with what it accepts, then, for each operation, the fields it reads, an example input and the fields of its rows. All of it is built from this Actor's input schema and dataset views, so it matches the input form; the Input table above describes each input field.

Every input field and what it accepts:

FieldLabelTypeAllowed values and limits
operationOperationstringverticals (Stores at a point), productSearch (Search products), productsByCategory (Products of a category), productsByBrand (Products of a brand), productDetails (Product details), categories (Categories), categorySections (Category sections), brands (Brands), productBundle (Product bundle)
maxItemsMaximum resultsinteger1 to 1,000; default 100
storeIdStore IDstringmatching ^[0-9]{1,12}$
verticalCatalogstringRETAIL (Grocery and household), BEAUTY (Beauty and personal care), PHARMACY (Pharmacy)
productIdsProduct IDsstringmatching ^[0-9]{1,12}(,[0-9]{1,12}){0,49}$
productIdProduct IDstringmatching ^[0-9]{1,12}$
latitudeLatitudenumber-90 to 90
longitudeLongitudenumber-180 to 180
languageLanguagestringen (English), ar (Arabic)
countryCountrystringsa (Saudi Arabia), kw (Kuwait), qa (Qatar), bh (Bahrain)
queryKeywordstringat most 100 characters
categoryIdsCategory IDsstringmatching ^[0-9]{1,12}(,[0-9]{1,12}){0,19}$
subCategoryIdsSubcategory IDsstringmatching ^[0-9]{1,12}(,[0-9]{1,12}){0,19}$
brandCodeBrand codestringat most 60 characters
parentCategoryIdParent category IDstringmatching ^[0-9]{1,12}$
topLevelOnlyTop level onlyboolean-
includePrescriptionInclude prescription productsboolean-
  • Type of a row field: its JSON type in the rows the operation returns; - means no type is listed for it.

Every row starts with these fields:

FieldTypeMeaning
operationstringThe operation that returned the row.
scrapedAtstringWhen the row's page of results was read, as an ISO 8601 date and time in UTC.
sourceUrlstring or nullThe item's own page: the url value when it is a full web link, else null.
idany type, or nullThe item's ID.
urlany type, or nullThe item's link.
titleany type, or nullThe item's title or name.
priceany type, or nullThe item's price.
currencyany type, or nullThe currency of the price.
locationany type, or nullThe item's location.

The six core fields, id to location, are null when the source has no such value or the operation does not fill them. After them come the fields of the source item, each under the name Ninja gives it; a source field with one of the names above, or named raw, is kept under raw instead.

Stores at a point

Request: set operation to verticals.

  • Required: latitude, longitude.
  • Optional: maxItems, language.

Example input:

{
"operation": "verticals",
"maxItems": 10,
"latitude": 24.7136,
"longitude": 46.6753
}

Response: the fields the dataset's Stores at a point view shows. Each row also holds every other field of the source item.

FieldType
verticalstring
statusstring
is_defaultboolean
store_idstring
storeobject
on_demand_deliveryboolean
scheduled_deliveryboolean
contact_numbersarray

Search products

Request: set operation to productSearch.

  • Required: storeId, query.
  • Optional: maxItems, vertical, language, includePrescription.

Example input. Replace each value in angle brackets with your own:

{
"operation": "productSearch",
"maxItems": 100,
"storeId": "<Store ID>",
"query": "<Keyword>"
}

Response: the fields the dataset's Search products view shows. Each row also holds every other field of the source item.

FieldType
product_idstring
namestring
brand_codestring
currencystring
pricenumber
is_discountedboolean
unit_of_measurestring
category_idsarray

Products of a category

Request: set operation to productsByCategory.

  • Required: storeId, categoryIds.
  • Optional: maxItems, vertical, language, subCategoryIds, includePrescription.

Example input. Replace each value in angle brackets with your own:

{
"operation": "productsByCategory",
"maxItems": 100,
"storeId": "<Store ID>",
"categoryIds": "<Category IDs>"
}

Response: the fields the dataset's Products of a category view shows. Each row also holds every other field of the source item.

FieldType
product_idstring
namestring
currencystring
pricenumber
is_discountedboolean
category_idsarray
sub_category_idsarray

Products of a brand

Request: set operation to productsByBrand.

  • Required: storeId, brandCode.
  • Optional: maxItems, vertical, language, includePrescription.

Example input. Replace each value in angle brackets with your own:

{
"operation": "productsByBrand",
"maxItems": 100,
"storeId": "<Store ID>",
"brandCode": "<Brand code>"
}

Response: the fields the dataset's Products of a brand view shows. Each row also holds every other field of the source item.

FieldType
product_idstring
namestring
brand_codestring
currencystring
pricenumber
is_discountedboolean
unit_of_measurestring

Product details

Request: set operation to productDetails.

  • Required: storeId, productIds.
  • Optional: maxItems, vertical, language, includePrescription.

Example input. Replace each value in angle brackets with your own:

{
"operation": "productDetails",
"maxItems": 100,
"storeId": "<Store ID>",
"productIds": "<Product IDs>"
}

Response: the fields the dataset's Product details view shows. Each row also holds every other field of the source item.

FieldType
product_idstring
store_idstring
namestring
brand_codestring
currencystring
pricenumber
original_pricenumber
is_discountedboolean
quantitynumber
is_availableboolean

Categories

Request: set operation to categories.

  • Required: storeId, vertical.
  • Optional: maxItems, language, parentCategoryId, topLevelOnly.

Example input. Replace each value in angle brackets with your own:

{
"operation": "categories",
"maxItems": 100,
"storeId": "<Store ID>",
"vertical": "<Catalog>"
}

Response: the fields the dataset's Categories view shows. Each row also holds every other field of the source item.

FieldType
idstring
namestring
name_arstring
parent_idstring
is_top_levelboolean
verticalstring
store_countnumber
imagesarray

Category sections

Request: set operation to categorySections.

  • Required: vertical, country.
  • Optional: maxItems, language.

Example input. Replace each value in angle brackets with your own:

{
"operation": "categorySections",
"maxItems": 100,
"vertical": "<Catalog>",
"country": "<Country>"
}

Response: the fields the dataset's Category sections view shows. Each row also holds every other field of the source item.

FieldType
idstring
namestring
name_arstring
descriptionstring
countrystring
verticalstring
weightnumber

Brands

Request: set operation to brands.

  • Required: storeId.
  • Optional: maxItems, vertical, language, query, brandCode.

Example input. Replace each value in angle brackets with your own:

{
"operation": "brands",
"maxItems": 100,
"storeId": "<Store ID>"
}

Response: the fields the dataset's Brands view shows. Each row also holds every other field of the source item.

FieldType
idstring
codestring
namestring
name_arstring
imagestring
store_countnumber
is_groceryboolean
is_beautyboolean
is_pharmacyboolean

Product bundle

Request: set operation to productBundle.

  • Required: productId.
  • Optional: maxItems, language.

Example input. Replace each value in angle brackets with your own:

{
"operation": "productBundle",
"maxItems": 100,
"productId": "<Product ID>"
}

Response: the fields the dataset's Product bundle view shows. Each row also holds every other field of the source item.

FieldType
product_idstring
namestring
savings_percentage-
bundled_product_countnumber
bundled_productsarray

More Ninja Actors

Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Ninja. All trademarks belong to their owners.

This Actor collects data that Ninja shows publicly. Some fields hold business contact data: contact_numbers. Personal data is protected by laws such as the GDPR in the EU. Collect and use it only when you have a lawful reason, keep only what you need, and do not use it for unsolicited messages. If you are unsure, ask a lawyer.