# Ajio Products Search Scraper (`codingfrontend/ajio-products-search-scraper`) Actor

An advanced, high-speed e-commerce scraper designed for real-time price monitoring and competitor intelligence. Extracts product titles, current pricing, discounts, stock availability, specifications, images, and seller ratings from Ajio Products Search. Perfect for inventory tracking, drop-shipp...

- **URL**: https://apify.com/codingfrontend/ajio-products-search-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 36 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Ajio Product Scraper

An Apify actor to scrape product listings from Ajio.com - India's leading fashion e-commerce platform. Uses API interception for fast and reliable data extraction.

### Features

- 🔍 **Product Search**: Search for any product on Ajio
- 💰 **Price Range Filter**: Filter products by minimum and maximum price
- ⭐ **Rating Filter**: Filter by customer ratings (1-4 star & above)
- 🔄 **Sort Options**: Sort by relevance, discount, price, newest, or rating
- 🚀 **Fast API Extraction**: Intercepts Ajio's internal API for reliable data
- 📊 **Comprehensive Data**: Extracts 65+ fields including images, pricing, categories
- 🤖 **Anti-detection**: Residential proxy rotation with stealth HTTP headers

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `search` | string | **Yes** | - | Product search query (e.g., "shoe", "men shirts") |
| `priceMin` | number | No | 0 | Minimum price filter |
| `priceMax` | number | No | 0 | Maximum price filter (0 = no limit) |
| `sortBy` | string | No | "relevance" | Sort order |
| `ratings` | string | No | "" | Minimum rating filter |
| `maxProductsPerSearch` | number | No | 100 | Maximum products to scrape |
| `proxy` | object | No | - | Proxy configuration |

#### Sort Options

- `relevance` - Most relevant products first
- `discount-desc` - Highest discount first
- `prce-asc` - Lowest price first
- `prce-desc` - Highest price first
- `newn` - Newest arrivals first
- `rating` - Highest rated first

#### Rating Options

- `4 star & above` - 4+ star products
- `3 star & above` - 3+ star products
- `2 star & above` - 2+ star products
- `1 star & above` - 1+ star products

### Example Input

```json
{
    "search": "men sports shoes",
    "priceMin": 500,
    "priceMax": 3000,
    "sortBy": "discount-desc",
    "ratings": "4 star & above",
    "maxProductsPerSearch": 100
}
```

### Output Data

The scraper extracts comprehensive data for each product:

#### Core Fields

| Field | Type | Description |
|-------|------|-------------|
| `productId` | string | Unique Ajio product identifier |
| `name` | string | Product name/title |
| `brandName` | string | Brand name |
| `brandTypeName` | string | Brand URL slug |

#### Pricing Fields

| Field | Type | Description |
|-------|------|-------------|
| `mrp` | number | Maximum Retail Price |
| `mrpFormatted` | string | Formatted MRP (e.g., "Rs.9,299") |
| `price` | number | Current selling price |
| `priceFormatted` | string | Formatted price |
| `offerPrice` | number | Final offer/coupon price |
| `offerPriceFormatted` | string | Formatted offer price |
| `discount` | string | Discount text (e.g., "85% off") |
| `discountPercent` | number | Discount percentage |
| `couponStatus` | string | Coupon applicability status |

#### Category Fields

| Field | Type | Description |
|-------|------|-------------|
| `segment` | string | Target segment (Men/Women/Kids) |
| `segmentId` | string | Segment identifier |
| `category` | string | Product category |
| `categoryId` | string | Category identifier |
| `subCategory` | string | Sub-category |
| `subCategoryId` | string | Sub-category identifier |
| `planningCategory` | string | Planning category |

#### Rating & Reviews

| Field | Type | Description |
|-------|------|-------------|
| `rating` | number | Average rating (1-5) |
| `reviewCount` | number | Total reviews |

#### Images

| Field | Type | Description |
|-------|------|-------------|
| `mainImage` | string | Primary product image URL |
| `outfitPictureURL` | string | Model/outfit image URL |
| `images` | array | All image URLs |
| `allImages` | object | Categorized images (primary, product, listing, model) |

#### URLs & Metadata

| Field | Type | Description |
|-------|------|-------------|
| `productUrl` | string | Full product page URL |
| `relativeUrl` | string | Relative product path |
| `colorGroup` | string | Color variant group |
| `optionCode` | string | Variant option code |
| `isBestSeller` | boolean | Best seller flag |
| `isNew` | boolean | New arrival flag |
| `tags` | array | Product tags |

