# Kaspi API: Products, Prices, Sellers & Reviews (`firsthand/kaspi-api`) Actor

Kaspi.kz scraper and Kaspi API alternative: products from any search or category with KZT prices, discounts, Kaspi bonus, installments, ratings and stock, plus every seller's offer and reviews. Any of 320 Kaspi cities. Price monitoring for Kazakhstan. Парсер Каспи.

- **URL**: https://apify.com/firsthand/kaspi-api.md
- **Developed by:** [Firsthand](https://apify.com/firsthand) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 95.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Kaspi API do?

Kaspi API exports products from [Kaspi.kz](https://kaspi.kz/shop/), the largest marketplace in Kazakhstan, as a clean table. Give it a search query, a category link or product links, pick a city, and get every product with its price in tenge, discount, Kaspi bonus, installment, rating, review count and stock. Turn on two add-ons when you need them: every seller's offer for each product, and the newest customer reviews.

It works as a Kaspi API alternative and a Kaspi parser (парсер Каспи): no Kaspi account and no API key.

### Why use it?

- **Price monitoring in Kazakhstan.** Run it on a schedule for your category and see who sells cheaper, by city.
- **Repricing and seller research.** With offers on, each product lists all sellers with price, rating and delivery date, plus the lowest price and the number of sellers.
- **Assortment and market research.** Whole categories, not just the first pages: Kaspi shows at most 3,612 products per listing, so larger categories are split by price and brand automatically.
- **Review analysis.** Newest reviews with rating, text, pros, cons and the seller who made the sale.

### How much does it cost to scrape Kaspi?

You pay per result, nothing per run:

| What | Price |
|---|---|
| Product | $0.0004 ($0.40 per 1,000) |
| All seller offers of a product, not just the cheapest few (add-on) | $0.0004 per product |
| Review (add-on) | $0.0001 per review |

Example: 1,000 smartphones in Almaty with every seller's offer cost $0.80; with 10 newest reviews each, $1.80. Products you already got in the same run from another query are not charged again, and you can set a maximum cost per run.

### How to use it

1. Type a search query (`iphone 17`, `холодильник`) or paste a Kaspi link: a category (`https://kaspi.kz/shop/c/smartphones/`), a search page with filters, or a product page.
2. Pick one or more cities. Prices, stock and sellers differ by city; the default is Almaty.
3. Choose sort order and how many products you need, and turn on offers or reviews if you need them.
4. Run it and download JSON, CSV or Excel, or read the dataset through the Apify API.

### Input example

```json
{
  "searchQueries": ["iphone 17"],
  "startUrls": ["https://kaspi.kz/shop/c/smartphones/"],
  "cities": ["Almaty", "Astana"],
  "sortOrder": "price-asc",
  "maxItems": 500,
  "includeOffers": true
}
```

Field names of other Kaspi scrapers also work (`query`, `productUrls`, `city`, `cityId`, `sort`, `sortBy`, `scrapeOffers`, `scrapeReviews`, `offersLimit`), so you can switch without rewriting your input.

### Output example

```json
{
  "id": "177318415",
  "title": "Смартфон Apple iPhone 18 Pro 512Gb NanoSIM+eSIM голубой",
  "brand": "Apple",
  "url": "https://kaspi.kz/shop/p/apple-iphone-18-pro-512gb-nanosim-esim-goluboi-177318415/",
  "price": 879951,
  "priceBeforeDiscount": 1169989,
  "discountPercent": 25,
  "currency": "KZT",
  "installmentPerMonth": 36665.0,
  "rating": 5.0,
  "reviewsCount": 71,
  "inStock": true,
  "delivery": "EXPRESS",
  "category": "Телефоны и гаджеты > Смартфоны",
  "city": "Almaty",
  "sellersCount": 28,
  "minPrice": 879948.0,
  "offers": [
    {
      "sellerId": "30397804",
      "sellerName": "i-Store.",
      "sellerRating": 5.0,
      "price": 879948.0,
      "deliveryType": "EXPRESS",
      "pickupAvailable": true,
      "sellerUrl": "https://kaspi.kz/shop/info/merchant/30397804/address-tab/"
    }
  ]
}
```

### Kaspi seller phones and leads

Need the sellers themselves, with phone, legal address, rating and order volume? Use [Kaspi Sellers: Merchant Phones & Seller Leads](https://apify.com/firsthand/kaspi-sellers).

### Limits

- Kaspi answers only addresses in Kazakhstan. The actor uses the Apify residential proxy with country KZ by default; keep it.
- Kaspi serves at most 3,612 products per listing. Bigger categories are split by price and then brand. A single price band of one brand with more than 3,612 products is cut at that number, and the log says so.
- When a category is split, sort order holds within each part, not across the whole category.
- Prices are those shown to a buyer in the chosen city at run time.
- If a product's offers or reviews fail to load after retries, the product is still returned with the reason in `error`, and the missing offers or reviews are not charged.

### FAQ

**Is there an official Kaspi API for products?** Kaspi offers APIs to its own sellers (orders, payments) but not a public catalog API. This actor reads the same public pages a shopper sees.

**Can I monitor prices daily?** Yes. Save the input as a task and add a schedule in Apify. Each run returns the current prices.

**Something is missing or wrong?** Open an issue on the Issues tab. Fields and filters get added on request.

# Actor input Schema

## `searchQueries` (type: `array`):

Words you would type in the Kaspi search box, for example 'iphone 17' or 'холодильник'.

## `startUrls` (type: `array`):

Category pages (https://kaspi.kz/shop/c/smartphones/), search pages with filters, or product pages (https://kaspi.kz/shop/p/...). Product ids work too.

## `cities` (type: `array`):

Kaspi cities: prices, stock and sellers differ by city. Names like Almaty, Astana, Shymkent, Karaganda, Aktobe (all 320 Kaspi cities work) or Kaspi city ids. Each city is a separate pass.

## `sortOrder` (type: `string`):

Order of products, as on Kaspi. A category over 3,600 products is split by price and brand to reach all of it, then the order holds within each part.

## `maxItems` (type: `integer`):

Products in total across all queries, links and cities. Empty or 0 means no limit.

## `maxItemsPerQuery` (type: `integer`):

Limit for each query or link in each city. 0 means no limit.

## `includeOffers` (type: `boolean`):

Each product gets the list of sellers with price, rating and delivery, plus the lowest price and seller count. Charged once per product.

## `maxOffersPerProduct` (type: `integer`):

Cheapest offers kept per product. 0 keeps all.

## `includeReviews` (type: `boolean`):

Newest customer reviews inside each product: rating, text, pros, cons, date, seller. Charged per review.

## `maxReviewsPerProduct` (type: `integer`):

Newest reviews per product. Default 10.

## `reviewsWithTextOnly` (type: `boolean`):

Skip star-only ratings without a comment.

## `proxyConfiguration` (type: `object`):

Kaspi answers only addresses in Kazakhstan. Keep the default Apify residential proxy, country KZ.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 17"
  ],
  "cities": [
    "Almaty"
  ],
  "maxItems": 50,
  "reviewsWithTextOnly": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "KZ"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "iphone 17"
    ],
    "cities": [
        "Almaty"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "KZ"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("firsthand/kaspi-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["iphone 17"],
    "cities": ["Almaty"],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "KZ",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("firsthand/kaspi-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "iphone 17"
  ],
  "cities": [
    "Almaty"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "KZ"
  }
}' |
apify call firsthand/kaspi-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,firsthand/kaspi-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HnPPZa2uxfQtHeXnx/builds/F7CePddHppsSs50mK/openapi.json
