# 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:** [codingfrontend](https://apify.com/codingfrontend) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 25 total users, 4 monthly users, 98.9% 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/platform/actors/running/actors-in-store#pay-per-event

## 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

## 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("💾 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 '{
  "search": "men sports shoes",
  "productUrls": []
}' |
apify call codingfrontend/ajio-products-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Ajio Products Search Scraper",
        "description": "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...",
        "version": "1.0",
        "x-build-id": "D78ge1zubvxIiDVzv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/codingfrontend~ajio-products-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-codingfrontend-ajio-products-search-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/codingfrontend~ajio-products-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-codingfrontend-ajio-products-search-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/codingfrontend~ajio-products-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-codingfrontend-ajio-products-search-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": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scraping Mode",
                        "enum": [
                            "search",
                            "productUrl",
                            "searchUrl",
                            "categoryUrl"
                        ],
                        "type": "string",
                        "description": "How to scrape: search by keyword, direct product URLs, full search URL, or category URL",
                        "default": "search"
                    },
                    "search": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search term for products (used when mode is 'search')"
                    },
                    "productUrls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "Ajio product page URLs to scrape (used when mode is 'productUrl')",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchUrl": {
                        "title": "Search URL",
                        "type": "string",
                        "description": "Full Ajio search URL, e.g. https://www.ajio.com/search/?text=shoes (used when mode is 'searchUrl')"
                    },
                    "categoryUrl": {
                        "title": "Category URL",
                        "type": "string",
                        "description": "Ajio category page URL, e.g. https://www.ajio.com/men-footwear/c/830207 (used when mode is 'categoryUrl')"
                    },
                    "priceMin": {
                        "title": "Minimum Price (INR)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price filter in INR (applied client-side after fetching)",
                        "default": 0
                    },
                    "priceMax": {
                        "title": "Maximum Price (INR)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price filter in INR (0 = no limit, applied client-side)",
                        "default": 0
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "relevance",
                            "discount-desc",
                            "prce-asc",
                            "prce-desc",
                            "newn",
                            "rating"
                        ],
                        "type": "string",
                        "description": "Sort order for search results",
                        "default": "relevance"
                    },
                    "ratings": {
                        "title": "Minimum Rating",
                        "enum": [
                            "",
                            "4 star & above",
                            "3 star & above",
                            "2 star & above",
                            "1 star & above"
                        ],
                        "type": "string",
                        "description": "Filter by minimum star rating (applied client-side)",
                        "default": ""
                    },
                    "maxProductsPerSearch": {
                        "title": "Max Products",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of products to scrape",
                        "default": 100
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Use RESIDENTIAL proxy with country IN for best results on Ajio",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "IN"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