### Example Output

```json
{
    "productId": "701377118005",
    "name": "Men Sports Shoes with Mesh upper",
    "brandName": "RED TAPE",
    "brandTypeName": "red-tape",
    "currency": "INR",
    "mrp": 9299,
    "mrpFormatted": "Rs.9,299",
    "price": 1395,
    "priceFormatted": "Rs.1,395",
    "offerPrice": 1297,
    "offerPriceFormatted": "Rs. 1,297",
    "discount": "85% off",
    "discountPercent": 85,
    "segment": "Men",
    "segmentId": "8302",
    "category": "Footwear",
    "categoryId": "830207",
    "subCategory": "Sports Shoes",
    "subCategoryId": "830207008",
    "rating": 3.6,
    "reviewCount": 55,
    "mainImage": "https://assets.ajio.com/medias/sys_master/root/...",
    "images": ["https://assets.ajio.com/...", "..."],
    "productUrl": "https://www.ajio.com/red-tape-men-sports-shoes-with-mesh-upper/p/701377118_olive",
    "isBestSeller": false,
    "isNew": false
}
```

### Usage

#### Via Apify Console

1. Navigate to the Ajio Product Scraper on Apify
2. Enter your search query and filters
3. Click "Start" to run the scraper
4. Download results in JSON, CSV, or Excel format

#### Via API

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });

const input = {
    search: "women dresses",
    priceMin: 500,
    priceMax: 5000,
    sortBy: "discount-desc",
    ratings: "4 star & above",
    maxProductsPerSearch: 50
};

const run = await client.actor("your-actor-id").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Via CLI

```bash
apify call your-actor-id -i '{"search": "men shirts", "maxProductsPerSearch": 100}'
```

### Why Use This Scraper?

- **Reliable**: Uses Ajio's internal API for consistent data extraction
- **Comprehensive**: Extracts 65+ data fields per product
- **Fast**: Scrapes ~100 products in ~30 seconds
- **Flexible**: Filter by price, rating, and sort by various criteria
- **Export Ready**: Download data in JSON, CSV, or Excel format

### Use Cases

- **Price Monitoring**: Track competitor pricing and discounts
- **Market Research**: Analyze product trends and categories
- **Inventory Management**: Monitor product availability
- **E-commerce Analytics**: Gather data for business intelligence

### Contact

📧 Email: lakshmanan.w3dev@gmail.com

# Actor input Schema

## `mode` (type: `string`):

How to scrape: search by keyword, direct product URLs, full search URL, or category URL

## `search` (type: `string`):

Search term for products (used when mode is 'search')

## `productUrls` (type: `array`):

Ajio product page URLs to scrape (used when mode is 'productUrl')

## `searchUrl` (type: `string`):

Full Ajio search URL, e.g. https://www.ajio.com/search/?text=shoes (used when mode is 'searchUrl')

## `categoryUrl` (type: `string`):

Ajio category page URL, e.g. https://www.ajio.com/men-footwear/c/830207 (used when mode is 'categoryUrl')

## `priceMin` (type: `integer`):

Minimum price filter in INR (applied client-side after fetching)

## `priceMax` (type: `integer`):

Maximum price filter in INR (0 = no limit, applied client-side)

## `sortBy` (type: `string`):

Sort order for search results

## `ratings` (type: `string`):

Filter by minimum star rating (applied client-side)

## `maxProductsPerSearch` (type: `integer`):

Maximum number of products to scrape

## `proxy` (type: `object`):

Use RESIDENTIAL proxy with country IN for best results on Ajio

## Actor input object example

```json
{
  "mode": "search",
  "search": "men sports shoes",
  "productUrls": [],
  "priceMin": 0,
  "priceMax": 0,
  "sortBy": "relevance",
  "ratings": "",
  "maxProductsPerSearch": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# 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 = {
    "search": "men sports shoes",
    "productUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/ajio-products-search-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 = {
    "search": "men sports shoes",
    "productUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/ajio-products-search-scraper").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 '{
  "search": "men sports shoes",
  "productUrls": []
}' |
apify call codingfrontend/ajio-products-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/ajio-products-search-scraper"
        }
    }
}

```

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/WHuUyoF0aWKRYcHSO/builds/D78ge1zubvxIiDVzv/openapi.json
