# Flipkart Listing Scraper

Scrape product listings(Product name, rating, number of ratings, etc) from Flipkart by URLs

- Template page: [https://www.octoparse.com/template/flipkart-scraper](https://www.octoparse.com/template/flipkart-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## Pricing

Current price: **$0.1/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from search-results pages.

## Output

The current workflow extracts 11 fields, including `Bullet_Points`, `Current_Time`, `Detail_Page_URL`, `Number_of_Ratings`, `Number_of_Results`, `Number_of_Reviews`, `Page_Number`, `Price`, `Product_Name`, `Rating`, `Web_Page_URL`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URL (up to 10 per run), Number of pages (1-40) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URL (up to 10 per run)

Required. Enter search page URL Constraints: minItems=1; maxItems=10; items.minLength=1; items.maxLength=10000.

### Number of pages (1-40)

Required. Enter page number (1-40) Constraints: minimum=1, maximum=40.

## How to Use

# Flipkart Listing Scraper

Reads submitted Flipkart search-result URLs from [Flipkart](https://www.flipkart.com/) and returns one structured row per product listing. Data includes product names, prices, ratings, rating/review counts, bullet points, detail-page URLs, result counts, and page numbers. Key fields include `Product_Name`, `Web_Page_URL`, `Rating`, `Number_of_Results`, `Price`, `Detail_Page_URL`, and `Current_Time`.

**Price:** $0.1/1,000 lines. Billing is based on output lines produced by the task.

## Inputs
- **URL** (Required): Flipkart search page URL. Up to 10 entries per run.
- **Number of pages (1-40)** (Required): Accepted range 1 to 40.

## How to use
1. Open **Flipkart Listing Scraper** and click **Try it!**.
2. Complete **URL** and **Number of pages (1-40)** using the limits above.
3. Run the task in the Octoparse cloud.
4. Review fields such as `Product_Name`, `Web_Page_URL`, and `Rating`, then export the rows.

## Notes
- The template opens each submitted Flipkart search-result URL, collects up to the configured number of pages, loops through product cards, and exports one row per listing.
- Test one representative **URL** value before submitting a large batch.
- Keep `Web_Page_URL` in the export so each row can be traced to its originating input or page.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Flipkart Product Scraper](https://www.octoparse.com/template/flipkart-product-scraper)
- [Booking.com Hotel Listing Scraper](https://www.octoparse.com/template/booking-com-scraper)
- [Google Maps Store Listing Scraper (Japan)](https://www.octoparse.com/template/google-maps-store-listing-scraper)
- [Zillow Listing Scraper (by URL)](https://www.octoparse.com/template/zillow-scraper)

## Input Schema

```json
{
  "title": "Flipkart Listing Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRL": {
      "title": "URL (up to 10 per run)",
      "description": "Enter search page URL",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 10,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "number_of_pages": {
      "title": "Number of pages (1-40)",
      "description": "Enter page number (1-40)",
      "type": "integer",
      "minimum": 1,
      "maximum": 40,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRL",
    "number_of_pages"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "number_of_pages": 40,
  "uRL": [
    "https://www.flipkart.com/search?q=the+indian+garage+co+shirt&sid=clo%2Cash%2Caxc%2Cmmk%2Ckp7&as=on&as-show=on&otracker=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&otracker1=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&as-pos=1&as-type=RECENT&suggestionId=the+indian+garage+co+shirt%7CCasual+Shirts&requestId=cd2e575f-9074-47d5-a3dd-c82c996894e5&as-searchtext=the+indian+garage+co+shirt&sort=popularity"
  ]
}
```

Example 2

```json
{
  "number_of_pages": 10,
  "uRL": [
    "https://www.flipkart.com/search?q=mobile",
    "https://www.flipkart.com/search?q=tablet&otracker=search&otracker1=search&marketplace=FLIPKART&as-show=on&as=off"
  ]
}
```

Example 3

```json
{
  "number_of_pages": 1,
  "uRL": [
    "https://www.flipkart.com/search?q=mobile"
  ]
}
```

Example 4

```json
{
  "number_of_pages": 1,
  "uRL": [
    "https://www.flipkart.com/mobiles/pr?sid=tyy%2C4io"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Bullet_Points": {
      "type": "string",
      "description": ""
    },
    "Current_Time": {
      "type": "string",
      "description": ""
    },
    "Detail_Page_URL": {
      "type": "string",
      "description": ""
    },
    "Number_of_Ratings": {
      "type": "string",
      "description": ""
    },
    "Number_of_Results": {
      "type": "string",
      "description": ""
    },
    "Number_of_Reviews": {
      "type": "string",
      "description": ""
    },
    "Page_Number": {
      "type": "string",
      "description": ""
    },
    "Price": {
      "type": "string",
      "description": ""
    },
    "Product_Name": {
      "type": "string",
      "description": ""
    },
    "Rating": {
      "type": "string",
      "description": ""
    },
    "Web_Page_URL": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Flipkart Listing Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Bullet_Points": "",
  "Current_Time": "2026-10-12 09:46:04",
  "Detail_Page_URL": "https://www.flipkart.com/indian-garage-co-men-checkered-casual-green-shirt/p/itm889dfb8e5f728?pid=SHTGG22GGQAXBR4V",
  "Number_of_Ratings": "",
  "Number_of_Results": "",
  "Number_of_Reviews": "",
  "Page_Number": "48",
  "Price": "₹367",
  "Product_Name": "The Indian Garage Co. Men Checkered Casual Green Shirt",
  "Rating": "",
  "Web_Page_URL": "https://www.flipkart.com/search?q=the+indian+garage+co+shirt&sid=clo%2Cash%2Caxc%2Cmmk%2Ckp7&as=on&as-show=on&otracker=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&otracker1=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&as-pos=1&as-type=RECENT&suggestionId=the+indian+garage+co+shirt%7CCasual+Shirts&requestId=cd2e575f-9074-47d5-a3dd-c82c996894e5&as-searchtext=the+indian+garage+co+shirt&sort=popularity&page=1"
}
```

Example 2

```json
{
  "Bullet_Points": "8.0 GB RAM | 128 GB ROM | Expandable Upto 2 TB;27.94 cm (11 inch) Display;8 MP Primary Camera | 5 MP Front;Android 15 | Battery: 7040 mAh;Ideal Usage: Art & Design, Business, Entertainment, High Processing Tasks, Reading and Browsing;Voice Call (Single Sim);Processor: MediaTek Dimensity 6300;1 Year Comprehensive Warranty",
  "Current_Time": "2026-10-10 02:23:46",
  "Detail_Page_URL": "https://www.flipkart.com/motorola-pad-60-neo-8-gb-ram-128-rom-11-inch-wi-fi-5g-mediatek-dimensity-6300-tablet-pantone-bronze-green/p/itm20eeee30d0649?pid=TABHETUGU6T947RJ",
  "Number_of_Ratings": "18,953 Ratings",
  "Number_of_Results": "",
  "Number_of_Reviews": "1,763 Reviews",
  "Page_Number": "62",
  "Price": "₹25,999",
  "Product_Name": "MOTOROLA Pad 60 Neo 8 GB RAM 128 GB ROM 11 inch with Wi-Fi+5G MediaTek Dimensity 6300 Tablet (PANTONE Bronze Green)",
  "Rating": "4.5",
  "Web_Page_URL": "https://www.flipkart.com/search?q=tablet&otracker=search&otracker1=search&marketplace=FLIPKART&as-show=on&as=off&page=1"
}
```

Example 3

```json
{
  "Bullet_Points": "256 GB ROM;16.0 cm (6.3 inch) Super Retina XDR Display;48MP + 48MP | 18MP Front Camera;A19 Chip, 6 Core Processor Processor;Apple One (1) Year Limited Warranty",
  "Current_Time": "2026-09-11 04:29:41",
  "Detail_Page_URL": "https://www.flipkart.com/apple-iphone-17-black-256-gb/p/itm6eb39da622cdd?pid=MOBHFN6YN2HXB5HE",
  "Number_of_Ratings": "25,923 Ratings",
  "Number_of_Results": "",
  "Number_of_Reviews": "1,888 Reviews",
  "Page_Number": "333",
  "Price": "₹82,900",
  "Product_Name": "Apple iPhone 17 (Black, 256 GB)",
  "Rating": "4.6",
  "Web_Page_URL": "https://www.flipkart.com/search?q=mobile&page=1"
}
```

Example 4

```json
{
  "Bullet_Points": "12 GB RAM | 256 GB ROM;17.35 cm (6.83 inch) Full HD+ AMOLED Display;50MP + 8MP | 20MP Front Camera;9000 mAh Lithium-Ion Polymer With Silicon Carbon Technology Battery;Dimensity 9500s Processor;1 Year Manufacturer Warranty for Phone and 6 Months Warranty for In the Box Accessories",
  "Current_Time": "2026-09-11 03:12:47",
  "Detail_Page_URL": "https://www.flipkart.com/poco-x8-pro-max-blue-256-gb/p/itm510ae4b674bbc?pid=MOBHH2KYGWSQXYZC",
  "Number_of_Ratings": "1,866 Ratings",
  "Number_of_Results": "7,942",
  "Number_of_Reviews": "390 Reviews",
  "Page_Number": "331",
  "Price": "₹48,999",
  "Product_Name": "POCO X8 Pro Max (Blue, 256 GB)",
  "Rating": "4.5",
  "Web_Page_URL": "https://www.flipkart.com/mobiles/pr?sid=tyy%2C4io&page=1"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "flipkart-scraper",
  "taskName": "Flipkart Listing Scraper",
  "parameters": "{\"number_of_pages\":40,\"uRL\":[\"https://www.flipkart.com/search?q=the+indian+garage+co+shirt&sid=clo%2Cash%2Caxc%2Cmmk%2Ckp7&as=on&as-show=on&otracker=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&otracker1=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&as-pos=1&as-type=RECENT&suggestionId=the+indian+garage+co+shirt%7CCasual+Shirts&requestId=cd2e575f-9074-47d5-a3dd-c82c996894e5&as-searchtext=the+indian+garage+co+shirt&sort=popularity\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"number_of_pages\":40,\"uRL\":[\"https://www.flipkart.com/search?q=the+indian+garage+co+shirt&sid=clo%2Cash%2Caxc%2Cmmk%2Ckp7&as=on&as-show=on&otracker=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&otracker1=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&as-pos=1&as-type=RECENT&suggestionId=the+indian+garage+co+shirt%7CCasual+Shirts&requestId=cd2e575f-9074-47d5-a3dd-c82c996894e5&as-searchtext=the+indian+garage+co+shirt&sort=popularity\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "flipkart-scraper",
        "taskName": "Flipkart Listing Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "flipkart-scraper",
  "taskName": "Flipkart Listing Scraper",
  "parameters": "{\"number_of_pages\":40,\"uRL\":[\"https://www.flipkart.com/search?q=the+indian+garage+co+shirt&sid=clo%2Cash%2Caxc%2Cmmk%2Ckp7&as=on&as-show=on&otracker=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&otracker1=AS_QueryStore_OrganicAutoSuggest_1_20_na_na_ps&as-pos=1&as-type=RECENT&suggestionId=the+indian+garage+co+shirt%7CCasual+Shirts&requestId=cd2e575f-9074-47d5-a3dd-c82c996894e5&as-searchtext=the+indian+garage+co+shirt&sort=popularity\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `flipkart-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/flipkart-scraper.json)
- [Manifest](https://www.octoparse.com/templates/flipkart-scraper-manifest.json)
