# Quikr Product Scraper (`scrapeai/quikr-product-scraper`) Actor

Retrieves product listings from Quikr via its search API, allowing searches by category, brand, product type, and city to collect structured data such as product name, price, condition, and contact details—ideal for market research, price comparison, and product intelligence.

- **URL**: https://apify.com/scrapeai/quikr-product-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$4.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🧠 Quikr Product Scraper - API Based

This Apify actor retrieves product listings from Quikr classifieds through the Quikr search API. Search by category, brand, product type, and city to collect structured product information including name, price, condition, and contact details. Perfect for market research, price comparison, and product intelligence.

### ✅ Use Cases

- 📇 Gather product listings with pricing data
- 💬 Build product catalogs for comparison platforms
- 🏙️ Conduct market research by location and category
- 🧭 Perform competitive analysis in your niche
- 📊 Gather structured product intelligence from Quikr

### 📥 Input Configuration

You can customize the actor using the following input fields:

```json
{
    "category": "mobiles-tablets",
    "brands": ["Samsung", "Apple"],
    "productType": "Mobile-Phones",
    "city": "Dindigul",
    "cityId": "w1098473fd",
    "maxRequests": 5
}
````

#### 🧾 Fields Explained

| Field | Type | Description |
|-------|------|-------------|
| `category` | string | Product category on Quikr (e.g., 'mobiles-tablets', 'electronics-appliances') |
| `brands` | array | Array of brand names to search for (e.g., \['Samsung', 'Apple']) |
| `productType` | string | Type of product (e.g., 'Mobile-Phones', 'Laptops') |
| `city` | string | City name for location-based search |
| `cityId` | string | Quikr city ID (found in URL) |
| `maxRequests` | number | Maximum number of API requests to make |

### 📤 Output

The actor returns a dataset containing structured product records from Quikr. Each record includes comprehensive details about the product, suitable for price analysis, market research, and product intelligence.

#### 🧩 Sample Output

```json
{
    "entityId": "15471",
    "title": "Apple iPhone X",
    "brand": "Apple",
    "model": "Apple iPhone X",
    "description": "- 3GB RAM | 64GB ROM\n- 5.8 inch HD Display\n- 12MP Primary Camera | 7MP Front",
    "price": 7999,
    "displayPrice": 45541,
    "currency": "INR",
    "condition": "Used",
    "numberOfAds": 310,
    "imageUrl": "https://teja10.kuikr.com/i6/20171228/VB201705171774173-ak_LWBP77997365-1514461008.jpeg",
    "productUrl": "https://www.quikr.com/mobiles-tablets/Apple+iPhone-X+Mobile-Phones+Dindigul+EntityIdZ15471fde",
    "category": "Mobile Phones"
}
```

#### 📋 Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `entityId` | string | Unique Quikr product entity identifier |
| `title` | string | Product title/name |
| `brand` | string | Product brand name |
| `model` | string | Product model name |
| `description` | string | Product description with specs |
| `price` | number | Starting price in INR |
| `displayPrice` | number | Display/market price in INR |
| `currency` | string | Currency code (INR) |
| `condition` | string | Product condition (Used/New) |
| `numberOfAds` | integer | Number of listings available |
| `imageUrl` | string | Product image URL |
| `productUrl` | string | Direct link to Quikr product page |
| `category` | string | Product category |

### 🔍 Data Source

- ✓ Data fetched exclusively via Quikr search API (HTTP POST requests)
- ✓ JSON response parsing with HTML content extraction
- ✓ Verified product information directly from Quikr
- ✓ Automatic filtering and deduplication

### 🔒 Proxy Configuration

This actor uses standard HTTP headers with optional proxy support for:

- Avoiding IP-based rate limiting or bans
- Accessing location-specific data
- Ensuring stable data retrieval at scale

Configure proxy settings in Apify:

```json
{
  "useApifyProxy": true,
  "apifyProxyGroups": ["RESIDENTIAL"],
  "apifyProxyCountry": "IN"
}
```

### 🚀 How to Use

1. Open the actor in Apify Console
2. Click "Try actor" or create a new task
3. Enter your search parameters (category, brands, city)
4. Configure maximum requests
5. Run the actor
6. Download results in JSON, CSV, or Excel format

### ⚙️ Advanced Input Example

```json
{
    "category": "mobiles-tablets",
    "brands": ["Samsung", "Apple", "OnePlus"],
    "productType": "Mobile-Phones",
    "city": "Mumbai",
    "cityId": "w1098463fd",
    "maxRequests": 10
}
```

### 🛠️ Tech Stack

- **Apify SDK** — actor orchestration and data handling
- **Node.js 18+** — runtime environment with native fetch API
- **Quikr Search API** — exclusive data source for product information

### 📊 Data Processing Features

- ✓ Automatic duplicate detection using Entity IDs
- ✓ Structured data parsing from HTML responses
- ✓ Comprehensive logging and error handling
- ✓ Schema validation for all output records

### 🔧 Local Development

#### Installation

```bash
npm install
```

#### Running the Actor

```bash
npm start
```

#### Validation

Validate all generated datasets against the schema:

```bash
node validate-datasets.js
```

#### Code Quality

Format code:

```bash
npm run format
```

Check linting:

```bash
npm run lint
```

### 📂 Project Structure

```
.
├── .actor/                          # Actor configuration
│   ├── actor.json                  # Actor metadata
│   ├── input_schema.json           # Input parameters schema
│   ├── dataset_schema.json         # Output dataset schema
│   ├── input.json                  # Default input
│   ├── input-local.json            # Local development input
│   └── input-production.json       # Production input
├── src/
│   └── main.js                     # Main actor script
├── storage/
│   └── datasets/default/           # Generated datasets
├── package.json                    # Dependencies
├── validate-datasets.js            # Dataset validator
└── README.md                       # This file
```

### 🤝 Support

For issues, questions, or feature requests, please refer to the Apify documentation or contact support.

# Actor input Schema

## `category` (type: `string`):

Product category on Quikr (e.g., 'mobiles-tablets', 'electronics-appliances')

## `brands` (type: `array`):

Array of brand names to search for

## `productType` (type: `string`):

Type of product (e.g., 'Mobile-Phones', 'Laptops')

## `city` (type: `string`):

City name for location-based search

## `cityId` (type: `string`):

Quikr city ID (found in the URL, e.g., 'w1098473fd')

## `maxRequests` (type: `integer`):

Maximum number of API requests to make

## Actor input object example

```json
{
  "category": "mobiles-tablets",
  "brands": [
    "Samsung",
    "Apple"
  ],
  "productType": "Mobile-Phones",
  "city": "Dindigul",
  "cityId": "w1098473fd",
  "maxRequests": 5
}
```

# 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 = {
    "category": "mobiles-tablets",
    "brands": [
        "Samsung",
        "Apple"
    ],
    "productType": "Mobile-Phones",
    "city": "Dindigul",
    "cityId": "w1098473fd",
    "maxRequests": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/quikr-product-scraper").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 = {
    "category": "mobiles-tablets",
    "brands": [
        "Samsung",
        "Apple",
    ],
    "productType": "Mobile-Phones",
    "city": "Dindigul",
    "cityId": "w1098473fd",
    "maxRequests": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/quikr-product-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "category": "mobiles-tablets",
  "brands": [
    "Samsung",
    "Apple"
  ],
  "productType": "Mobile-Phones",
  "city": "Dindigul",
  "cityId": "w1098473fd",
  "maxRequests": 5
}' |
apify call scrapeai/quikr-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeai/quikr-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Quikr Product Scraper",
        "description": "Retrieves product listings from Quikr via its search API, allowing searches by category, brand, product type, and city to collect structured data such as product name, price, condition, and contact details—ideal for market research, price comparison, and product intelligence.",
        "version": "1.0",
        "x-build-id": "57hJKesaaWuilG1lr"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeai~quikr-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeai-quikr-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapeai~quikr-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapeai-quikr-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapeai~quikr-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeai-quikr-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "category",
                    "brands",
                    "productType",
                    "city",
                    "cityId"
                ],
                "properties": {
                    "category": {
                        "title": "Category",
                        "type": "string",
                        "description": "Product category on Quikr (e.g., 'mobiles-tablets', 'electronics-appliances')",
                        "default": "mobiles-tablets"
                    },
                    "brands": {
                        "title": "Brands",
                        "type": "array",
                        "description": "Array of brand names to search for",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "Samsung",
                            "Apple"
                        ]
                    },
                    "productType": {
                        "title": "Product Type",
                        "type": "string",
                        "description": "Type of product (e.g., 'Mobile-Phones', 'Laptops')",
                        "default": "Mobile-Phones"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City name for location-based search",
                        "default": "Dindigul"
                    },
                    "cityId": {
                        "title": "City ID",
                        "type": "string",
                        "description": "Quikr city ID (found in the URL, e.g., 'w1098473fd')",
                        "default": "w1098473fd"
                    },
                    "maxRequests": {
                        "title": "Max Requests",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of API requests to make",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
